Adding configurable resiliency features to MergedSegmentWarmer#19629
Conversation
|
❌ Gradle check result for 3aeef75: 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/index/engine/MergedSegmentWarmer.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/recovery/RecoverySettings.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/recovery/RecoverySettings.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/InternalEngine.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/engine/MergedSegmentWarmer.java
Show resolved
Hide resolved
|
❌ Gradle check result for f0feabe: null 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? |
f0feabe to
34610d9
Compare
|
❌ Gradle check result for bbd9dd4: 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? |
bbd9dd4 to
2459597
Compare
|
❌ Gradle check result for 2459597: 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 36d0a37: 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 4aec3d9: 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 b06e2ac: 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? |
|
Flaky test failure - #18484 |
|
❌ Gradle check result for af90e55: 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 32a46cc: 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? |
32a46cc to
1b635d9
Compare
|
❌ Gradle check result for b07e5da: 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? |
b07e5da to
f9c1f3d
Compare
|
❌ Gradle check result for f9c1f3d: 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 f9c1f3d: 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? |
Standardized merged segment warmer - related setting names. Added a threshold property that controls which merged segments get pre-copied (warmed), ensuring only segments larger than the specified size are warmed. Added cluster defaults for max_merge_count and max_merge_threads. AsyncPublishReferencedSegmentsTask only runs when INDICES_REPLICATION_MERGES_WARMER_ENABLED_SETTING = true Signed-off-by: Aditya Khera <kheraadi@amazon.com>
Signed-off-by: Aditya Khera <kheraadi@amazon.com>
Signed-off-by: Aditya Khera <kheraadi@amazon.com>
Signed-off-by: Aditya Khera <kheraadi@amazon.com>
Signed-off-by: Aditya Khera <kheraadi@amazon.com>
f9c1f3d to
677c46a
Compare
…earch-project#19629) * Merge-related config changes Standardized merged segment warmer - related setting names. Added a threshold property that controls which merged segments get pre-copied (warmed), ensuring only segments larger than the specified size are warmed. Added cluster defaults for max_merge_count and max_merge_threads. AsyncPublishReferencedSegmentsTask only runs when INDICES_REPLICATION_MERGES_WARMER_ENABLED_SETTING = true Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Empty commit to trigger build Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing flakiness in ClusterMergeSchedulerConfigsIT Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing breaking changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> * API changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> --------- Signed-off-by: Aditya Khera <kheraadi@amazon.com> Co-authored-by: Aditya Khera <kheraadi@amazon.com>
…earch-project#19629) * Merge-related config changes Standardized merged segment warmer - related setting names. Added a threshold property that controls which merged segments get pre-copied (warmed), ensuring only segments larger than the specified size are warmed. Added cluster defaults for max_merge_count and max_merge_threads. AsyncPublishReferencedSegmentsTask only runs when INDICES_REPLICATION_MERGES_WARMER_ENABLED_SETTING = true Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Empty commit to trigger build Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing flakiness in ClusterMergeSchedulerConfigsIT Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing breaking changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> * API changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> --------- Signed-off-by: Aditya Khera <kheraadi@amazon.com> Co-authored-by: Aditya Khera <kheraadi@amazon.com>
| } | ||
|
|
||
| public void testShouldWarm_failure() throws IOException { | ||
| ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(false); |
There was a problem hiding this comment.
@kh3ra @ashking94 Why was this added? We have tests that depend on assertions tripping when we test the invariants they are asserting. As I understand it this will disable assertions for this particular JVM instance, which JUnit will reuse to run subsequent tests on, though it's non-deterministic which tests will run on which JVM in what order. See #19765 where @varunbharadwaj and I have been struggling with an unrelated test failing due to assertions being disabled.
…earch-project#19629) * Merge-related config changes Standardized merged segment warmer - related setting names. Added a threshold property that controls which merged segments get pre-copied (warmed), ensuring only segments larger than the specified size are warmed. Added cluster defaults for max_merge_count and max_merge_threads. AsyncPublishReferencedSegmentsTask only runs when INDICES_REPLICATION_MERGES_WARMER_ENABLED_SETTING = true Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Empty commit to trigger build Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing flakiness in ClusterMergeSchedulerConfigsIT Signed-off-by: Aditya Khera <kheraadi@amazon.com> * Fixing breaking changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> * API changes Signed-off-by: Aditya Khera <kheraadi@amazon.com> --------- Signed-off-by: Aditya Khera <kheraadi@amazon.com> Co-authored-by: Aditya Khera <kheraadi@amazon.com>
Description
Merge-related config changes
INDICES_REPLICATION_MERGES_WARMER_ENABLED_SETTING = trueRelated Issues
Public documentation - opensearch-project/documentation-website#11410
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.