[
https://issues.apache.org/jira/browse/HBASE-28567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HBASE-28567:
-----------------------------------
Labels: pull-request-available (was: )
> 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: 3.0.0, 2.5.8
> Reporter: Vincent Poon
> Assignee: Vincent Poon
> Priority: Major
> Labels: pull-request-available
>
> {{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)