-
Notifications
You must be signed in to change notification settings - Fork 25k
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] Add test logging regarding conflict on start #63383
Conversation
Pinging @elastic/ml-core (:ml/Transform) |
@@ -149,6 +149,14 @@ protected StartTransformResponse startTransformWithRetryOnConflict(String id, Re | |||
try (RestHighLevelClient restClient = new TestRestHighLevelClient()) { | |||
return restClient.transform().startTransform(new StartTransformRequest(id), options); | |||
} catch (ElasticsearchStatusException e) { | |||
logger.warn( |
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.
Should we log the whole exception's stack trace by supplying e
as an argument to warn
?
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.
I decided against that because toString()
lacks important information, e.g. it misses the status code and other details.
Note that after 10 retries, we get a stack trace.
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.
Ok, got it.
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
@@ -149,6 +149,14 @@ protected StartTransformResponse startTransformWithRetryOnConflict(String id, Re | |||
try (RestHighLevelClient restClient = new TestRestHighLevelClient()) { | |||
return restClient.transform().startTransform(new StartTransformRequest(id), options); | |||
} catch (ElasticsearchStatusException e) { | |||
logger.warn( |
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.
Ok, got it.
add extra logging for investigation of #63365
add extra logging for investigation of #63365