Skip to content

Conversation

@kh3ra
Copy link
Contributor

@kh3ra kh3ra commented Aug 6, 2025

Description

Added a dynamic cluster setting - indices.replication.merged_segment_warmer_enabled to enable the merged segment warmer feature. This can only be enabled if FeatureFlags.MERGED_SEGMENT_WARMER_EXPERIMENTAL_FLAG is enabled.
The default value for the setting is false.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

❌ Gradle check result for 8dd3cea: 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?

@kh3ra
Copy link
Contributor Author

kh3ra commented Aug 7, 2025

@ashking94 Do we want to have a validation on the experimental flag for this new setting?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

❌ Gradle check result for 426741a: 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?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2025

✅ Gradle check result for 7ecd349: SUCCESS

@codecov
Copy link

codecov bot commented Aug 9, 2025

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.81%. Comparing base (3e747cb) to head (cd8b02d).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...g/opensearch/index/engine/MergedSegmentWarmer.java 66.66% 0 Missing and 1 partial ⚠️
...earch/index/engine/MergedSegmentWarmerFactory.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18942      +/-   ##
============================================
+ Coverage     72.79%   72.81%   +0.02%     
- Complexity    69605    69689      +84     
============================================
  Files          5658     5658              
  Lines        320079   320102      +23     
  Branches      46345    46350       +5     
============================================
+ Hits         232996   233097     +101     
+ Misses        68230    68128     -102     
- Partials      18853    18877      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

❌ Gradle check result for d0937b4: 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?

@kh3ra kh3ra force-pushed the dev/remote-merged-segment-warmer-dynamic-setting branch from 84f8746 to 00ea9d4 Compare August 12, 2025 05:55
@github-actions
Copy link
Contributor

❌ Gradle check result for 00ea9d4: 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?

@kh3ra
Copy link
Contributor Author

kh3ra commented Aug 12, 2025

❌ Gradle check result for 00ea9d4: 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 - #18956

StreamStringTermsAggregatorTests > testBuildAggregationsBatchWithSize FAILED
    java.lang.AssertionError: 
    Expected: <10>
         but: was <6>
        at __randomizedtesting.SeedInfo.seed([ED993AC4F489716F:B58FB725ED4BC5E1]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.junit.Assert.assertThat(Assert.java:930)
        at org.opensearch.search.aggregations.bucket.terms.StreamStringTermsAggregatorTests.testBuildAggregationsBatchWithSize(StreamStringTermsAggregatorTests.java:260)

@ashking94
Copy link
Member

Lets add a proper PR title and description

@github-actions
Copy link
Contributor

❌ Gradle check result for cfbd8dc: 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?

@kh3ra kh3ra changed the title Dynamic cluster setting to control merge segment warming feature Added a dynamic cluster setting to control merge segment warming Aug 29, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for 29b2c68: 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?

@github-actions
Copy link
Contributor

❌ Gradle check result for ca8cf97: 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?

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

❌ Gradle check result for 153f343: 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?

Copy link
Member

@ashking94 ashking94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment, overall lgtm

kh3ra and others added 13 commits September 7, 2025 20:22
…re. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
@kh3ra kh3ra force-pushed the dev/remote-merged-segment-warmer-dynamic-setting branch from 5867ae7 to 58dcce9 Compare September 7, 2025 14:52
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2025

❌ Gradle check result for 58dcce9: 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?

Signed-off-by: Aditya Khera <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

✅ Gradle check result for cd8b02d: SUCCESS

@linuxpi linuxpi merged commit 8d07f79 into opensearch-project:main Sep 8, 2025
31 checks passed
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
jainankitk pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 22, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
asimmahmood1 pushed a commit to jainankitk/OpenSearch that referenced this pull request Sep 23, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 23, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 23, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
pranikum pushed a commit to pranikum/OpenSearch that referenced this pull request Sep 23, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
Signed-off-by: Pranit Kumar <[email protected]>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
…nsearch-project#18942)

* Adding dynamic cluster setting to control merge segment warming feature. The feature would be disabled by default

Signed-off-by: kh3ra <[email protected]>
Signed-off-by: Aditya Khera <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants