keith-turner closed pull request #998: fixes #992 sync tracking of notifications
URL: https://github.com/apache/fluo/pull/998
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 94669332..5dca6875 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
@@ -124,7 +124,7 @@ public synchronized void clear() {
notify();
}
- public boolean requeue(RowColumn rowCol, FutureTask<?> ft) {
+ public synchronized boolean requeue(RowColumn rowCol, FutureTask<?> ft) {
if (!queuedWork.containsKey(rowCol)) {
return false;
}
@@ -245,6 +245,7 @@ public boolean addNotification(final NotificationFinder
notificationFinder,
return true;
}
+ @Override
public void close() {
tracker.finishAddingNotifications(id);
}
----------------------------------------------------------------
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