gaoran10 commented on code in PR #24522:
URL: https://github.com/apache/pulsar/pull/24522#discussion_r2213732336


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedLedger.java:
##########
@@ -420,6 +420,23 @@ void asyncOpenCursor(String name, InitialPosition 
initialPosition, Map<String, L
      */
     long getOffloadedSize();
 
+    /**
+     * Resets the exception thrown by the PayloadProcessor during an add entry 
operation to null.
+     * <p>
+     * **Context:** When an add entry operation fails due to an interceptor, 
all subsequent incoming add entry
+     * operations will also fail. This behavior ensures message ordering and 
consistency.
+     * <p>
+     * **Important:** This method MUST only be called after all pending add 
operations are fully completed
+     * (e.g., after a Topic is unfenced). Calling it prematurely will prevent 
the Managed Ledger (ML)
+     * from being able to write indefinitely.
+     * <p>
+     * **Implementation Note:** Downstream projects that support the ML 
PayloadProcessor should implement

Review Comment:
   Sorry, making a mistake. I want to ask why the Downstream projects need to 
implement this method, this method belongs to the interface of the 
ManagedLedger.



-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to