Technoboy- commented on code in PR #24945:
URL: https://github.com/apache/pulsar/pull/24945#discussion_r2503513349


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/transaction/buffer/utils/TransactionBufferTestImpl.java:
##########
@@ -34,4 +41,12 @@ public TransactionBufferTestImpl(PersistentTopic topic) {
     public State getState() {
         return state == null ? super.getState() : state;
     }
+
+    @Override
+    protected CompletableFuture<Position> internalAppendBufferToTxn(TxnID 
txnId, ByteBuf buffer, long seq) {
+        if (followingInternalAppendBufferToTxnFail) {
+            return CompletableFuture.failedFuture(new 
RuntimeException("fail"));

Review Comment:
   Better to give more accurate log



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