-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Adding number of routing shards to index settings before passing into… #14446
Conversation
❌ Gradle check result for 950f0ad: 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 82a9f3c: 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 ede87d5: 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 fa27c83: 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 42f9754: 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 dcfe9d7: 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 6e32fb5: 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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you intent to backport to 2.x, if yes please handle BWC
❌ Gradle check result for 013105b: 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 1b12a69: 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 240d42d: 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 1f865f4: 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? |
@gaobinlong Mentioning you here since I closed the previous PR in favor on this approach. Sorry this is my first contribution so I'm having a bit a trouble tracking down failed tests. I see that |
❌ Gradle check result for d63ffbd: 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 3cc3aac: 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? |
Sorry, new to contributing here! How would I handle the backwards compatibility for this? @Bukhtawar |
❌ Gradle check result for 8029d7d: 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 3a85274: 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 54d4952: 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 24a4ecb: 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? |
I have a concern that we always return the setting |
Thanks @gaobinlong , I think this is very valid concern. This settings is only useful during the Resize API calls (and could be created temporarily for the index in question), it is not a regular index setting per se. |
It sounds like a better idea to only return the setting when explicitly set by the user. I think we can make this distinction by pushing the setting into the Side Note: while looking into the issue, I found that INDEX_NUMBER_OF_ROUTING_SHARDS_SETTING is only IndexScope settings while it should also be a Final settings as well because routing number of shards is also used during routing of docs in OperationRouting, it should not change after index creation OpenSearch/server/src/main/java/org/opensearch/cluster/routing/OperationRouting.java Line 475 in 4c25257
IndexScope settings can be updated when index is |
Hello! If I understand what you're saying correctly, I think what you're suggesting is similar to the approach that I initially implemented . I think the issue is that there seems to be a deliberate removal of the |
This PR is stalled because it has been open for 30 days with no activity. |
@gaobinlong, it looks like this PR was closed due to @PeacefulTortoise deleting their GitHub account. How close was this to being merged, and can someone from the AWS side pick this up if it's near resolved? |
This PR is not close to be merged, I'll take a look later. |
… GetSettingsResponse
Description
Adds
number_of_routing_shards
into indexSettings before passing intoGetSettingsResponse
. Alternative solution to PR-4443.Related Issues
Resolves #14199
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.