@@ -300,7 +300,7 @@ public Configuration getConfiguration() {
300300 * Wait for the specified region server to stop. Removes this thread from list of running threads.
301301 * @return Name of region server that just went down.
302302 */
303- public String waitOnRegionServer (int serverNumber ) throws InterruptedException {
303+ public String waitOnRegionServer (int serverNumber ) {
304304 JVMClusterUtil .RegionServerThread regionServerThread = this .regionThreads .get (serverNumber );
305305 return waitOnRegionServer (regionServerThread );
306306 }
@@ -309,11 +309,14 @@ public String waitOnRegionServer(int serverNumber) throws InterruptedException {
309309 * Wait for the specified region server to stop. Removes this thread from list of running threads.
310310 * @return Name of region server that just went down.
311311 */
312- public String waitOnRegionServer (JVMClusterUtil .RegionServerThread rst )
313- throws InterruptedException {
312+ public String waitOnRegionServer (JVMClusterUtil .RegionServerThread rst ) {
314313 while (rst .isAlive ()) {
315- LOG .info ("Waiting on " + rst .getRegionServer ().toString ());
316- rst .join ();
314+ try {
315+ LOG .info ("Waiting on " + rst .getRegionServer ().toString ());
316+ rst .join ();
317+ } catch (InterruptedException e ) {
318+ e .printStackTrace ();
319+ }
317320 }
318321 regionThreads .remove (rst );
319322 return rst .getName ();
@@ -369,7 +372,7 @@ public List<JVMClusterUtil.MasterThread> getLiveMasters() {
369372 * Wait for the specified master to stop. Removes this thread from list of running threads.
370373 * @return Name of master that just went down.
371374 */
372- public String waitOnMaster (int serverNumber ) throws InterruptedException {
375+ public String waitOnMaster (int serverNumber ) {
373376 JVMClusterUtil .MasterThread masterThread = this .masterThreads .get (serverNumber );
374377 return waitOnMaster (masterThread );
375378 }
@@ -378,10 +381,14 @@ public String waitOnMaster(int serverNumber) throws InterruptedException {
378381 * Wait for the specified master to stop. Removes this thread from list of running threads.
379382 * @return Name of master that just went down.
380383 */
381- public String waitOnMaster (JVMClusterUtil .MasterThread masterThread ) throws InterruptedException {
384+ public String waitOnMaster (JVMClusterUtil .MasterThread masterThread ) {
382385 while (masterThread .isAlive ()) {
383- LOG .info ("Waiting on " + masterThread .getMaster ().getServerName ().toString ());
384- masterThread .join ();
386+ try {
387+ LOG .info ("Waiting on " + masterThread .getMaster ().getServerName ().toString ());
388+ masterThread .join ();
389+ } catch (InterruptedException e ) {
390+ e .printStackTrace ();
391+ }
385392 }
386393 masterThreads .remove (masterThread );
387394 return masterThread .getName ();
0 commit comments