Skip to content
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

KAFKA-18796: Added more information to error message when assertion fails for acquisition lock timeout #19247

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

chirag-wadhwa5
Copy link
Contributor

This PR adds extra information in assertion failed messages for tests in SharePartitionTest revolving around acquisition lock timeouts functionality.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…ails in SharePartitionTest
@github-actions github-actions bot added triage PRs from the community core Kafka Broker KIP-932 Queues for Kafka small Small PRs labels Mar 19, 2025
@AndrewJSchofield AndrewJSchofield added ci-approved and removed triage PRs from the community labels Mar 20, 2025
Copy link
Member

@AndrewJSchofield AndrewJSchofield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Just one comment.

@@ -6648,6 +6648,15 @@ public void testAcquireWhenBatchesRemovedForFetchOffsetForSameCachedBatch() {
});
});
}

private String assertionFailedMessage(SharePartition sharePartition) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the usage of this correctly, the hard-coded 5L here should be a parameter to this method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the required change. Requesting a re review, thanks !

… SharePartitionTest
@AndrewJSchofield AndrewJSchofield merged commit b5f5265 into apache:trunk Mar 24, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved core Kafka Broker KIP-932 Queues for Kafka small Small PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants