added sleep to solve problem of lost request of creating index

This commit is contained in:
Sandro La Bruzzo 2021-07-30 08:54:25 +02:00
parent 7b172e7cd9
commit 6358f92c3a
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ public class DropAndCreateESIndex {
log.info(STATUS_CODE_TEXT, response.getStatusLine()); log.info(STATUS_CODE_TEXT, response.getStatusLine());
} }
log.info("Sleeping 60 seconds to avoid to lost the creation of index request");
Thread.sleep(60000);
try (CloseableHttpClient client = HttpClients.createDefault()) { try (CloseableHttpClient client = HttpClients.createDefault()) {
final String summaryConf = IOUtils final String summaryConf = IOUtils