liuxiaocs7 commented on code in PR #8798:
URL: https://github.com/apache/hbase/pull/8798#discussion_r4333071911
##########
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplicationRecompareRunnable.java:
##########
@@ -109,7 +109,7 @@ public void run() {
}
}
- sleepMs = sleepMs * (2 ^ reCompareBackoffExponent);
+ sleepMs = (int) (sleepMs * Math.pow(2, reCompareBackoffExponent));
Review Comment:
`Math.pow` returns `double`, values above `Integer.MAX_VALUE` (including
positive infinity) cast to `Integer.MAX_VALUE`, without wrapping around. The
existing `int` range is sufficient here.
--
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]