8000 KAFKA-19019: Add support for remote storage fetch for share groups by arvi18 · Pull Request #12 · coderabbit-test/kafka · GitHub
[go: up one dir, main page]

Skip to content

KAFKA-19019: Add support for remote storage fetch for share groups #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: trunk
Choose a base branch
from
Open
Changes from 1 commit
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
Prev P C17C revious commit
Next Next commit
Addressed Jun's round 3 review comments - part 2
  • Loading branch information
adixitconfluent committed Apr 17, 2025
commit f94f7ca216470a40bf80386b4441692e08456623
11 changes: 10 additions & 1 deletion core/src/main/java/kafka/server/share/DelayedShareFetch.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,17 @@ public boolean tryComplete() {
releasePartitionLocks(topicPartitionData.keySet());
partitionsAcquired.clear();
localPartitionsAlreadyFetched.clear();
return forceComplete();
} else {
boolean completedByMe = forceComplete();
// If invocation of forceComplete is not successful, then that means the request is already completed
// hence release the acquired locks. This can occur in case of remote storage fetch if there is a thread that
// completes the operation (due to expiration) right before a different thread is about to enter tryComplete.
if (!completedByMe) {
releasePartitionLocks(partitionsAcquired.keySet());
}
return completedByMe;
}
return forceComplete();
}
}

Expand Down
0