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() {
198
198
validationException = DocWriteRequest .validateSeqNoBasedCASParams (this , validationException );
199
199
200
200
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: " +
202
202
id .getBytes (StandardCharsets .UTF_8 ).length , validationException );
203
203
}
204
204
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