mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
ESIndexLevelReplicationTestCase.java fix line lengths
This commit is contained in:
parent
14cd8a6794
commit
61b7f49ed2
@ -132,7 +132,8 @@ public class ESIndexLevelReplicationTestCase extends ESTestCase {
|
|||||||
IndexShard replica = shards.addReplica();
|
IndexShard replica = shards.addReplica();
|
||||||
final CountDownLatch recoveryBlocked = new CountDownLatch(1);
|
final CountDownLatch recoveryBlocked = new CountDownLatch(1);
|
||||||
final CountDownLatch releaseRecovery = new CountDownLatch(1);
|
final CountDownLatch releaseRecovery = new CountDownLatch(1);
|
||||||
final Future<Void> recoveryFuture = shards.asyncRecoverReplica(replica, new BiFunction<IndexShard, DiscoveryNode, RecoveryTarget>() {
|
final Future<Void> recoveryFuture = shards.asyncRecoverReplica(replica,
|
||||||
|
new BiFunction<IndexShard, DiscoveryNode, RecoveryTarget>() {
|
||||||
@Override
|
@Override
|
||||||
public RecoveryTarget apply(IndexShard indexShard, DiscoveryNode node) {
|
public RecoveryTarget apply(IndexShard indexShard, DiscoveryNode node) {
|
||||||
return new RecoveryTarget(indexShard, node, recoveryListener) {
|
return new RecoveryTarget(indexShard, node, recoveryListener) {
|
||||||
@ -441,7 +442,8 @@ public class ESIndexLevelReplicationTestCase extends ESTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void failShard(ShardRouting replica, ShardRouting primary, String message, Throwable throwable, Runnable onSuccess, Consumer<Throwable> onPrimaryDemoted, Consumer<Throwable> onIgnoredFailure) {
|
public void failShard(ShardRouting replica, ShardRouting primary, String message, Throwable throwable, Runnable onSuccess,
|
||||||
|
Consumer<Throwable> onPrimaryDemoted, Consumer<Throwable> onIgnoredFailure) {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user