Skip to content

Commit

Permalink
[Transform] Add test logging regarding conflict on start (#63383)
Browse files Browse the repository at this point in the history
add extra logging for investigation of #63365
  • Loading branch information
Hendrik Muhs committed Oct 7, 2020
1 parent eadd69e commit d45f7de
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"Failed to start transform [{}], remaining retries [{}], error: [{}], status: [{}]",
id,
retries,
e.getDetailedMessage(),
e.status()
);

if (RestStatus.CONFLICT.equals(e.status()) == false) {
throw e;
}
Expand Down

0 comments on commit d45f7de

Please sign in to comment.