File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
server/src/test/java/org/elasticsearch/common/time
x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,9 @@ public void testEqualsAndHashcode() {
175175 assertThat (DateFormatters .forPattern ("YYYY" ).withZone (ZoneId .of ("CET" )), not (equalTo (DateFormatters .forPattern ("YYYY" ))));
176176
177177 // different locale, thus not equals
178- assertThat (DateFormatters .forPattern ("YYYY" ).withLocale (randomLocale (random ())),
179- not (equalTo (DateFormatters .forPattern ("YYYY" ))));
178+ DateFormatter f1 = DateFormatters .forPattern ("YYYY" ).withLocale (Locale .CANADA );
179+ DateFormatter f2 = f1 .withLocale (Locale .FRENCH );
180+ assertThat (f1 , not (equalTo (f2 )));
180181
181182 // different pattern, thus not equals
182183 assertThat (DateFormatters .forPattern ("YYYY" ), not (equalTo (DateFormatters .forPattern ("YY" ))));
Original file line number Diff line number Diff line change 2626import org .elasticsearch .index .shard .ShardNotFoundException ;
2727import org .elasticsearch .index .translog .Translog ;
2828import org .elasticsearch .indices .IndexClosedException ;
29+ import org .elasticsearch .node .NodeClosedException ;
2930import org .elasticsearch .persistent .AllocatedPersistentTask ;
3031import org .elasticsearch .tasks .TaskId ;
3132import org .elasticsearch .transport .NodeDisconnectedException ;
@@ -416,6 +417,7 @@ static boolean shouldRetry(Exception e) {
416417 actual instanceof IndexClosedException || // If follow index is closed
417418 actual instanceof NodeDisconnectedException ||
418419 actual instanceof NodeNotConnectedException ||
420+ actual instanceof NodeClosedException ||
419421 (actual .getMessage () != null && actual .getMessage ().contains ("TransportService is closed" ));
420422 }
421423
You can’t perform that action at this time.
0 commit comments