[7.x][ML] Remove redundant logging for creation of annotations index (#61461) (#61475)

This commit removes the log info message "Created ML annotations index and aliases".

The message comes in addition to elasticsearch's index creation logging and it does
not add to it. In addition, since #61107 that message may be logged multiple times.

Backport of #61461
This commit is contained in:
Dimitris Athanasiou 2020-08-24 17:46:29 +03:00 committed by GitHub
parent 52b12a07c4
commit 18ca8a6be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -96,12 +96,7 @@ class MlInitializationService implements ClusterStateListener {
// index if there is a flurry of cluster state updates in quick succession // index if there is a flurry of cluster state updates in quick succession
if (this.isMaster && isIndexCreationInProgress.compareAndSet(false, true)) { if (this.isMaster && isIndexCreationInProgress.compareAndSet(false, true)) {
AnnotationIndex.createAnnotationsIndexIfNecessary(client, event.state(), ActionListener.wrap( AnnotationIndex.createAnnotationsIndexIfNecessary(client, event.state(), ActionListener.wrap(
r -> { r -> isIndexCreationInProgress.set(false),
isIndexCreationInProgress.set(false);
if (r) {
logger.info("Created ML annotations index and aliases");
}
},
e -> { e -> {
isIndexCreationInProgress.set(false); isIndexCreationInProgress.set(false);
logger.error("Error creating ML annotations index or aliases", e); logger.error("Error creating ML annotations index or aliases", e);