Skip to content

Coordinator: convert offset APIs to async#2951

Merged
dpkp merged 3 commits intomasterfrom
shelley/async-offsets
May 5, 2026
Merged

Coordinator: convert offset APIs to async#2951
dpkp merged 3 commits intomasterfrom
shelley/async-offsets

Conversation

@dpkp
Copy link
Copy Markdown
Owner

@dpkp dpkp commented May 5, 2026

No description provided.

dpkp and others added 3 commits May 5, 2026 06:32
- ensure_coordinator_ready: add async variant ensure_coordinator_ready_async;
  sync wrapper delegates to manager.run.
- fetch_committed_offsets / refresh_committed_offsets_if_needed: add
  *_async coroutines; sync wrappers delegate via manager.run.
- commit_offsets_sync: add _commit_offsets_sync_async; sync wrapper
  delegates via manager.run.
- Replace blocking client.poll(future=...) + time.sleep retry loops with
  manager.wait_for(...) + net.sleep(...) on the IO loop.
- Update test_coordinator.py to mock the new async hooks.

Co-authored-by: Shelley <shelley@exe.dev>
@dpkp dpkp force-pushed the shelley/async-offsets branch from 0c4fd8e to 5a228a7 Compare May 5, 2026 15:20
@dpkp dpkp merged commit 850cc89 into master May 5, 2026
19 checks passed
@dpkp dpkp deleted the shelley/async-offsets branch May 5, 2026 15:33
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.

1 participant