Apache9 commented on code in PR #7089:
URL: https://github.com/apache/hbase/pull/7089#discussion_r2140538896


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorOverAsyncBufferedMutator.java:
##########
@@ -135,13 +135,15 @@ public void mutate(List<? extends Mutation> mutations) 
throws IOException {
       long heapSize = mutation.heapSize();
       bufferedSize.addAndGet(heapSize);
       addListener(fs.get(i), (r, e) -> {
-        futures.remove(toComplete);
-        bufferedSize.addAndGet(-heapSize);
-        if (e != null) {
-          errors.add(Pair.newPair(mutation, e));
-          toComplete.completeExceptionally(e);
-        } else {
-          toComplete.complete(r);
+        synchronized (this) {

Review Comment:
   Not a big problem.



-- 
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]

Reply via email to