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

Broker list fetching API in PinotConnection is fetching dead servers as well which leads to query failures sometimes #15187

Open
chrajeshbabu opened this issue Mar 4, 2025 · 0 comments

Comments

@chrajeshbabu
Copy link
Contributor

Some times the query running from the JDBC driver are failing because of broker list fetching is listing all the servers even the dead servers we should limit to fetch only online brokers so we need to pass the state ONLINE while calling broker list to controller.

public ControllerTenantBrokerResponse getBrokersFromController(String controllerAddress, String tenant) { try { String url = _scheme + "://" + controllerAddress + "/v2/brokers/tenants/" + tenant; BoundRequestBuilder requestBuilder = _httpClient.prepareGet(url); if (_headers != null) { _headers.forEach((k, v) -> requestBuilder.addHeader(k, v)); }

chrajeshbabu added a commit to chrajeshbabu/pinot that referenced this issue Mar 6, 2025
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

No branches or pull requests

1 participant