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:
parent
34e96f5b32
commit
0a35c70f54
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue