-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Batch Async Fetcher class changes #8742
Conversation
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Gaurav614 for raising this smaller PR. Added minor comments.
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gaurav614 Please re-verify the ignore nodes logic once. I'm good with other responses 👍🏼 .
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncBatchShardFetch.java
Outdated
Show resolved
Hide resolved
Compatibility status:Checks if related components are compatible with change 7dc30a4 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/performance-analyzer.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer-rca.git] |
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gaurav Chandani <[email protected]>
Signed-off-by: Gaurav Chandani <[email protected]>
Signed-off-by: Gaurav Chandani <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change 6c82091 Incompatible componentsSkipped componentsCompatible components |
Signed-off-by: Gaurav Chandani <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gaurav Chandani <[email protected]>
Compatibility status:Checks if related components are compatible with change ea6e081 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [] |
Compatibility status:Checks if related components are compatible with change 4def974 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [] |
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change ce39ac1 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
Signed-off-by: Gaurav Chandani <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/gateway/AsyncShardFetch.java
Outdated
Show resolved
Hide resolved
.../main/java/org/opensearch/action/admin/indices/shards/TransportIndicesShardStoresAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncShardFetch.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/AsyncShardFetch.java
Outdated
Show resolved
Hide resolved
1. Instead of using Map<ShardId,String> in Fetcher class now using Map<ShardId,ShardAttributes> for making code more extensible 2. Added UT for newly added constructor in fetcher class 3. Renamed logKey to RerouteKey 4. Add IllegalStateException for non-batched fetch Signed-off-by: Gaurav Chandani <[email protected]>
1. Instead of using Map<ShardId,String> in Fetcher class now using Map<ShardId,ShardAttributes> for making code more extensible 2. Added UT for newly added constructor in fetcher class 3. Renamed logKey to RerouteKey 4. Add IllegalStateException for non-batched fetch Signed-off-by: Gaurav Chandani <[email protected]>
❌ Gradle check result for 6242d2e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Gaurav Chandani <[email protected]>
❌ Gradle check result for 7dc30a4: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Shivansh Arora <[email protected]>
❕ Gradle check result for 8554388: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Gaurav Chandani <[email protected]>
❕ Gradle check result for 8d56eca: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no other major comments
* Async Fetcher class changes Signed-off-by: Gaurav Chandani <[email protected]>
* Async Fetcher class changes Signed-off-by: Gaurav Chandani <[email protected]> (cherry picked from commit 63f4f13) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Async Fetcher class changes (cherry picked from commit 63f4f13) Signed-off-by: Gaurav Chandani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Async Fetcher class changes Signed-off-by: Gaurav Chandani <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
This pull request is part of the improvement #5098
It will add a async batcher class that will send the broadcast operation to all nodes for fetching relevant shard data for a batch of shards. It is analogous to
[AsyncShardFetch]
(OpenSearch/server/src/main/java/org/opensearch/gateway/AsyncShardFetch.java
Line 75 in 2a1eff5
Related Issues
Resolves #8956
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.