Skip to content

KAFKA-18796-2: Corrected the check for acquisition lock timeout in Sh… #19338

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged
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
4 changes: 2 additions & 2 deletions core/src/test/java/kafka/server/share/SharePartitionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6660,12 +6660,12 @@ private String assertionFailedMessage(SharePartition sharePartition, Map<Long, L
for (Long offset : entry.getValue()) {
errorMessage.append(String.format("\toffset: %d, offset state: %s, offset acquisition lock timeout task present: %b\n",
offset, sharePartition.cachedState().get(entry.getKey()).offsetState().get(offset).state().id(),
sharePartition.cachedState().get(entry.getKey()).offsetState().get(offset).acquisitionLockTimeoutTask() == null));
sharePartition.cachedState().get(entry.getKey()).offsetState().get(offset).acquisitionLockTimeoutTask() != null));
}
} else {
errorMessage.append(String.format("batch start offset: %d, batch state: %s, batch acquisition lock timeout task present: %b\n",
entry.getKey(), sharePartition.cachedState().get(entry.getKey()).batchState().id(),
sharePartition.cachedState().get(entry.getKey()).batchAcquisitionLockTimeoutTask() == null));
sharePartition.cachedState().get(entry.getKey()).batchAcquisitionLockTimeoutTask() != null));
}
}
return errorMessage.toString();
Expand Down