guihecheng commented on code in PR #3359:
URL: https://github.com/apache/ozone/pull/3359#discussion_r860390002
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/BackgroundPipelineScrubber.java:
##########
@@ -57,6 +57,7 @@ public class BackgroundPipelineScrubber implements SCMService
{
private final long intervalInMillis;
private final long waitTimeInMillis;
private long lastTimeToBeReadyInMillis = 0;
+ private volatile boolean runImmediately = false;
Review Comment:
Oh, it is a nice trick, so now the UT covers both the running and wait state
of the scrubber thread.
Thanks a lot, LGTM.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]