Skip to content

[KIP-932] : Add more tests for close and destroy 5/N#2285

Merged
Kaushik Raina (k-raina) merged 3 commits into
masterfrom
dev_kip-932_queues-for-kafka_add_tests_5_of_N
Jun 24, 2026
Merged

[KIP-932] : Add more tests for close and destroy 5/N#2285
Kaushik Raina (k-raina) merged 3 commits into
masterfrom
dev_kip-932_queues-for-kafka_add_tests_5_of_N

Conversation

@k-raina

Copy link
Copy Markdown
Member

Summary
Add more tests for close and destroy

@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@airlock-confluentinc airlock-confluentinc Bot force-pushed the dev_kip-932_queues-for-kafka_add_tests_5_of_N branch from 6ff80ff to 745bad2 Compare June 18, 2026 19:00
Base automatically changed from dev_kip-932_queues-for-kafka to master June 23, 2026 08:53
@k-raina Kaushik Raina (k-raina) changed the title [KIP-932] : Add more tests for close and destroy [KIP-932] : Add more tests for close and destroy 5/N Jun 24, 2026
@airlock-confluentinc airlock-confluentinc Bot force-pushed the dev_kip-932_queues-for-kafka_add_tests_5_of_N branch from 745bad2 to 013ac74 Compare June 24, 2026 08:23
Copilot AI review requested due to automatic review settings June 24, 2026 08:23
@k-raina Kaushik Raina (k-raina) removed the request for review from Copilot June 24, 2026 08:23
Copilot AI review requested due to automatic review settings June 24, 2026 10:07
@k-raina Kaushik Raina (k-raina) removed the request for review from Copilot June 24, 2026 10:07
Comment on lines +156 to +166
def test_callback_reentrancy_guard_covers_all_methods(kafka_cluster):
"""Any consumer method called from inside the ack-commit callback is
rejected with IllegalStateException and leaves the consumer usable. The
reentrancy guard reports _STATE, which surfaces as IllegalStateException
(not a KafkaException). Extends test_callback_reentrancy_guard (which only
checks commit_async + set_callback) to poll, the subscribe family,
commit_sync, and acknowledge.

close() is left out on purpose: calling it from the callback currently
bricks the consumer even though the call is rejected (a known bug, tracked
separately), which would wreck the rest of the test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Close also has this librdkafka entrancy check. What do you mean by this?

Copilot AI review requested due to automatic review settings June 24, 2026 13:19
@sonarqube-confluent

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@k-raina Kaushik Raina (k-raina) merged commit 60d0e43 into master Jun 24, 2026
3 checks passed
@k-raina Kaushik Raina (k-raina) deleted the dev_kip-932_queues-for-kafka_add_tests_5_of_N branch June 24, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants