private void update(byte[] s) throws IOException {
    masterRegion.update(r -> r.put(new Put(stateName).addColumn(STATE_FAMILY, QUALIFIER, s)));
  }
A state storage which stores the state in master local region.
<p/>
We used to store some persistent state on zookeeper, so here we provide the ability to migrate
the state from zookeeper.
<p/>
Since parsing the state may introduce some extra overhead, we make this class abstract and the
get and set state methods protected. Sub classes should store their state in decoded format to
save the extra parsing overhead.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterStateStore.java