saintstack commented on a change in pull request #775: HBASE-23230 Enforce 
member visibility in HRegionServer
URL: https://github.com/apache/hbase/pull/775#discussion_r340816531
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
 ##########
 @@ -1819,7 +1785,7 @@ protected void chore() {
         if (r.shouldFlush(whyFlush)) {
           FlushRequester requester = server.getFlushRequester();
           if (requester != null) {
-            long randomDelay = (long) RandomUtils.nextInt(0, rangeOfDelay) + 
MIN_DELAY_TIME;
+            long randomDelay = RandomUtils.nextLong(0, rangeOfDelayMs) + 
MIN_DELAY_TIME;
 
 Review comment:
   Will this change the possible delays? Wonder if nextInt was intentionally 
chosen?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to