slightly improved logging.
Original commit: elastic/x-pack-elasticsearch@7a131bc4d8
This commit is contained in:
parent
df7fc714e7
commit
9f014a9bf9
|
@ -158,7 +158,7 @@ public class AlertsStore extends AbstractComponent {
|
|||
try {
|
||||
loadAlerts();
|
||||
} catch (Exception e) {
|
||||
logger.warn("Failed to load alerts", e);
|
||||
logger.warn("Failed to load previously stored alerts. Schedule to retry alert loading...", e);
|
||||
alertMap.clear();
|
||||
return false;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ public class AlertsStore extends AbstractComponent {
|
|||
started.set(true);
|
||||
return true;
|
||||
} else {
|
||||
logger.info("Not all primary shards of the .alerts index are started");
|
||||
logger.warn("Not all primary shards of the .alerts index are started. Schedule to retry alert loading...");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -119,7 +119,7 @@ public class AlertActionManager extends AbstractComponent {
|
|||
IndexMetaData indexMetaData = state.getMetaData().index(index);
|
||||
if (indexMetaData != null) {
|
||||
if (!state.routingTable().index(index).allPrimaryShardsActive()) {
|
||||
logger.info("Not all primary shards of the [{}] index are started", index);
|
||||
logger.warn("Not all primary shards of the [{}] index are started. Schedule to retry alert action loading..", index);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ public class AlertActionManager extends AbstractComponent {
|
|||
try {
|
||||
loadQueue();
|
||||
} catch (Exception e) {
|
||||
logger.error("Unable to load unfinished jobs into the job queue", e);
|
||||
logger.warn("Failed to load unfinished alert actions. Schedule to retry alert action loading...", e);
|
||||
actionsToBeProcessed.clear();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue