Demogorgon314 commented on code in PR #21091:
URL: https://github.com/apache/pulsar/pull/21091#discussion_r1311329736


##########
pulsar-broker/src/main/java/org/apache/pulsar/compaction/StrategicTwoPhaseCompactor.java:
##########
@@ -418,10 +418,9 @@ private <T> void phaseTwoLoop(String topic, 
Iterator<Message<T>> reader,
                                 .whenComplete((res, exception2) -> {
                                     if (exception2 != null) {
                                         
promise.completeExceptionally(exception2);
-                                        return;
                                     }
+                                    phaseTwoLoop(topic, reader, lh, 
outstanding, promise);
                                 });
-                        phaseTwoLoop(topic, reader, lh, outstanding, promise);

Review Comment:
   The `RawBatchMessageContainerImpl ` is not thread-safe, right? If we add 
entries parallel, I wonder if this will cause data loss?(add message and clear 
at same time)



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