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 {
169
169
maxBatchSize .writeTo (out );
170
170
}
171
171
172
+ @ Override
173
+ public String getDescription () {
174
+ return "shardId[" + shardId + "]" ;
175
+ }
176
+
172
177
@ Override
173
178
public boolean equals (final Object o ) {
174
179
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) {
267
267
assertThat (reference .get (), instanceOf (ShardNotFoundException .class ));
268
268
}
269
269
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
+ }
270
278
}
You can’t perform that action at this time.
0 commit comments