-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Enforce 512 byte document ID limit in bulk updates #8039
Conversation
Signed-off-by: Ankit Kala <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #8039 +/- ##
============================================
- Coverage 71.00% 70.80% -0.21%
+ Complexity 56672 56546 -126
============================================
Files 4722 4722
Lines 267576 267580 +4
Branches 39213 39213
============================================
- Hits 189995 189455 -540
- Misses 61593 62144 +551
+ Partials 15988 15981 -7
|
Gradle Check (Jenkins) Run Completed with:
|
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.
@dblock @reta We need to make a call here as to the backward compatibility concern. This is (IMO) clearly a bug, but it is a breaking change and will break any workloads that knowingly or not rely on being able to use large IDs in update requests. I'm inclined to backport it because it is a bug and any workloads that break should be aware of their reliance on something that was never intended to be supported.
server/src/main/java/org/opensearch/action/DocWriteRequest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/DocWriteRequest.java
Outdated
Show resolved
Hide resolved
@andrross I tend to agree with you here, it seems like there is an implicit limit (which now becomes explicit), so backporting it would make sense. Also, would be great to update documentation (https://github.com/opensearch-project/documentation-website/) |
server/src/main/java/org/opensearch/action/DocWriteRequest.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/action/bulk/BulkIntegrationIT.java
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/action/bulk/BulkIntegrationIT.java
Show resolved
Hide resolved
Signed-off-by: Ankit Kala <[email protected]>
I'll open an issue to update the documentation after the PR has been merged. |
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/action/DocWriteRequest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ankit Kala <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Andrew Ross <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
I merged in the latest from main, which should fix the test failures. This is ready to go assuming the check passes. |
Gradle Check (Jenkins) Run Completed with:
|
* Enforce doc id limit on UpdateRequests as well Signed-off-by: Ankit Kala <[email protected]> * PR comments Signed-off-by: Ankit Kala <[email protected]> * Address comments 2 Signed-off-by: Ankit Kala <[email protected]> * Move changelog entry Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit 60afeb7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Enforce doc id limit on UpdateRequests as well * PR comments * Address comments 2 * Move changelog entry --------- (cherry picked from commit 60afeb7) Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Andrew Ross <[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> Co-authored-by: Andrew Ross <[email protected]>
…t#8039) (opensearch-project#8081) * Enforce doc id limit on UpdateRequests as well * PR comments * Address comments 2 * Move changelog entry --------- (cherry picked from commit 60afeb7) Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Andrew Ross <[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> Co-authored-by: Andrew Ross <[email protected]>
…t#8039) * Enforce doc id limit on UpdateRequests as well Signed-off-by: Ankit Kala <[email protected]> * PR comments Signed-off-by: Ankit Kala <[email protected]> * Address comments 2 Signed-off-by: Ankit Kala <[email protected]> * Move changelog entry Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Rishab Nahata <[email protected]>
…t#8039) * Enforce doc id limit on UpdateRequests as well Signed-off-by: Ankit Kala <[email protected]> * PR comments Signed-off-by: Ankit Kala <[email protected]> * Address comments 2 Signed-off-by: Ankit Kala <[email protected]> * Move changelog entry Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Enforce 512 byte document ID limit in bulk updates
Related Issues
Resolves #6595
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.