Skip to content

Conversation

@praveenc7
Copy link
Contributor

Summary

#17432

Problem

When a broker restarts (especially on a different pod/host with different intended tags), it connects to Helix with stale tags from the previous run. The original code only updated tags for brand new brokers (if (instanceTags.isEmpty())), leaving restarted brokers with incorrect tags that can cause traffic misrouting.

Proposal

Added a method that runs on every broker startup to compare configured tags with Helix tags and updates them if they differ. This ensures brokers always announce with the correct tags, regardless of restart scenarios.

@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 48.38710% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.31%. Comparing base (2eeecc5) to head (8f9632d).

Files with missing lines Patch % Lines
...e/pinot/broker/broker/helix/BaseBrokerStarter.java 48.38% 11 Missing and 5 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #17433      +/-   ##
============================================
+ Coverage     63.30%   63.31%   +0.01%     
+ Complexity     1474     1468       -6     
============================================
  Files          3155     3155              
  Lines        188119   188135      +16     
  Branches      28792    28795       +3     
============================================
+ Hits         119088   119118      +30     
+ Misses        59800    59782      -18     
- Partials       9231     9235       +4     
Flag Coverage Δ
custom-integration1 ?
integration ?
integration1 ?
integration2 ?
java-11 63.27% <48.38%> (-0.01%) ⬇️
java-21 63.28% <48.38%> (+7.66%) ⬆️
temurin 63.31% <48.38%> (+0.01%) ⬆️
unittests 63.31% <48.38%> (+0.01%) ⬆️
unittests1 55.66% <ø> (+<0.01%) ⬆️
unittests2 33.98% <48.38%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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