Details
-
Sub-task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
HADOOP-13345
-
None
Description
Just noticed HADOOP-14020 introduced a bug in S3Guard#dirListingUnion.
The offending change is here:
- if (dirMeta.get(s.getPath()) == null) { - dirMeta.put(s); - } + changed = changed || dirMeta.put(s); + } +
hint: Logical OR is a short-circuit operator.
Easy fix, but should probably come with a unit test for dirListingUnion().