Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public ZeroZoneTrafficInterceptor(
public void close() {
if (closed.compareAndSet(false, true)) {
committedEpochManager.close();
snapshotReadPartitionsManager.close();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,10 @@ class ElasticKafkaApis(
}

override def handleOffsetForLeaderEpochRequest(request: RequestChannel.Request): Unit = {
val cf = snapshotAwaitReadySupplier.get()
offsetForLeaderEpochExecutor.execute(() => {
// Await new snapshots to be applied to avoid consumers finding the endOffset jumping back when the snapshot-read partition leader changes.
snapshotAwaitReadySupplier.get().join()
cf.join()
super.handleOffsetForLeaderEpochRequest(request)
})
}
Expand Down
Loading