Skip to content

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

Merged
shwetathareja merged 2 commits into
opensearch-project:mainfrom
kkewwei:pr_13907
Jun 20, 2024
Merged

limit the max value of cluster.max_shards_per_node to avoid int overflow #14155
shwetathareja merged 2 commits into
opensearch-project:mainfrom
kkewwei:pr_13907

Conversation

@kkewwei
Copy link
Copy Markdown
Contributor

@kkewwei kkewwei commented Jun 11, 2024

Signed-off-by: kkewwei kkewwei@163.com

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.

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
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?

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for b49cd2e: SUCCESS

@github-actions
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

kkewwei commented Jun 17, 2024

@shwetathareja please see again.

@github-actions
Copy link
Copy Markdown
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
Copy Markdown
Member

@kkewwei please fix the conflict in ChangeLog.md

@github-actions
Copy link
Copy Markdown
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?

Signed-off-by: kkewwei <kkewwei@163.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for bda874c: SUCCESS

@shwetathareja shwetathareja merged commit 761e207 into opensearch-project:main Jun 20, 2024
opensearch-trigger-bot Bot pushed a commit that referenced this pull request Jun 20, 2024
Signed-off-by: kkewwei <kkewwei@163.com>
(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 <kkewwei@163.com>
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 <kkewwei@163.com>
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 <kkewwei@163.com>
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