Vincent Poon created HBASE-28567:
------------------------------------

             Summary: Race condition causes MetaRegionLocationCache to never 
set watcher to populate meta location
                 Key: HBASE-28567
                 URL: https://issues.apache.org/jira/browse/HBASE-28567
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.5.8, 3.0.0
            Reporter: Vincent Poon
            Assignee: Vincent Poon


{{ZKWatcher#getMetaReplicaNodesAndWatchChildren()}} attempts to set a a watch 
on the base /hbase znode children using 
{{ZKUtil.listChildrenAndWatchForNewChildren()}}, but if the node does not 
exist, no watch gets set.

We've seen this in the test container Trino uses over at 
[trino/21569|https://github.com/trinodb/trino/pull/21569] , where ZK, master, 
and RS are all run in the same container.
The fix is to throw if the node does not exist so that 
{{MetaRegionLocationCache}} can retry until the node gets created.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to