anjy7 commented on PR #23136:
URL: https://github.com/apache/kafka/pull/23136#issuecomment-7052926574
@kevin-wu24 I re-reviewed the changes and made a few more cleanups:
1. Moved both `buildBatch` overloads and `mockAddress` into
`SharedRaftClientContext`, removing the builder’s dependency on the
test-specific context for these helpers. Of the two `buildBatch` overloads, the
builder only needs the static one, but I moved the instance wrapper too so the
overloads stay together for easier maintainability.
2. Restored `assertNoAsyncExceptions()` back to public, its and poll()’s
original Javadocs, and the throws IOException declaration on `build()`. The
changes are just to minimize unrelated changes in this refactor and keep things
same as before.
3. Moved assertNoAsyncExceptions() and poll() back after the election
helpers and localReplicaKey(), with assertNoAsyncExceptions() before poll().
This restores their original relative line order. Done to make it a bit easier
to review the code changes in the PR.
4. Restored package-private visibility for `pollUntilResponse()`,
`deliverRequest(ApiMessage)`, the five-argument `fetchRequest(...)`,
`describeQuorumRequest()`, and RaftProtocol enum. Also restored private
visibility for the test context’s requestTimeoutMs and appendLingerMs, and made
them final since they are assigned during construction and not modified
afterward.
5. Restored `QuorumStateStore` as the declared field type in the builder
and shared context, matching the pre-refactor declarations. The implementation
remains `MockQuorumStateStore`.
--
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]