-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Pull-based Ingestion] Support cluster write blocks #18280
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
[Pull-based Ingestion] Support cluster write blocks #18280
Conversation
e405c89 to
608546c
Compare
|
❌ Gradle check result for 608546c: 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? |
server/src/main/java/org/opensearch/indices/pollingingest/StreamPoller.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/pollingingest/DefaultStreamPoller.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 886688e: 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? |
7c64364 to
1c58b78
Compare
|
❕ Gradle check result for 1c58b78: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18280 +/- ##
============================================
- Coverage 72.56% 72.51% -0.05%
+ Complexity 67391 67360 -31
============================================
Files 5488 5488
Lines 311030 311062 +32
Branches 45216 45217 +1
============================================
- Hits 225687 225570 -117
- Misses 66916 67087 +171
+ Partials 18427 18405 -22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1c58b78 to
6964d30
Compare
...n/java/org/opensearch/action/admin/indices/streamingingestion/state/ShardIngestionState.java
Show resolved
Hide resolved
Signed-off-by: Varun Bharadwaj <[email protected]>
Signed-off-by: Varun Bharadwaj <[email protected]>
6964d30 to
b00ceb7
Compare
|
❌ Gradle check result for b00ceb7: 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? |
|
❌ Gradle check result for b00ceb7: 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: Varun Bharadwaj <[email protected]>
b00ceb7 to
62f3c80
Compare
…ct#18280) * Support cluster write blocks in pull-based ingestion Signed-off-by: Varun Bharadwaj <[email protected]> * Update poller from cluster state applier to listener Signed-off-by: Varun Bharadwaj <[email protected]> * Add unit tests Signed-off-by: Varun Bharadwaj <[email protected]> --------- Signed-off-by: Varun Bharadwaj <[email protected]>
…ct#18280) * Support cluster write blocks in pull-based ingestion Signed-off-by: Varun Bharadwaj <[email protected]> * Update poller from cluster state applier to listener Signed-off-by: Varun Bharadwaj <[email protected]> * Add unit tests Signed-off-by: Varun Bharadwaj <[email protected]> --------- Signed-off-by: Varun Bharadwaj <[email protected]>
…ct#18280) * Support cluster write blocks in pull-based ingestion Signed-off-by: Varun Bharadwaj <[email protected]> * Update poller from cluster state applier to listener Signed-off-by: Varun Bharadwaj <[email protected]> * Add unit tests Signed-off-by: Varun Bharadwaj <[email protected]> --------- Signed-off-by: Varun Bharadwaj <[email protected]>Signed-off-by: TJ Neuenfeldt <[email protected]>
…ct#18280) * Support cluster write blocks in pull-based ingestion Signed-off-by: Varun Bharadwaj <[email protected]> * Update poller from cluster state applier to listener Signed-off-by: Varun Bharadwaj <[email protected]> * Add unit tests Signed-off-by: Varun Bharadwaj <[email protected]> --------- Signed-off-by: Varun Bharadwaj <[email protected]>
Description
This PR adds support for cluster write blocks in pull-based ingestion flow. The stream poller is enhanced to listen to cluster state changes and the poller is paused when a write block is active, and resumed when the write block is removed.
GetIngestionState API is also enhanced to reflect the write block status of the poller.
Related Issues
Resolves #18279
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.