sashapolo commented on code in PR #2581:
URL: https://github.com/apache/ignite-3/pull/2581#discussion_r1324123904


##########
modules/core/src/main/java/org/apache/ignite/internal/streamer/StreamerSubscriber.java:
##########
@@ -223,13 +225,7 @@ private void close(@Nullable Throwable throwable) {
 
             var futs = pendingRequests.values().toArray(new 
CompletableFuture[0]);
 
-            CompletableFuture.allOf(futs).whenComplete((res, err) -> {
-                if (err != null) {
-                    completionFut.completeExceptionally(err);
-                } else {
-                    completionFut.complete(null);
-                }
-            });
+            
CompletableFuture.allOf(futs).whenComplete(copyStateTo(completionFut));

Review Comment:
   that's my point exactly, I'm kinda doing a prohibited thing already, I don't 
want to make my case even worse)



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