Skip to content

Commit

Permalink
[7.9][ML] Remove redundant logging for creation of annotations index (#…
Browse files Browse the repository at this point in the history
…61461) (#61476)

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
  • Loading branch information
dimitris-athanasiou committed Aug 24, 2020
1 parent 6bb81f7 commit 3f9db8c
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ public void clusterChanged(ClusterChangedEvent event) {
// index if there is a flurry of cluster state updates in quick succession
if (event.localNodeMaster() && isIndexCreationInProgress.compareAndSet(false, true)) {
AnnotationIndex.createAnnotationsIndexIfNecessary(client, event.state(), ActionListener.wrap(
r -> {
isIndexCreationInProgress.set(false);
if (r) {
logger.info("Created ML annotations index and aliases");
}
},
r -> isIndexCreationInProgress.set(false),
e -> {
isIndexCreationInProgress.set(false);
logger.error("Error creating ML annotations index or aliases", e);
Expand Down

0 comments on commit 3f9db8c

Please sign in to comment.