@@ -92,10 +92,10 @@ public void testAckedIndexing() throws Exception {
9292 final List <String > nodes = startCluster (rarely () ? 5 : 3 );
9393
9494 assertAcked (prepareCreate ("test" )
95- .setSettings (Settings .builder ()
96- .put (IndexMetaData .SETTING_NUMBER_OF_SHARDS , 1 + randomInt (2 ))
97- .put (IndexMetaData .SETTING_NUMBER_OF_REPLICAS , randomInt (2 ))
98- ));
95+ .setSettings (Settings .builder ()
96+ .put (IndexMetaData .SETTING_NUMBER_OF_SHARDS , 1 + randomInt (2 ))
97+ .put (IndexMetaData .SETTING_NUMBER_OF_REPLICAS , randomInt (2 ))
98+ ));
9999 ensureGreen ();
100100
101101 ServiceDisruptionScheme disruptionScheme = addRandomDisruptionScheme ();
@@ -142,8 +142,8 @@ public void testAckedIndexing() throws Exception {
142142 exceptedExceptions .add (e );
143143 final String docId = id ;
144144 logger .trace (
145- (Supplier <?>)
146- () -> new ParameterizedMessage ("[{}] failed id [{}] through node [{}]" , name , docId , node ), e );
145+ (Supplier <?>)
146+ () -> new ParameterizedMessage ("[{}] failed id [{}] through node [{}]" , name , docId , node ), e );
147147 } finally {
148148 countDownLatchRef .get ().countDown ();
149149 logger .trace ("[{}] decreased counter : {}" , name , countDownLatchRef .get ().getCount ());
@@ -190,12 +190,12 @@ public void testAckedIndexing() throws Exception {
190190 disruptionScheme .stopDisrupting ();
191191 for (String node : internalCluster ().getNodeNames ()) {
192192 ensureStableCluster (nodes .size (), TimeValue .timeValueMillis (disruptionScheme .expectedTimeToHeal ().millis () +
193- DISRUPTION_HEALING_OVERHEAD .millis ()), true , node );
193+ DISRUPTION_HEALING_OVERHEAD .millis ()), true , node );
194194 }
195195 // in case of a bridge partition, shard allocation can fail "index.allocation.max_retries" times if the master
196196 // is the super-connected node and recovery source and target are on opposite sides of the bridge
197197 if (disruptionScheme instanceof NetworkDisruption &&
198- ((NetworkDisruption ) disruptionScheme ).getDisruptedLinks () instanceof Bridge ) {
198+ ((NetworkDisruption ) disruptionScheme ).getDisruptedLinks () instanceof Bridge ) {
199199 assertAcked (client ().admin ().cluster ().prepareReroute ().setRetryFailed (true ));
200200 }
201201 ensureGreen ("test" );
@@ -207,7 +207,7 @@ public void testAckedIndexing() throws Exception {
207207 logger .debug ("validating through node [{}] ([{}] acked docs)" , node , ackedDocs .size ());
208208 for (String id : ackedDocs .keySet ()) {
209209 assertTrue ("doc [" + id + "] indexed via node [" + ackedDocs .get (id ) + "] not found" ,
210- client (node ).prepareGet ("test" , "type" , id ).setPreference ("_local" ).get ().isExists ());
210+ client (node ).prepareGet ("test" , "type" , id ).setPreference ("_local" ).get ().isExists ());
211211 }
212212 } catch (AssertionError | NoShardAvailableActionException e ) {
213213 throw new AssertionError (e .getMessage () + " (checked via node [" + node + "]" , e );
0 commit comments