somandal opened a new pull request, #15637: URL: https://github.com/apache/pinot/pull/15637
Fix needReload to fetch status from servers in ExternalView Today the `needReload` API fetches the status from the servers with the instance tag corresponding to the Tenant. This is not a true reflection of which servers actually host the segments (e.g. rebalance the instance tags may have changed, tiered storage uses tier tags for other tiers, we could have tagOverride setup for REALTIME tables). A better reflection is to use the ExternalView as source of truth as it has the currently assigned servers. This also changes the Rebalance pre-check for needReload to utilize the same ExternalView API Tested this locally in QuickStart with a few different scenarios: - Tenant migration should show needReload API and rebalance pre-check based on EV - Added delays to all the state transition callbacks to emulate slow updates to EV and checked the API still works -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org