Skip to content

HBASE-22964 Fix flaky TestClusterRestartFailover and TestClusterResta… #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

infraio
Copy link
Contributor

@infraio infraio commented Sep 2, 2019

…rtFailoverSplitWithoutZk

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 47 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 mvninstall 418 master passed
+1 compile 69 master passed
+1 checkstyle 99 master passed
+1 shadedjars 350 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 42 master passed
0 spotbugs 282 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 278 master passed
_ Patch Compile Tests _
+1 mvninstall 383 the patch passed
+1 compile 71 the patch passed
+1 javac 71 the patch passed
-1 checkstyle 95 hbase-server: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 323 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 1165 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 javadoc 36 the patch passed
+1 findbugs 257 the patch passed
_ Other Tests _
-1 unit 10357 hbase-server in the patch failed.
+1 asflicense 30 The patch does not generate ASF License warnings.
14436
Reason Tests
Failed junit tests hadoop.hbase.regionserver.TestHRegionWithInMemoryFlush
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/1/artifact/out/Dockerfile
GITHUB PR #574
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux f0ef73ea245b 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-574/out/precommit/personality/provided.sh
git revision master / 8e8bd8b
Default Java 1.8.0_181
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/1/artifact/out/diff-checkstyle-hbase-server.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/1/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/1/testReport/
Max. process+thread count 4897 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/1/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache9
Copy link
Contributor

Apache9 commented Sep 3, 2019

We need to know what is the purpose of the test. The current fix looks like we just give up testing if some conditions are not match...

@infraio
Copy link
Contributor Author

infraio commented Sep 3, 2019

We need to know what is the purpose of the test. The current fix looks like we just give up testing if some conditions are not match...

It was added by HBASE-21565: Delete dead server from dead server list too early leads to concurrent Server Crash Procedures(SCP) for a same server. So the test purpose is assertFalse(UTIL.getHBaseCluster().getMaster().getServerManager().expireServer(testServer)). It should not submit SCP again if there arleady had a SCP for this server.

@infraio
Copy link
Contributor Author

infraio commented Sep 3, 2019

Updated the patch. Will test the submit SCP again when serverNode is null.

Copy link
Contributor

@Apache9 Apache9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still not fully understand this UT here. I guess we need to find a way to make sure that the serverNode is not null?

LOG.info("start to find the procedure of SCP for the severName we choose");
Procedure<?> procedure = UTIL.getHBaseCluster().getMaster().getProcedures().stream().filter(
p -> (p instanceof ServerCrashProcedure) &&
((ServerCrashProcedure) p).getServerName().equals(testServer)).findAny().get();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional.get will never return null, it will throw a NoSuchElementException...

@infraio
Copy link
Contributor Author

infraio commented Sep 3, 2019

I still not fully understand this UT here. I guess we need to find a way to make sure that the serverNode is not null?

Checked HBASE-21565. I thought this ut is added to test should submit SCP for a same server twice. Need to mock SCP to stuck it if make sure that serverNode is not null.

@Apache9
Copy link
Contributor

Apache9 commented Sep 3, 2019

Checked HBASE-21565. I thought this ut is added to test should submit SCP for a same server twice. Need to mock SCP to stuck it if make sure that serverNode is not null.

