kamaci commented on a change in pull request #987: Possible misleading 
calculation of notifications size in the queue is fixed.
URL: https://github.com/apache/fluo/pull/987#discussion_r158563969
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/fluo/core/worker/NotificationProcessor.java
 ##########
 @@ -77,8 +77,8 @@ public Integer getValue() {
 
     private long size(RowColumn rowCol) {
       Column col = rowCol.getColumn();
-      return rowCol.getRow().length() + col.getFamily().length() + 
col.getQualifier().length()
-          + col.getVisibility().length();
+      return (long) rowCol.getRow().length() + col.getFamily().length()
 
 Review comment:
   @keith-turner Exactly! Expression is evaluated as int and than converted to 
long which may conclude with an undesired result.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to