Migrated from deprecated BrokerClient to new BrokerClient #17681
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title:
Improved Segment Load Status Fetcher: Enhanced Query Handling and Code Refactoring
Description:
This PR introduces improvements and refactoring to the
SegmentLoadStatusFetcher
in the Apache Druid project. The changes aim to improve code maintainability, enhance performance in segment loading operations, and ensure more reliable status checks when waiting for segments to load.Key Changes:
Enhanced Query Handling:
Status Update Logic:
Exception Handling Improvements:
Refactoring for Code Readability:
Thread Management:
Testing:*
Backward Compatibility:
The changes maintain backward compatibility with existing segment loading workflows in Apache Druid.
Reviewer Notes:
Review the SQL query and version condition logic for correctness and efficiency.
Validate exception handling mechanisms for edge cases.
Ensure thread handling improvements are correctly implemented.
This PR has:
been self-reviewed.
added documentation for new or modified features or behaviors.
a release note entry in the PR description.
added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
added or updated version, license, or notice information in licenses.yaml
added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
added integration tests.
been tested in a test Druid cluster.