Yes, this is possible. You can see TestSCPGetRegionsRace, where we override AssignmentManager and hang the SCP when it calls getRegionsOnServer.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 39 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 mvninstall 326 master passed
+1 compile 57 master passed
+1 checkstyle 78 master passed
+1 shadedjars 271 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 38 master passed
0 spotbugs 240 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 239 master passed
_ Patch Compile Tests _
+1 mvninstall 293 the patch passed
+1 compile 54 the patch passed
+1 javac 54 the patch passed
-1 checkstyle 74 hbase-server: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 272 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 937 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 javadoc 33 the patch passed
+1 findbugs 244 the patch passed
_ Other Tests _
+1 unit 9396 hbase-server in the patch passed.
+1 asflicense 35 The patch does not generate ASF License warnings.
12757
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/2/artifact/out/Dockerfile
GITHUB PR #574
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 184d0bd1364d 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-574/out/precommit/personality/provided.sh
git revision master / e50ec76
Default Java 1.8.0_181
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/2/artifact/out/diff-checkstyle-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/2/testReport/
Max. process+thread count 4374 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/2/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 0s Docker mode activated.
💔 patch 2m 14s #574 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.
Subsystem Report/Notes
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/3/console
versions git=2.17.1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 6m 54s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
💚 mvninstall 6m 9s master passed
💚 compile 1m 9s master passed
💚 checkstyle 1m 46s master passed
💚 shadedjars 5m 24s branch has no errors when building our shaded downstream artifacts.
💚 javadoc 0m 37s master passed
💙 spotbugs 4m 50s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 4m 47s master passed
_ Patch Compile Tests _
💚 mvninstall 5m 56s the patch passed
💚 compile 0m 57s the patch passed
💚 javac 0m 57s the patch passed
💔 checkstyle 1m 39s hbase-server: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
💚 whitespace 0m 0s The patch has no whitespace issues.
💚 shadedjars 5m 39s patch has no errors when building our shaded downstream artifacts.
💚 hadoopcheck 22m 50s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚 javadoc 0m 45s the patch passed
💚 findbugs 4m 47s the patch passed
_ Other Tests _
💔 unit 266m 22s hbase-server in the patch failed.
💚 asflicense 0m 30s The patch does not generate ASF License warnings.
345m 24s
Subsystem Report/Notes
Docker Client=19.03.0 Server=19.03.0 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/4/artifact/out/Dockerfile
GITHUB PR #574
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 8689ff1d52c4 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-574/out/precommit/personality/provided.sh
git revision master / fbd5b5e
Default Java 1.8.0_181
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/4/artifact/out/diff-checkstyle-hbase-server.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/4/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/4/testReport/
Max. process+thread count 4683 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/4/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 30s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
💚 mvninstall 6m 0s master passed
💚 compile 1m 2s master passed
💚 checkstyle 1m 33s master passed
💚 shadedjars 5m 8s branch has no errors when building our shaded downstream artifacts.
💚 javadoc 0m 39s master passed
💙 spotbugs 4m 44s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 4m 42s master passed
_ Patch Compile Tests _
💚 mvninstall 5m 29s the patch passed
💚 compile 1m 0s the patch passed
💚 javac 1m 0s the patch passed
💚 checkstyle 1m 29s the patch passed
💚 whitespace 0m 0s The patch has no whitespace issues.
💚 shadedjars 5m 4s patch has no errors when building our shaded downstream artifacts.
💚 hadoopcheck 20m 11s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚 javadoc 0m 47s the patch passed
💚 findbugs 5m 32s the patch passed
_ Other Tests _
💚 unit 176m 11s hbase-server in the patch passed.
💚 asflicense 0m 26s The patch does not generate ASF License warnings.
243m 26s
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/5/artifact/out/Dockerfile
GITHUB PR #574
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 8c5cd2703dc1 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-574/out/precommit/personality/provided.sh
git revision master / 51b6ce3
Default Java 1.8.0_181
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/5/testReport/
Max. process+thread count 4457 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/5/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@Apache9 Apache9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 1m 6s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 1s The patch appears to include 2 new or modified test files.
_ master Compile Tests _
💚 mvninstall 5m 59s master passed
💚 compile 0m 58s master passed
💚 checkstyle 1m 32s master passed
💚 shadedjars 4m 55s branch has no errors when building our shaded downstream artifacts.
💚 javadoc 0m 39s master passed
💙 spotbugs 4m 30s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 4m 27s master passed
_ Patch Compile Tests _
💚 mvninstall 5m 21s the patch passed
💚 compile 0m 58s the patch passed
💚 javac 0m 58s the patch passed
💚 checkstyle 1m 32s the patch passed
💚 whitespace 0m 0s The patch has no whitespace issues.
💚 shadedjars 4m 55s patch has no errors when building our shaded downstream artifacts.
💚 hadoopcheck 17m 10s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚 javadoc 0m 34s the patch passed
💚 findbugs 4m 35s the patch passed
_ Other Tests _
💔 unit 232m 20s hbase-server in the patch failed.
💚 asflicense 0m 27s The patch does not generate ASF License warnings.
294m 23s
Subsystem Report/Notes
Docker Client=19.03.2 Server=19.03.2 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/6/artifact/out/Dockerfile
GITHUB PR #574
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 2b856c5c70f7 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-574/out/precommit/personality/provided.sh
git revision master / 78bae9e
Default Java 1.8.0_181
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/6/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/6/testReport/
Max. process+thread count 4785 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-574/6/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@infraio infraio merged commit d8e5c87 into apache:master Sep 8, 2019
@infraio infraio deleted the HBASE-22964 branch September 8, 2019 10:47
asfgit pushed a commit that referenced this pull request Sep 8, 2019
…rtFailoverSplitWithoutZk (#574)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
asfgit pushed a commit that referenced this pull request Sep 9, 2019
…rtFailoverSplitWithoutZk (#574)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
infraio added a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…rtFailoverSplitWithoutZk (apache#574)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
…rtFailoverSplitWithoutZk (apache#574)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 5e98129)

Change-Id: Ib1f0549c24d2b81559e33bc22d4096b246a1e37a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants