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] Forward indexServiceSafe exceptions to listener #108517

Merged
merged 2 commits into from May 13, 2024

Conversation

prwhelan
Copy link
Member

@prwhelan prwhelan commented May 10, 2024

IndexService.indexServiceSafe can throw an IndexNotFoundException while getting the Global Checkpoints.
In theory, any exception in TransportGetCheckpointNodeAction should be forwarded to the listener.

Fix #108418

IndexService.indexServiceSafe can throw an IndexNotFoundException while
getting the Global Checkpoints. TransportGetCheckpointNodeAction will
now forward that exception to the listener.

Fix elastic#108418
@prwhelan prwhelan added >bug :ml/Transform Transform Team:ML Meta label for the ML team v8.15.0 labels May 10, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@prwhelan prwhelan marked this pull request as ready for review May 10, 2024 18:21
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

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

LGTM

});
checkpointsByIndexOfThisNode.get(shardId.getIndexName())[shardId.getId()] = indexShard.seqNoStats().getGlobalCheckpoint();
++numProcessedShards;
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The PR description says that the IndexNotFoundException is forwarded but in fact every exception is forwarded here.
I think the code is ok, just please update PR description.

@prwhelan prwhelan changed the title [Transform] Forward indexServiceSafe exception to listener [Transform] Forward indexServiceSafe exceptions to listener May 13, 2024
@prwhelan prwhelan merged commit 6ecff09 into elastic:main May 13, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml/Transform Transform Team:ML Meta label for the ML team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Transforms] IndexNotFoundException in GetCheckpoint
3 participants