Skip to content

Conversation

@guojialiang92
Copy link
Contributor

@guojialiang92 guojialiang92 commented Mar 11, 2025

Description

This PR solves the problem raised by issue 17566
To avoid segment number conflicts, adjust the default step to 100000.
In order to adjust flexibly, I have added dynamic configuration at the index level.

Related Issues

Resolves 17566

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

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

@guojialiang92 guojialiang92 force-pushed the dev/add_segment_counter_increment_step_setting branch from 36c979d to c3d39c5 Compare March 11, 2025 10:31
@github-actions
Copy link
Contributor

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

…er_increment_step_setting

# Conflicts:
#	CHANGELOG.md
@github-actions
Copy link
Contributor

❌ Gradle check result for 7676087: 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 c12b5c9: SUCCESS

@codecov
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.41%. Comparing base (1628152) to head (4e08ac8).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17568      +/-   ##
============================================
- Coverage     72.43%   72.41%   -0.03%     
+ Complexity    66789    66764      -25     
============================================
  Files          5449     5449              
  Lines        309085   309085              
  Branches      44979    44979              
============================================
- Hits         223899   223809      -90     
- Misses        66906    66924      +18     
- Partials      18280    18352      +72     

☔ 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.

@guojialiang92 guojialiang92 changed the title [segment replication] add SEGMENT_COUNTER_INCREMENT_STEP_SETTING and increase default step [segment replication] Increase the default segment counter step size when replica promoting Apr 10, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for 010aa1c: 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: guojialiang <[email protected]>
@guojialiang92 guojialiang92 force-pushed the dev/add_segment_counter_increment_step_setting branch from 010aa1c to 4e08ac8 Compare April 10, 2025 03:41
@github-actions
Copy link
Contributor

✅ Gradle check result for 4e08ac8: SUCCESS

@mch2 mch2 merged commit ead6e03 into opensearch-project:main Apr 10, 2025
31 checks passed
rgsriram pushed a commit to rgsriram/OpenSearch that referenced this pull request Apr 15, 2025
…when replica promoting (opensearch-project#17568)

* add segment counter increment step setting

Signed-off-by: guojialiang <[email protected]>

* add changelog

Signed-off-by: guojialiang <[email protected]>

* change the default value directly

Signed-off-by: guojialiang <[email protected]>

* add CHANGELOG

Signed-off-by: guojialiang <[email protected]>

---------

Signed-off-by: guojialiang <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…when replica promoting (opensearch-project#17568)

* add segment counter increment step setting

Signed-off-by: guojialiang <[email protected]>

* add changelog

Signed-off-by: guojialiang <[email protected]>

* change the default value directly

Signed-off-by: guojialiang <[email protected]>

* add CHANGELOG

Signed-off-by: guojialiang <[email protected]>

---------

Signed-off-by: guojialiang <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
…when replica promoting (opensearch-project#17568)

* add segment counter increment step setting

Signed-off-by: guojialiang <[email protected]>

* add changelog

Signed-off-by: guojialiang <[email protected]>

* change the default value directly

Signed-off-by: guojialiang <[email protected]>

* add CHANGELOG

Signed-off-by: guojialiang <[email protected]>

---------

Signed-off-by: guojialiang <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement or improvement to existing feature or request Indexing:Replication Issues and PRs related to core replication framework eg segrep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[segment replication] Increase the step size when replica promoting

3 participants