File tree 2 files changed +2
-2
lines changed
main/java/org/elasticsearch/action/index
test/java/org/elasticsearch/action/index
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ public ActionRequestValidationException validate() {
242
242
validationException = DocWriteRequest .validateSeqNoBasedCASParams (this , validationException );
243
243
244
244
if (id != null && id .getBytes (StandardCharsets .UTF_8 ).length > 512 ) {
245
- validationException = addValidationError ("id is too long, must be no longer than 512 bytes but was: " +
245
+ validationException = addValidationError ("id [" + id + "] is too long, must be no longer than 512 bytes but was: " +
246
246
id .getBytes (StandardCharsets .UTF_8 ).length , validationException );
247
247
}
248
248
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public void testIndexingRejectsLongIds() {
102
102
validate = request .validate ();
103
103
assertThat (validate , notNullValue ());
104
104
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" ));
106
106
}
107
107
108
108
public void testWaitForActiveShards () {
You can’t perform that action at this time.
0 commit comments