HBASE-6293 HMaster does not go down while splitting logs even if explicit shutdown is called.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1357757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2012-07-05 17:36:59 +00:00
parent 34e96f5b32
commit 0a35c70f54
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ public class MasterFileSystem {
HLog.SPLIT_SKIP_ERRORS_DEFAULT);
Path logsDirPath = new Path(this.rootdir, HConstants.HREGION_LOGDIR_NAME);
do {
if (master.isStopped()) {
LOG.warn("Master stopped while splitting logs");
break;
}
List<ServerName> serverNames = new ArrayList<ServerName>();
try {
if (!this.fs.exists(logsDirPath)) return;