Uh oh!
There was an error while loading. Please reload this page.
HBASE-22964 Fix flaky TestClusterRestartFailover and TestClusterResta… - #574
Conversation
Apache-HBase
commented
Sep 2, 2019
💔 -1 overall
This message was automatically generated. |
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
commented
Sep 3, 2019
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
commented
Sep 3, 2019
Updated the patch. Will test the submit SCP again when serverNode is null. |
Apache9
left a comment
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Optional.get will never return null, it will throw a NoSuchElementException...
infraio
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. |
Apache9
commented
Sep 3, 2019
Yes, this is possible. You can see TestSCPGetRegionsRace, where we override AssignmentManager and hang the SCP when it calls getRegionsOnServer. |
Apache-HBase
commented
Sep 3, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Sep 5, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Sep 6, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Sep 6, 2019
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Sep 7, 2019
💔 -1 overall
This message was automatically generated. |
…rtFailoverSplitWithoutZk
…rtFailoverSplitWithoutZk (#574) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…rtFailoverSplitWithoutZk (#574) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…rtFailoverSplitWithoutZk (apache#574) Signed-off-by: Duo Zhang <zhangduo@apache.org>
…rtFailoverSplitWithoutZk (apache#574) Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 5e98129) Change-Id: Ib1f0549c24d2b81559e33bc22d4096b246a1e37a
…rtFailoverSplitWithoutZk