keith-turner closed pull request #987: Possible misleading calculation of
notifications size in the queue is fixed.
URL: https://github.com/apache/fluo/pull/987
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/modules/core/src/main/java/org/apache/fluo/core/worker/NotificationProcessor.java
b/modules/core/src/main/java/org/apache/fluo/core/worker/NotificationProcessor.java
index 46159b80..94669332 100644
---
a/modules/core/src/main/java/org/apache/fluo/core/worker/NotificationProcessor.java
+++
b/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()
+ + col.getQualifier().length() + col.getVisibility().length();
}
public synchronized boolean add(RowColumn rowCol, Future<?> task) {
----------------------------------------------------------------
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