accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] mikewalch commented on a change in pull request #1002: Fix implicit casts of numbers & int multiplication
Date Fri, 01 Mar 2019 17:05:46 GMT
mikewalch commented on a change in pull request #1002: Fix implicit casts of numbers &
int multiplication
URL: https://github.com/apache/accumulo/pull/1002#discussion_r261683227
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java
 ##########
 @@ -1291,7 +1291,7 @@ private void waitForTableStateTransition(TableId tableId, TableState
expectedSta
           maxPerServer = serverCounts.max();
           waitTime = maxPerServer * 10;
         } else
-          waitTime = waitFor * 10;
+          waitTime = (long) waitFor * 10;
 
 Review comment:
   This [stackoverflow answer](https://stackoverflow.com/questions/1494862/multiplying-long-values)
explains why.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message