Skip to content

Commit 9dd6296

Browse files
committed
[ML] Improve state persistence log message
1 parent be8c094 commit 9dd6296

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/output

1 file changed

+1
-1
lines changed

x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/output/StateProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ private BytesReference splitAndPersist(String jobId, BytesReference bytesRef, in
9191
}
9292

9393
void persist(String jobId, BytesReference bytes) throws IOException {
94-
logger.trace("[{}] ES API CALL: bulk index", jobId);
9594
BulkRequest bulkRequest = new BulkRequest();
9695
bulkRequest.add(bytes, AnomalyDetectorsIndex.jobStateIndexName(), ElasticsearchMappings.DOC_TYPE, XContentType.JSON);
9796
if (bulkRequest.numberOfActions() > 0) {
97+
logger.trace("[{}] Persisting job state document", jobId);
9898
try (ThreadContext.StoredContext ignore = stashWithOrigin(client.threadPool().getThreadContext(), ML_ORIGIN)) {
9999
client.bulk(bulkRequest).actionGet();
100100
}

0 commit comments

Comments
 (0)