Skip to content
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

limit the max value of cluster.max_shards_per_node to avoid int overflow #14155

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Jun 11, 2024

Signed-off-by: kkewwei [email protected]

Description

Limit the max value of cluster.max_shards_per_node to avoid int overflow. We can't reach 1_500_000 in the current opensearch struct.

Related Issues

Resolves #13907

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.

Copy link
Contributor

❌ Gradle check result for f73f384: 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
Contributor

❌ Gradle check result for 730b329: 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
Contributor

❌ Gradle check result for 3616d55: 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
Contributor

✅ Gradle check result for b49cd2e: SUCCESS

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 12, 2024

@dblock @shwetathareja please have another look.

@dblock
Copy link
Member

dblock commented Jun 12, 2024

@shwetathareja leaving this to you, LGTM

@dblock dblock added the >breaking Identifies a breaking change. label Jun 12, 2024
Copy link
Contributor

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

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 12, 2024

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

ReindexBasicTests.testMultipleSources #13913

Copy link
Member

@shwetathareja shwetathareja left a comment

Choose a reason for hiding this comment

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

Thanks @kkewwei , minor comment otherwise looks good.

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 17, 2024

@shwetathareja please see again.

Copy link
Contributor

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

@shwetathareja
Copy link
Member

@kkewwei please fix the conflict in ChangeLog.md

Copy link
Contributor

❌ Gradle check result for b2cf752: 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
Contributor

✅ Gradle check result for bda874c: SUCCESS

@shwetathareja shwetathareja merged commit 761e207 into opensearch-project:main Jun 20, 2024
31 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 20, 2024
Signed-off-by: kkewwei <[email protected]>
(cherry picked from commit 761e207)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock pushed a commit that referenced this pull request Jun 20, 2024
…#14474)

(cherry picked from commit 761e207)

Signed-off-by: kkewwei <[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>
@kkewwei kkewwei deleted the pr_13907 branch June 21, 2024 03:07
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Jul 12, 2024
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…rch-project#14155) (opensearch-project#14474)

(cherry picked from commit 761e207)

Signed-off-by: kkewwei <[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>
Signed-off-by: kkewwei <[email protected]>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch >breaking Identifies a breaking change. bug Something isn't working Cluster Manager
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[BUG] cluster.max_shards_per_node should have an upper limit
4 participants