diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon index 190f1dd857f..21af264bbe3 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/BackupMasterStatusTmpl.jamon @@ -24,12 +24,13 @@ java.util.*; org.apache.hadoop.hbase.ServerName; org.apache.hadoop.hbase.ClusterMetrics; org.apache.hadoop.hbase.master.HMaster; +org.apache.hbase.thirdparty.com.google.common.base.Preconditions; <%if (!master.isActiveMaster()) %> <%java> ServerName active_master = master.getActiveMaster().orElse(null); - assert active_master != null : "Failed to retrieve active master's ServerName!"; - int activeInfoPort = active_master == null ? 0 : master.getActiveMasterInfoPort(); + Preconditions.checkState(active_master != null, "Failed to retrieve active master's ServerName!"); + int activeInfoPort = master.getActiveMasterInfoPort();