@@ -145,7 +145,7 @@ public void testAutoFollowManyIndices() throws Exception {
145
145
assertThat (autoFollowStats [0 ].getNumberOfSuccessfulFollowIndices (), equalTo (expectedVal1 ));
146
146
});
147
147
} catch (AssertionError ae ) {
148
- logger .warn ("metadata ={}" , Strings .toString (metaData [0 ]));
148
+ logger .warn ("indices ={}" , Arrays .toString (metaData [0 ]. indices (). keys (). toArray ( String . class ) ));
149
149
logger .warn ("auto follow stats={}" , Strings .toString (autoFollowStats [0 ]));
150
150
throw ae ;
151
151
}
@@ -160,15 +160,15 @@ public void testAutoFollowManyIndices() throws Exception {
160
160
assertThat (autoFollowStats [0 ].getAutoFollowedClusters ().size (), equalTo (0 ));
161
161
});
162
162
} catch (AssertionError ae ) {
163
- logger .warn ("metadata ={}" , Strings .toString (metaData [0 ]));
163
+ logger .warn ("indices ={}" , Arrays .toString (metaData [0 ]. indices (). keys (). toArray ( String . class ) ));
164
164
logger .warn ("auto follow stats={}" , Strings .toString (autoFollowStats [0 ]));
165
165
throw ae ;
166
166
}
167
167
createLeaderIndex ("logs-does-not-count" , leaderIndexSettings );
168
168
169
169
putAutoFollowPatterns ("my-pattern" , new String [] {"logs-*" });
170
170
long i = numIndices ;
171
- numIndices = numIndices + randomIntBetween (4 , 16 );
171
+ numIndices = numIndices + randomIntBetween (4 , 8 );
172
172
for (; i < numIndices ; i ++) {
173
173
createLeaderIndex ("logs-" + i , leaderIndexSettings );
174
174
}
@@ -185,7 +185,7 @@ public void testAutoFollowManyIndices() throws Exception {
185
185
assertThat (autoFollowStats [0 ].getRecentAutoFollowErrors ().size (), equalTo (0 ));
186
186
});
187
187
} catch (AssertionError ae ) {
188
- logger .warn ("metadata ={}" , Strings .toString (metaData [0 ]));
188
+ logger .warn ("indices ={}" , Arrays .toString (metaData [0 ]. indices (). keys (). toArray ( String . class ) ));
189
189
logger .warn ("auto follow stats={}" , Strings .toString (autoFollowStats [0 ]));
190
190
throw ae ;
191
191
}
0 commit comments