[Transform] Add test logging regarding conflict on start (#63383)

add extra logging for investigation of #63365
This commit is contained in:
Hendrik Muhs 2020-10-07 10:16:25 +02:00
parent eadd69e1e4
commit d45f7de3fb
1 changed files with 8 additions and 0 deletions

View File

@ -149,6 +149,14 @@ abstract class TransformIntegTestCase extends ESRestTestCase {
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;
}