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

[Transform] Wait while index is blocked #119542

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Conversation

prwhelan
Copy link
Member

@prwhelan prwhelan commented Jan 3, 2025

When the destination index is blocked, the bulk request is ignored. Each subsequent checkpoint will check the cluster state if the index is unblocked or else drop the checkpoint.

Users can call the ScheduleNow API to skip the index block check and let the Transform start the next checkpoint - if the index is blocked then the bulk request will fail again.

While the Transform is paused, the state will display as waiting from the Get Stats API and on the Transform UI in Kibana.

When the destination index is blocked, the bulk request is ignored.
Each subsequent trigger will check the cluster state if the index is
unblocked or else drop the trigger.

Users can call the ScheduleNow API to skip the index block check and let
the trigger start the next checkpoint - if the index is blocked then the
bulk request will fail again.

While the Transform is skipping triggers, the state will display as
`waiting` from the Get Stats API and on the Transform UI in Kibana.
@elasticsearchmachine
Copy link
Collaborator

Hi @prwhelan, I've created a changelog YAML for you.

@prwhelan
Copy link
Member Author

prwhelan commented Jan 3, 2025

@elasticmachine update branch

@prwhelan prwhelan marked this pull request as ready for review January 7, 2025 16:19
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link
Member

@dan-rubinstein dan-rubinstein left a comment

Choose a reason for hiding this comment

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

LGTM

@prwhelan prwhelan added the auto-backport Automatically create backport pull requests when merged label Jan 8, 2025
@prwhelan
Copy link
Member Author

prwhelan commented Jan 8, 2025

@elasticmachine update branch

@prwhelan prwhelan enabled auto-merge (squash) January 8, 2025 21:25
@prwhelan prwhelan merged commit b367f70 into elastic:main Jan 8, 2025
16 checks passed
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Jan 8, 2025
When the destination index is blocked, the bulk request is ignored.
Each subsequent trigger will check the cluster state if the index is
unblocked or else drop the trigger.

Users can call the ScheduleNow API to skip the index block check and let
the trigger start the next checkpoint - if the index is blocked then the
bulk request will fail again.

While the Transform is skipping triggers, the state will display as
`waiting` from the Get Stats API and on the Transform UI in Kibana.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

elasticsearchmachine pushed a commit that referenced this pull request Jan 8, 2025
When the destination index is blocked, the bulk request is ignored.
Each subsequent trigger will check the cluster state if the index is
unblocked or else drop the trigger.

Users can call the ScheduleNow API to skip the index block check and let
the trigger start the next checkpoint - if the index is blocked then the
bulk request will fail again.

While the Transform is skipping triggers, the state will display as
`waiting` from the Get Stats API and on the Transform UI in Kibana.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >enhancement :ml/Transform Transform Team:ML Meta label for the ML team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants