mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-06 19:09:14 +00:00
This adjusts the logging level for setting forecasts to failed to WARN. And it will only log if 1 or more forecasts were adjusted to failed.
This commit is contained in:
parent
afbf3bd33b
commit
61142a3005
@ -1356,7 +1356,9 @@ public class JobResultsProvider {
|
|||||||
|
|
||||||
executeAsyncWithOrigin(client, ML_ORIGIN, UpdateByQueryAction.INSTANCE, request, ActionListener.wrap(
|
executeAsyncWithOrigin(client, ML_ORIGIN, UpdateByQueryAction.INSTANCE, request, ActionListener.wrap(
|
||||||
response -> {
|
response -> {
|
||||||
LOGGER.info("[{}] set [{}] forecasts to failed", jobId, response.getUpdated());
|
if (response.getUpdated() > 0) {
|
||||||
|
LOGGER.warn("[{}] set [{}] forecasts to failed", jobId, response.getUpdated());
|
||||||
|
}
|
||||||
if (response.getBulkFailures().size() > 0) {
|
if (response.getBulkFailures().size() > 0) {
|
||||||
LOGGER.warn(
|
LOGGER.warn(
|
||||||
"[{}] failed to set [{}] forecasts to failed. Bulk failures experienced {}",
|
"[{}] failed to set [{}] forecasts to failed. Bulk failures experienced {}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user