-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove TransportDownsampleIndexerAction
#122756
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
Remove TransportDownsampleIndexerAction
#122756
Conversation
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
martijnvg
left a comment
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.
LGTM!
|
Does this need to be backported to 9.0? |
I don't think it has to be back ported. Maybe we should do this for consistency? |
|
Yes, i meant just for consistency. |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit 7f7967b) # Conflicts: # x-pack/plugin/downsample/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleIndexerAction.java
In PR #97557, we adopted the persistent task framework to execute downsampling tasks. Previously, these tasks were executed as regular, non-persistent tasks. In both cases, the master node was responsible for orchestrating and coordinating task execution. However, starting with version 8.10, the orchestration mechanism changed as part of the transition to the persistent task framework.
With the introduction of persistent tasks,
TransportDownsampleActionnow usesPersistentTasksServiceto request the execution of a persistent downsampling task. Instead of assigning the task directly to the node hosting the primary shard and going throughTransportDownsampleIndexerAction, the request is now handled byDownsampleShardPersistentTaskExecutor, which takes full ownership of task execution and lifecycle management.For backward compatibility, we initially retained
TransportDownsampleIndexerAction. Depending on the master node's version, one of two orchestration mechanisms was selected:Now that newer versions of Elasticsearch no longer need to maintain backward compatibility with 8.10, we can safely remove the class responsible for the old, non-persistent downsampling task execution.