anmolnar commented on PR #7558:
URL: https://github.com/apache/hbase/pull/7558#issuecomment-3671554065
Shall we add meta table name to `ConnectionRegistry`?
`ConnectionFactory` will fetch it from active master or get it from
ZooKeeper and set it in the `Connection` object where clients will find it
easily.
ZooKeeper quorums will be distinct between replica clusters, so it could be
a good place to store meta table name during the bootstrap process. We don't
need to support changing it in runtime.
For instance, in cluster bootstrap process:
- read configuration for suffix / replica id setting "replica1"
```
<property>
<name>hbase.meta.table.suffix</name>
<value>replica1</value>
</property>
```
- generate meta table name based on the above setting:
- if suffix is _not_ set: "hbase:meta"
- if suffix is set: "hbase:meta_386330f"
- store generated table name in ZooKeeper and retrieve it via
ConnectionRegistry
wdyt?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]