Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hbase-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -824,3 +824,4 @@
</profile>
</profiles>
</project>
<!-- trigger tests in this module -->
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,18 @@ public void interruptedExceptionNoThrow(InterruptedException ie, boolean throwLa
*/
@Override
public void close() {
zkEventProcessor.shutdown();
try {
recoverableZooKeeper.close();
zkEventProcessor.awaitTermination(60, TimeUnit.SECONDS);
} catch (InterruptedException e) {
LOG.warn("ZKWatcher event processor has not finished to terminate.");
Thread.currentThread().interrupt();
} finally {
zkEventProcessor.shutdownNow();
try {
recoverableZooKeeper.close();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
}

Expand Down