HBASE-9468 Previous active master can still serves RPC request when it is trying recovering expired zk session
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1521949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6bcccde06a
commit
e150672901
|
@ -146,6 +146,12 @@ possible configurations would overwhelm and obscure the important.
|
|||
<description>Timeout value for the Catalog Janitor from the master to
|
||||
META.</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>fail.fast.expired.active.master</name>
|
||||
<value>false</value>
|
||||
<description>If abort immediately for the expired master without trying
|
||||
to recover its zk session.</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>hbase.master.dns.interface</name>
|
||||
<value>default</value>
|
||||
|
|
|
@ -2347,7 +2347,10 @@ MasterServices, Server {
|
|||
if (!this.isActiveMaster || this.stopped) {
|
||||
return true;
|
||||
}
|
||||
if (t != null && t instanceof KeeperException.SessionExpiredException) {
|
||||
|
||||
boolean failFast = conf.getBoolean("fail.fast.expired.active.master", false);
|
||||
if (t != null && t instanceof KeeperException.SessionExpiredException
|
||||
&& !failFast) {
|
||||
try {
|
||||
LOG.info("Primary Master trying to recover from ZooKeeper session " +
|
||||
"expiry.");
|
||||
|
|
Loading…
Reference in New Issue