dajac commented on code in PR #14657:
URL: https://github.com/apache/kafka/pull/14657#discussion_r1374948010
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/runtime/CoordinatorRuntime.java:
##########
@@ -1359,7 +1359,8 @@ public void scheduleUnloadOperation(
log.info("Scheduling unloading of metadata for {} with epoch {}", tp,
partitionEpoch);
scheduleInternalOperation("UnloadCoordinator(tp=" + tp + ", epoch=" +
partitionEpoch + ")", tp, () -> {
- withContextOrThrow(tp, context -> {
+ CoordinatorContext context = coordinators.get(tp);
+ if (context != null) {
if (context.epoch < partitionEpoch) {
Review Comment:
You need to look the context before you use it.
--
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]