File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/org/elasticsearch/action/index
test/java/org/elasticsearch/action/index Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ public ActionRequestValidationException validate() {
198198 validationException = DocWriteRequest .validateSeqNoBasedCASParams (this , validationException );
199199
200200 if (id != null && id .getBytes (StandardCharsets .UTF_8 ).length > 512 ) {
201- validationException = addValidationError ("id is too long, must be no longer than 512 bytes but was: " +
201+ validationException = addValidationError ("id [" + id + "] is too long, must be no longer than 512 bytes but was: " +
202202 id .getBytes (StandardCharsets .UTF_8 ).length , validationException );
203203 }
204204
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public void testIndexingRejectsLongIds() {
102102 validate = request .validate ();
103103 assertThat (validate , notNullValue ());
104104 assertThat (validate .getMessage (),
105- containsString ("id is too long, must be no longer than 512 bytes but was: 513" ));
105+ containsString ("id [" + id + "] is too long, must be no longer than 512 bytes but was: 513" ));
106106 }
107107
108108 public void testWaitForActiveShards () {
You can’t perform that action at this time.
0 commit comments