Skip to content

Fix transport serialization of EnrichStatsAction.Request#121735

Merged
nielsbauman merged 4 commits intoelastic:mainfrom
nielsbauman:fix-enrich-stats
Feb 6, 2025
Merged

Fix transport serialization of EnrichStatsAction.Request#121735
nielsbauman merged 4 commits intoelastic:mainfrom
nielsbauman:fix-enrich-stats

Conversation

@nielsbauman
Copy link
Copy Markdown
Contributor

@nielsbauman nielsbauman commented Feb 5, 2025

In #121256, we changed the superclass of the request to LocalClusterStateRequest to make the action run on the local node instead of the master node. Most of the actions that have been updated thusfar to run on the local node used to extend MasterNodeReadRequest and thus serialized a local field. This request class, however, extended MasterNodeRequest, meaning that it didn't serialize that field.

Fixes #121642

In elastic#121256, we changed the superclass of the request to
`LocalClusterStateRequest` to make the action run on the local node
instead of the master node. Most of the actions that have been updated
thusfar to run on the local node used to extend `MasterNodeReadRequest`
and thus serialized a `local` field. This request class, however,
extended `MasterNodeRequest`, meaning that it didn't serialize that
field.
@nielsbauman nielsbauman added >non-issue :Distributed/Ingest Node Execution or management of Ingest Pipelines Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v9.1.0 labels Feb 5, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@nielsbauman
Copy link
Copy Markdown
Contributor Author

I'm having trouble running the failing test to prove that my changes actually fixed the issue. While I try to get the test to run locally, this PR can already be reviewed.

Also, putting >non-issue instead of >bug because the bug hasn't been released yet (yay 🎉).

@nielsbauman nielsbauman requested a review from dakrone February 5, 2025 06:50
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, I left one question about the javadoc

@nielsbauman nielsbauman enabled auto-merge (squash) February 6, 2025 00:10
@nielsbauman nielsbauman merged commit fa3d548 into elastic:main Feb 6, 2025
@nielsbauman nielsbauman deleted the fix-enrich-stats branch February 6, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines >non-issue Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] UpgradeClusterClientYamlTestSuiteIT test {p0=mixed_cluster/110_enrich/Enrich stats query smoke test for mixed cluster} failing

3 participants