Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server] Use correct offset when non-agg leader is resubscribing for workload change action #1547

Merged
merged 5 commits into from
Feb 24, 2025

Conversation

sixpluszero
Copy link
Contributor

[server] Use correct offset when non-agg leader is resubscribing for workload change action

In Non-Aggregate mode, we reserve special keyword for upstream offset map. During resubscribe as leader action, current code does not look for correct key in the map, and resubscribe to the beginning of the RT topic during pool jump. This will result in a spike in leader HB delay, and a lot of duplicate messages (skipped).
This PR fixes it by using the correct key for upstream offset based on SIT mode.

How was this PR tested?

Added new unit test and integration test to cover this fix.

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

sushantmane
sushantmane previously approved these changes Feb 24, 2025
Copy link
Collaborator

@sushantmane sushantmane left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, @sixpluszero!

@sixpluszero sixpluszero merged commit cd98e00 into linkedin:main Feb 24, 2025
59 checks passed
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