Description
With patch HBASE-7767 we moved table statuses from ZK to HDFS. That was a good cleanup, but we put additional (substantial) load on master. Some client requests use checks for table state (for example HBASE-12035).
Thats is why patch was not back ported to branch1 (HBASE-11978)
Lets replicate state back to zk, but as a mirror of table states.
What can be done:
1. TableStateManager would push table state changes to zk
2. Return back ZKTableStateClientSideReader.
Alternative way:
1. Move table statuses to separate table like namespaces
2. Issue statuses requests against this table
Alternative way2:
1. Extend RS api with getTableState() call
2. Each RS will be able to cache table states
3. Clients will call RS instead of master or zk