commit | 0aaacf63cd784566a1f98555839e068ac6a0e8d0 | [log] [tgz] |
---|---|---|
author | Josh Elser <elserj@apache.org> | Fri Nov 12 12:57:07 2021 -0500 |
committer | Josh Elser <elserj@apache.org> | Wed Nov 17 19:56:00 2021 -0500 |
tree | 653affa2180e75c2f268fc0b67908848847049c7 | |
parent | 04a304e50c200803b6c8b8ca5ec321fd23899210 [diff] |
HBASE-26453 Correct the behavior of isBeneath to not consider paths which share a name prefix as beneath one another. The current implementation of isBeneath fails when given paths of the form '/foo' and '/foobar' (returning that '/foobar' is beneath '/foo'). Because this method returns incorrect values, it causes Curator mutexes to be removed and znodes to be removed while they were potentially held. Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>