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

Java high-level REST client bulk() is not respecting the bulkRequest.requireAlias(true) method call #14146

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

parv0201
Copy link
Contributor

Description

Java high-level REST client bulk() is not respecting the bulkRequest.requireAlias(true) method call

Related Issues

Resolves #12958

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 github-actions bot added bug Something isn't working Clients Clients within the Core repository such as High level Rest client and low level client good first issue Good for newcomers labels Jun 10, 2024
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Thanks. Since we're deprecating this stuff in favor of opensearch-java, and if you have time, check that requireAlias is properly implemented in https://github.com/opensearch-project/opensearch-api-specification and https://github.com/opensearch-project/opensearch-java pls.

Copy link
Contributor

✅ Gradle check result for 82110b0: SUCCESS

Copy link
Contributor

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

@dblock
Copy link
Member

dblock commented Jun 11, 2024

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

org.opensearch.action.admin.indices.create.RemoteSplitIndexIT.classMethod

#13828

@reta reta added v3.0.0 Issues and PRs related to version 3.0.0 backport 2.x Backport to 2.x branch v2.15.0 Issues and PRs related to version 2.15.0 labels Jun 11, 2024
Copy link
Contributor

✅ Gradle check result for 4828958: SUCCESS

@reta reta merged commit 40f11b3 into opensearch-project:main Jun 11, 2024
37 of 44 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-14146-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 40f11b3291f9f6ccf6ecfceb61ac1f5694f5867a
# Push it to GitHub
git push --set-upstream origin backport/backport-14146-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-14146-to-2.x.

@reta
Copy link
Collaborator

reta commented Jun 11, 2024

@parv0201 could you please send manual backport pull request towards 2.x branch? thank you

reta pushed a commit to reta/OpenSearch that referenced this pull request Jun 11, 2024
…requireAlias(true) method call (opensearch-project#14146)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag

Signed-off-by: Parv Kapadia <[email protected]>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <[email protected]>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <[email protected]>

---------

Signed-off-by: Parv Kapadia <[email protected]>
(cherry picked from commit 40f11b3)
@reta
Copy link
Collaborator

reta commented Jun 11, 2024

#14184

reta pushed a commit to reta/OpenSearch that referenced this pull request Jun 11, 2024
…requireAlias(true) method call (opensearch-project#14146)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag

Signed-off-by: Parv Kapadia <[email protected]>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <[email protected]>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <[email protected]>

---------

Signed-off-by: Parv Kapadia <[email protected]>
(cherry picked from commit 40f11b3)
Signed-off-by: Andriy Redko <[email protected]>
@reta reta mentioned this pull request Jun 11, 2024
3 tasks
reta pushed a commit to reta/OpenSearch that referenced this pull request Jun 11, 2024
…requireAlias(true) method call (opensearch-project#14146)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag

Signed-off-by: Parv Kapadia <[email protected]>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <[email protected]>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <[email protected]>

---------

Signed-off-by: Parv Kapadia <[email protected]>
(cherry picked from commit 40f11b3)
Signed-off-by: Andriy Redko <[email protected]>
reta added a commit that referenced this pull request Jun 11, 2024
…requireAlias(true) method call (#14146) (#14184)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag



* Issue 12958 | Updated changelog



* Updated changelog with correct PR number



---------


(cherry picked from commit 40f11b3)

Signed-off-by: Parv Kapadia <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Co-authored-by: parv0201 <[email protected]>
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…requireAlias(true) method call (opensearch-project#14146) (opensearch-project#14184)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag

* Issue 12958 | Updated changelog

* Updated changelog with correct PR number

---------

(cherry picked from commit 40f11b3)

Signed-off-by: Parv Kapadia <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Co-authored-by: parv0201 <[email protected]>
Signed-off-by: kkewwei <[email protected]>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
…requireAlias(true) method call (opensearch-project#14146)

* Issue 12958 | Updated bulk api for Rest HighLevel Client for respecting requireAlias flag

Signed-off-by: Parv Kapadia <[email protected]>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <[email protected]>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <[email protected]>

---------

Signed-off-by: Parv Kapadia <[email protected]>
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 backport-failed bug Something isn't working Clients Clients within the Core repository such as High level Rest client and low level client good first issue Good for newcomers v2.15.0 Issues and PRs related to version 2.15.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Java high-level REST client bulk() is not respecting the bulkRequest.requireAlias(true) method call
3 participants