logger.debug("found bucket UUID in cache");
return bucketUUID;
}
logger.debug("bucket UUID not in cache, looking up");
IndicesExistsRequestBuilder existsBuilder = client.admin().indices().prepareExists(bucket);
IndicesExistsResponse response = existsBuilder.execute().actionGet();
if(response.isExists()) {
int tries = 0;
bucketUUID = this.lookupUUID(bucket, "bucketUUID");
while(bucketUUID == null && tries < 100) {
logger.debug("bucket UUID doesn't exist yet, creaating, attempt: {}", tries+1);