You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove IndexTemplateAlreadyExistsException and IndexShardAlreadyExistsException (#21539)
Both exception can be replaced with java built-in exception, IAE and ISE respectively.
This should be back ported partially to 5.x which the transport layer code should be preserved.
Relates to #21494
Copy file name to clipboardExpand all lines: core/src/main/java/org/elasticsearch/action/admin/indices/template/put/PutIndexTemplateRequestBuilder.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ public PutIndexTemplateRequestBuilder setVersion(Integer version) {
76
76
77
77
/**
78
78
* Set to <tt>true</tt> to force only creation, not an update of an index template. If it already
79
-
* exists, it will fail with an {@link org.elasticsearch.indices.IndexTemplateAlreadyExistsException}.
79
+
* exists, it will fail with an {@link IllegalArgumentException}.
0 commit comments