You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Vincent Poon (Jira)" <ji...@apache.org> on 2024/05/06 00:58:00 UTC

[jira] [Created] (HBASE-28567) Race condition causes MetaRegionLocationCache to never set watcher to populate meta location

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)