Skip to content

Generate new admin client when running into coordinator errors - #25485

Merged
steveny91 merged 4 commits into
masterfrom
sy/kafka-consumer-coordinator-error-recovery
Oct 20, 2026
Merged

steveny91 merged 4 commits into
masterfrom
sy/kafka-consumer-coordinator-error-recovery

Conversation

@steveny91

@steveny91 steveny91 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

After a NOT_COORDINATOR or COORDINATOR_NOT_AVAILABLE, call the existing close_admin_client() once all futures have finished. Current behavior is that the admin_client won't be refreshed if a NOT_COORDINATOR or COORDINATOR_NOT_AVAILABLE error is seen and it remembers the consumer.

Found while troubleshooting:
#25483

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

evalya-impact-summary

evalya impact analysis
Impact analysis: RUN-ALL — every test task will run
Trigger:         empty diff (default branch, scheduled run, or shallow-clone fallback)
Test tasks:      0 (all selected)
Publish tasks:   2 (always emitted)
Diff:            empty (no diff information)

Learn more about CI impact filtering

@steveny91 steveny91 changed the title generate new admin client when running into coordinator errors Generate new admin client when running into coordinator errors Oct 1, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ Dispatcher tests: passed

Dispatcher beta: informational only
Existing CI remains the merge signal.

  6/6 jobs

✅ 6 passed · nothing failed

Batches · ✅ batch-01 6/6

Dispatcher finished on 0fffc55 — GitHub Run · Dispatcher Logs.

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Pipelines  Tests  Code Coverage

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 1 Pipeline job failed

Validate repository | Run Validations / Validate

View more details · View in GitHub Actions

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 96.00%
• Overall Coverage: 92.68% (+2.80%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8a48a3e | Docs | View more details | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Disk usage change

Commit 8a48a3e compared against 0fffc55.

Uncompressed

linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64
🔺 +622 B 🔺 +622 B 🔺 +622 B 🔺 +622 B 🔺 +622 B
Details
Name Version Type linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64
kafka_consumer 9.2.1 Integration 🔺 +622 B 🔺 +622 B 🔺 +622 B 🔺 +622 B 🔺 +622 B

Compressed

linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64
🔺 +227 B 🔺 +227 B 🔺 +227 B 🔺 +227 B 🔺 +227 B
Details
Name Version Type linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64
kafka_consumer 9.2.1 Integration 🔺 +227 B 🔺 +227 B 🔺 +227 B 🔺 +227 B 🔺 +227 B

@chouetz chouetz added the internal Identify a non-fork PR label Oct 2, 2026
steveny91 and others added 2 commits October 19, 2026 14:25
…oordinator-error-recovery

Resolve the conflict in kafka_consumer/tests/test_unit.py, where both
sides appended tests to the end of the file: keep master's consumer
group prefilter tests (#25232), followed by this branch's coordinator
error test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@steveny91
steveny91 marked this pull request as ready for review October 19, 2026 18:30
@steveny91
steveny91 requested a review from a team as a code owner October 19, 2026 18:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T18:32:28.276101Z 8a48a3e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-prod-us1-6 datadog-prod-us1-6 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

Successful group offsets are preserved when another group returns a coordinator error. The cached AdminClient is reset after all futures finish, allowing the next request to rediscover coordinators.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 8a48a3e

@steveny91 steveny91 added the qa/skip-qa Automatically skip this PR for the next QA label Oct 20, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Validation Report

All 22 validations passed.

Show details
Validation Description Status
agent-reqs Verify check versions match the Agent requirements file ✅
ci Validate CI configuration and code coverage settings ✅
codeowners Validate every integration has a CODEOWNERS entry ✅
config Validate default configuration files against spec.yaml ✅
dep Verify dependency pins are consistent and Agent-compatible ✅
http Validate integrations use the HTTP wrapper correctly ✅
imports Validate check imports do not use deprecated modules ✅
integration-style Validate check code style conventions ✅
jmx-metrics Validate JMX metrics definition files and config ✅
labeler Validate PR labeler config matches integration directories ✅
legacy-signature Validate no integration uses the legacy Agent check signature ✅
license-headers Validate Python files have proper license headers ✅
licenses Validate third-party license attribution list ✅
metadata Validate metadata.csv metric definitions ✅
models Validate configuration data models match spec.yaml ✅
openmetrics Validate OpenMetrics integrations disable the metric limit ✅
package Validate Python package metadata and naming ✅
pr-description Validate the pull request checklist and visible description length ✅
qa-label Validate the pull request declares whether it needs QA for the next Agent release ✅
readmes Validate README files have required sections ✅
saved-views Validate saved view JSON file structure and fields ✅
version Validate version consistency between package and changelog ✅

View full run

@steveny91
steveny91 added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 2a373e8 Oct 20, 2026
63 of 66 checks passed
@steveny91
steveny91 deleted the sy/kafka-consumer-coordinator-error-recovery branch October 20, 2026 20:26
@temporal-github-worker-1

Copy link
Copy Markdown

Backport evaluation: View Slack thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/7.85.x integration/kafka_consumer internal Identify a non-fork PR qa/skip-qa Automatically skip this PR for the next QA team/agent-integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants