Sigma-Ma opened a new pull request, #8764:
URL: https://github.com/apache/hbase/pull/8764

   ### What changes were proposed in this pull request?
   
   Start measuring elapsed time before constructing RegionNormalizerWorker.
   
   ### Why are the changes needed?
   
   The worker creates its RateLimiter during construction. Permits accumulated 
before the previous start timestamp could make the measured duration fall below 
five seconds and cause a false test failure.
   
   ### How was this patch tested?
   
   ```bash
   mvn -B -ntp -pl hbase-server -Dtest=TestRegionNormalizerWorker 
-Dsurefire.failIfNoSpecifiedTests=true -Dsurefire.rerunFailingTestsCount=0 
-Dsurefire.skipSecondPart=true test
   
   for run in {1..10}; do 
       mvn -B -ntp -pl hbase-server 
'-Dtest=TestRegionNormalizerWorker#testRateLimit' 
-Dsurefire.failIfNoSpecifiedTests=true -Dsurefire.rerunFailingTestsCount=0 
surefire:test || break 
   done


-- 
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]

Reply via email to