TaiJuWu commented on code in PR #17544:
URL: https://github.com/apache/kafka/pull/17544#discussion_r1808085681


##########
metadata/src/test/java/org/apache/kafka/metalog/LocalLogManager.java:
##########
@@ -732,12 +742,22 @@ public long prepareAppend(
         if (throwOnNextAppend.getAndSet(false)) {
             throw new BufferAllocationException("Test asked to fail the next 
prepareAppend");
         }
-

Review Comment:
   Should we also need to check current node is lead here?
   
(https://github.com/apache/kafka/blob/0f7cd4dcdeb2c705c01743927e36b66b06010f20/raft/src/main/java/org/apache/kafka/raft/RaftClient.java#L150



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