-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25830 HBaseCluster support CompactionServer for UTs (addendum) #3464
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
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
/** | ||
* Starts a compaction server thread running | ||
* | ||
* @throws IOException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove empty throws doc
/** | ||
* Wait for the specified compaction server to stop. Removes this thread from list | ||
* of running threads. | ||
* @param serverNumber |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: remove empty param doc
TEST_UTIL.getAdmin().modifyTable(htd); | ||
TEST_UTIL.waitUntilAllRegionsAssigned(TABLENAME); | ||
// invoke compact | ||
TEST_UTIL.compact(TABLENAME, false); | ||
TEST_UTIL.waitFor(6000, () -> COMPACTION_SERVER.requestCount.sum() > 0); | ||
long requestCount = COMPACTION_SERVER.requestCount.sum(); | ||
Thread.sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind explaining a bit here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,this sleep is no need. My Initially thought is compact request is async, this sleep will make the check below effective, After view code I find the increment of request count on compaction server is sync in compaction request
🎊 +1 overall
This message was automatically generated. |
Support create/shutdown compactionserver method in HBaseMinicluster
Fix weakness of TestCompactionServer