diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/ml/notifications/Auditor.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/ml/notifications/Auditor.java index 6301e990fe4..00ea92ffa80 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/ml/notifications/Auditor.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/ml/notifications/Auditor.java @@ -10,6 +10,7 @@ import org.apache.logging.log4j.message.ParameterizedMessage; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.index.IndexResponse; import org.elasticsearch.client.Client; +import org.elasticsearch.common.UUIDs; import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; @@ -50,7 +51,8 @@ public class Auditor { } private void indexDoc(String type, ToXContent toXContent) { - client.prepareIndex(NOTIFICATIONS_INDEX, type) + // TODO: (norelease): Fix the assertion tripping in internal engine for index requests without an id being retried: + client.prepareIndex(NOTIFICATIONS_INDEX, type, UUIDs.base64UUID()) .setSource(toXContentBuilder(toXContent)) .execute(new ActionListener() { @Override