Skip to content

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

Merged
reta merged 3 commits intoopensearch-project:mainfrom
parv0201:issue_12958
Jun 11, 2024
Merged

Java high-level REST client bulk() is not respecting the bulkRequest.requireAlias(true) method call#14146
reta merged 3 commits intoopensearch-project:mainfrom
parv0201:issue_12958

Conversation

@parv0201
Copy link
Copy Markdown
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.

parv0201 added 2 commits June 10, 2024 18:49
…ng requireAlias flag

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
@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
Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
Copy link
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 82110b0: SUCCESS

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

✅ Gradle check result for 4828958: SUCCESS

@reta reta merged commit 40f11b3 into opensearch-project:main Jun 11, 2024
@opensearch-trigger-bot
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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 <parvkapadia@gmail.com>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

---------

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
(cherry picked from commit 40f11b3)
@reta
Copy link
Copy Markdown
Contributor

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 <parvkapadia@gmail.com>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

---------

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
(cherry picked from commit 40f11b3)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@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 <parvkapadia@gmail.com>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

---------

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
(cherry picked from commit 40f11b3)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
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 <parvkapadia@gmail.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: parv0201 <parvkapadia@gmail.com>
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 <parvkapadia@gmail.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: parv0201 <parvkapadia@gmail.com>
Signed-off-by: kkewwei <kkewwei@163.com>
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 <parvkapadia@gmail.com>

* Issue 12958 | Updated changelog

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

* Updated changelog with correct PR number

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>

---------

Signed-off-by: Parv Kapadia <parvkapadia@gmail.com>
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