Skip to content

Commit

Permalink
Addressed Jun's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adixitconfluent committed Nov 15, 2024
1 parent f7d1c89 commit 5f343a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void onExpiration() {
*/
@Override
public void onComplete() {
// We are utilizing lock so that onComplete doesn't do a dirty read for global variables -
// We are utilizing lock so that onComplete doesn't do a dirty read for instance variables -
// partitionsAcquired and partitionsAlreadyFetched, since these variables can get updated in a different tryComplete thread.
lock.lock();
log.trace("Completing the delayed share fetch request for group {}, member {}, "
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/kafka/server/share/SharePartition.java
Original file line number Diff line number Diff line change
Expand Up @@ -2426,6 +2426,7 @@ public String toString() {
* FetchOffsetMetadata class is used to cache offset and its log metadata.
*/
static final class OffsetMetadata {
// This offset could be different from offsetMetadata.messageOffset if it's in the middle of a batch.
private long offset;
private LogOffsetMetadata offsetMetadata;

Expand Down

0 comments on commit 5f343a5

Please sign in to comment.