Skip to content

Conversation

@msfroh
Copy link
Contributor

@msfroh msfroh commented Mar 25, 2025

Description

This is consistent with TransportIndexAction and TransportDeleteAction, and ensures that updates behave consistently, whether sent via the _update API or via the _bulk API.

Related Issues

Resolves #16980

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 >breaking Identifies a breaking change. enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing v3.0.0 Issues and PRs related to version 3.0.0 labels Mar 25, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for a432e47: 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
Contributor

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

private final NodeClient client;
private final ClusterService clusterService;
@Deprecated
public class TransportUpdateAction extends HandledTransportAction<UpdateRequest, UpdateResponse> {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, the @Deprecated annotation was copied from TransportIndexAction and TransportDeleteAction.

In practice, I don't think I actually want to remove it. I should probably remove the annotation. (We should probably remove the annotations from TransportIndexAction and TransportDeleteAction since I don't think they're ever going to be removed either.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There -- I removed this annotation and the ones on TransportIndexAction, TransportDeleteAction, and TransportSingleItemBulkAction.

@github-actions
Copy link
Contributor

❌ Gradle check result for 22a2df3: 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
Contributor

❌ Gradle check result for c943a65:

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
Contributor

❌ Gradle check result for c943a65:

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
Contributor

❌ Gradle check result for c943a65: 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
Contributor

❌ Gradle check result for ffda134: 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
Contributor

❌ Gradle check result for b179c0f: 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
Contributor

github-actions bot commented Apr 4, 2025

❌ Gradle check result for 07f54e6:

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?

@msfroh
Copy link
Contributor Author

msfroh commented Apr 4, 2025

There are 26 BWC and IT test failures logged in https://build.ci.opensearch.org/job/gradle-check/55554/#showFailuresLink.

Requests originating from 2.x clusters expect to find a shard-level update action.

I'll see if I can bring back the shard-level action for BWC, but mark it as deprecated to be removed in 4.0.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

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

msfroh added 7 commits April 4, 2025 15:45
This is consistent with TransportIndexAction and TransportDeleteAction,
and ensures that updates behave consistently, whether sent via the
`_update` API or via the `_bulk` API.

Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: Michael Froh <[email protected]>
Since this change modifies how updates behave with ingest pipelines,
the tests need to be updated to reflect the new behavior (where single
item updates behave the same as bulk updates).

Signed-off-by: Michael Froh <[email protected]>
… and children

In practice, these adapter classes are unlikely to be removed, unless we
drop support (at the API level) for the single-item operations. Since
the single item operations are likely to stick around, we have no plan
to remove these adapter classes.

Signed-off-by: Michael Froh <[email protected]>
Signed-off-by: Michael Froh <[email protected]>
Now that it's not the parent of TransportUpdateAction, it's unused.

Signed-off-by: Michael Froh <[email protected]>
In a mixed-cluster environment, nodes running on 2.x will still try to
dispatch the node-level update action to 3.x shards. We can't remove
the node-level action (in favor of TransportShardBulkAction) until 4.0.

Signed-off-by: Michael Froh <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

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

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking Identifies a breaking change. enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing stalled Issues that have stalled 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.

[Cleanup] TransportUpdateAction should extend TransportSingleItemBulkWriteAction

4 participants