Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: expose information about rebalance events in th reader#1331

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
FilipeMCruz wants to merge1 commit intosegmentio:main
base:main
Choose a base branch
Loading
fromFilipeMCruz:FilipeMCruz/expose-rebalance-events

Conversation

@FilipeMCruz
Copy link

Add configuration entry for the reader to define a callback function that collects rebalance events in the form of map[topic name:string][]PartitionAssignment

This information is useful for consumers that need to be aware of what partitions they are assigned to, so that they know when to release resources such as old messages waiting to be processed and committed.

Currently the only way to be aware of these rebalance events is via logs, this PR exposes a cleaner way to collect rebalance events.

Note: runninggo fmt as mentioned in the contributing_guidelines changed comments of functions that I haven't touched, I can revert those changes if needed.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@FilipeMCruz

[8]ページ先頭

©2009-2025 Movatter.jp