ryanwaha opened a new pull request, #24312:
URL: https://github.com/apache/kafka/pull/24312
- Replace the AtomicReference holding ListenerContext with a plain field.
Every access is already inside a synchronized method, so it added no
safety.
- Remove setRebalanceListener(RebalanceListener) and its ListenerContext
constructor.
They were only used by tests.
- Rewrite testFatalFailureWhenMemberAlreadyLeft with mockListener() and
verify no PartitionsRemovedEvent is added.
Setting a listener on the mocked ConsumerSubscriptionState had no effect,
so the test could never fail.
- Call transitionToFatal() before onHeartbeatFailure() in that test.
This matches AbstractHeartbeatRequestManager, so the "already left" path
is actually exercised.
- Remove testSingleArgSetRebalanceListenerRejectsNull.
It only covered the removed overload.
--
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]