Skip to content

MINOR: Add AdminClient stale leader close grace period test#22904

Open
Parkerhiphop wants to merge 1 commit into
apache:trunkfrom
Parkerhiphop:minor-admin-close-stale-leader-test
Open

MINOR: Add AdminClient stale leader close grace period test#22904
Parkerhiphop wants to merge 1 commit into
apache:trunkfrom
Parkerhiphop:minor-admin-close-stale-leader-test

Conversation

@Parkerhiphop

@Parkerhiphop Parkerhiphop commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Follow up for #22529 (comment)

Adds a small AdminClient integration test covering close grace period behavior when a partition leader cache entry becomes stale.

The test populates the partition leader cache via deleteRecords, shuts down the cached leader broker, starts a second deleteRecords call, and then closes the admin client with a grace period.

It verifies the pending result completes with TimeoutException rather than being failed prematurely while the client is closing.

Test Command:

./gradlew :clients:clients-integration-tests:test --tests AdminClientTimeoutIntegrationTest.testAdminClientCloseGracePeriodWithStaleLeader

@github-actions github-actions Bot added triage PRs from the community tests Test fixes (including flaky tests) clients small Small PRs labels Jul 22, 2026
Add an integration test covering AdminClient close grace period behavior when a partition leader cache entry points at a broker that has shut down.

The test first populates the cache through deleteRecords, shuts down the cached leader, then closes the admin client while a second deleteRecords call is pending and verifies the result times out normally.
@Parkerhiphop
Parkerhiphop force-pushed the minor-admin-close-stale-leader-test branch from 4cee70f to 70125e1 Compare July 22, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved clients small Small PRs tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants