File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
main/java/org/elasticsearch/xpack/ccr/action
test/java/org/elasticsearch/xpack/ccr/action Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,11 @@ public void writeTo(StreamOutput out) throws IOException {
169169 maxBatchSize .writeTo (out );
170170 }
171171
172+ @ Override
173+ public String getDescription () {
174+ return "shardId[" + shardId + "]" ;
175+ }
176+
172177 @ Override
173178 public boolean equals (final Object o ) {
174179 if (this == o ) return true ;
Original file line number Diff line number Diff line change @@ -267,4 +267,12 @@ public void onFailure(final Exception e) {
267267 assertThat (reference .get (), instanceOf (ShardNotFoundException .class ));
268268 }
269269
270+ public void testShardChangesActionRequestHasDescription () {
271+ var index = new Index ("index" , "uuid" );
272+ var shardId = new ShardId (index , 0 );
273+
274+ var description = new ShardChangesAction .Request (shardId , "uuid" ).getDescription ();
275+
276+ assertThat (description , equalTo ("shardId[[index][0]]" ));
277+ }
270278}
You can’t perform that action at this time.
0 commit comments