Skip to content

[Transform] Wait while index is blocked - #119542

Merged
prwhelan merged 6 commits into
elastic:mainfrom
prwhelan:index-block
Jan 8, 2025
Merged

prwhelan merged 6 commits into
elastic:mainfrom
prwhelan:index-block

Conversation

@prwhelan

@prwhelan prwhelan commented Jan 3, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

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

@prwhelan

prwhelan commented Jan 3, 2025

Copy link
Copy Markdown
Member Author

@elasticmachine update branch

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

Copy link
Copy Markdown
Collaborator

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

@dan-rubinstein dan-rubinstein left a comment

Copy link
Copy Markdown
Member

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

prwhelan commented Jan 8, 2025

Copy link
Copy Markdown
Member Author

@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
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
Copy Markdown
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