Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • HADOOP-13345
    • HADOOP-13345
    • fs/s3
    • 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().

      Attachments

        Activity

          People

            fabbri Aaron Fabbri
            fabbri Aaron Fabbri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: