sijie commented on a change in pull request #1100: Improve decomission test
URL: https://github.com/apache/bookkeeper/pull/1100#discussion_r165733498
##########
File path:
bookkeeper-server/src/test/java/org/apache/bookkeeper/client/BookieDecommissionTest.java
##########
@@ -44,14 +46,17 @@
public BookieDecommissionTest() {
super(NUM_OF_BOOKIES, 480);
- baseConf.setOpenLedgerRereplicationGracePeriod(String.valueOf(30000));
- setAutoRecoveryEnabled(true);
+ baseConf.setOpenLedgerRereplicationGracePeriod(100);
+ setAutoRecoveryEnabled(false);
Review comment:
the way I see this - what decommission test is doing here is to testing the
decommission behavior. we are not testing killing auto recovery. we don't need
to start autorecovery on every bookie, it is resource consumed and don't have
more meanings to the test itself. move auto recovery process out of the
bookies, it can make the auto recovery trigger more deterministic, rather than
replying on non-deterministic sleeping behavior.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services