@@ -212,7 +212,7 @@ private static void createForest(String forestName, String hostname, String data
212212
213213 query += "let $save := admin:save-configuration($forest-create)" + "return ()" ;
214214 System .out .println ("Query is " + query );
215- dbClient .newServerEval ().xquery (query ).eval ();
215+ evalClient .newServerEval ().xquery (query ).eval ();
216216 }
217217
218218 @ AfterClass
@@ -234,18 +234,18 @@ public void setUp() throws Exception {
234234 }
235235 Assert .assertTrue (isRunning (hostNames [i ]));
236236 }
237- if (!(dbClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 0 )) {
237+ if (!(evalClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 0 )) {
238238 clearDB (port );
239239 }
240- Assert .assertTrue (dbClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 0 );
240+ Assert .assertTrue (evalClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 0 );
241241 ForestConfiguration fc = dmManager .readForestConfig ();
242242 Forest [] f = fc .listForests ();
243243 f = (Forest []) Arrays .stream (f ).filter (x -> x .getDatabaseName ().equals (dbName )).collect (Collectors .toList ())
244244 .toArray (new Forest [hostNames .length ]);
245245 Assert .assertEquals (f .length , hostNames .length );
246246 Assert .assertEquals (f .length , 3L );
247247 addDocs ();
248- Assert .assertTrue (dbClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 20000 );
248+ Assert .assertTrue (evalClient .newServerEval ().xquery (query1 ).eval ().next ().getNumber ().intValue () == 20000 );
249249 }
250250
251251 @ After
@@ -260,7 +260,11 @@ public void tearDown() throws Exception {
260260 changeProperty (props , "/manage/v2/forests/" + dbName + "-" + (i + 1 ) + "/properties" );
261261 Thread .currentThread ().sleep (1000L );
262262 System .out .println ("Restarting server: " + hostNames [i ]);
263- serverStartStop (hostNames [i ], "start" );
263+ try {
264+ serverStartStop (hostNames [i ], "start" );
265+ } catch (Exception e ) {
266+ e .printStackTrace ();
267+ }
264268 Thread .currentThread ().sleep (1000L );
265269 System .out .println (new SimpleDateFormat ("yyyy.MM.dd.HH.mm:ss" ).format (new Date ()));
266270 System .out .println ("Enabling " + dbName + "-" + (i + 1 ));
@@ -273,7 +277,7 @@ public void tearDown() throws Exception {
273277 clearDB (port );
274278 }
275279
276- @ Test (timeout = 400000 )
280+ @ Test (timeout = 450000 )
277281 public void testStopOneNode () throws Exception {
278282 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
279283 AtomicInteger success = new AtomicInteger (0 );
@@ -308,7 +312,7 @@ public void testStopOneNode() throws Exception {
308312 assertEquals ("document count" , 0 , failure .intValue ());
309313 }
310314
311- @ Test (timeout = 400000 )
315+ @ Test (timeout = 450000 )
312316 public void testRestart () throws Exception {
313317 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
314318 AtomicInteger success = new AtomicInteger (0 );
@@ -345,7 +349,7 @@ public void testRestart() throws Exception {
345349 assertEquals ("document count" , 0 , failure .intValue ());
346350 }
347351
348- @ Test (timeout = 400000 )
352+ @ Test (timeout = 450000 )
349353 public void testRepeatedStopOneNode () throws Exception {
350354 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
351355 AtomicInteger success = new AtomicInteger (0 );
@@ -389,7 +393,7 @@ public void testRepeatedStopOneNode() throws Exception {
389393 assertEquals ("document count" , 0 , failure .intValue ());
390394 }
391395
392- @ Test (timeout = 400000 )
396+ @ Test (timeout = 450000 )
393397 public void testMinNodes () throws Exception {
394398 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
395399 AtomicInteger success = new AtomicInteger (0 );
@@ -433,7 +437,7 @@ public void testMinNodes() throws Exception {
433437 Assert .assertTrue (success .intValue () < 20000 );
434438 }
435439
436- @ Test (timeout = 400000 )
440+ @ Test (timeout = 450000 )
437441 public void testStopTwoNodes () throws Exception {
438442 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
439443 try {
@@ -476,7 +480,7 @@ public void testStopTwoNodes() throws Exception {
476480 }
477481 }
478482
479- @ Test (timeout = 400000 )
483+ @ Test (timeout = 450000 )
480484 public void xQueryMasstransformReplace () throws Exception {
481485 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
482486 ServerTransform transform = new ServerTransform ("add-attr-xquery-transform" );
@@ -546,7 +550,7 @@ public void xQueryMasstransformReplace() throws Exception {
546550
547551 }
548552
549- @ Test (timeout = 400000 )
553+ @ Test (timeout = 450000 )
550554 public void xQueryMasstransformReplaceTwoNodes () throws Exception {
551555 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
552556 ServerTransform transform = new ServerTransform ("add-attr-xquery-transform" );
@@ -618,7 +622,7 @@ public void xQueryMasstransformReplaceTwoNodes() throws Exception {
618622 assertEquals ("document count" , 0 , skipped .intValue ());
619623 }
620624
621- @ Test (timeout = 400000 )
625+ @ Test (timeout = 450000 )
622626 public void xQueryMasstransformReplaceRepeated () throws Exception {
623627 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
624628 ServerTransform transform = new ServerTransform ("add-attr-xquery-transform" );
@@ -696,7 +700,7 @@ public void xQueryMasstransformReplaceRepeated() throws Exception {
696700 assertEquals ("document count" , 0 , failure .intValue ());
697701 }
698702
699- @ Test (timeout = 400000 )
703+ @ Test (timeout = 450000 )
700704 public void massDeleteConsistentSnapShot () throws Exception {
701705 System .out .println (Thread .currentThread ().getStackTrace ()[1 ].getMethodName ());
702706 AtomicBoolean isRunning = new AtomicBoolean (true );
0 commit comments