Uploaded image for project: 'Crunch'
  1. Crunch
  2. CRUNCH-652

SourceTargetHelperTest became flaky when upgrading to hadoop 3.0.0

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Problem description: org.apache.crunch.io.SourceTargetHelperTest became flaky - it failed when its testGetNonExistentPathSize_NonExistantPath() method ran first

      Root cause: due to upgrading the hadoop version to 3.0.0, the org.apache.hadoop.fs.FsTracer singleton has been pulled in, which throws an NPE when initialized with a filesystem that has null configuration. SourceTargetHelperTest.MockFileSystem.fs has null configuration.

        Issue Links

          Activity

          Hide
          grepas Gergo Repas added a comment -

          Attaching a patch for fixing this issue. Fix summary: SourceTargetHelperTest.MockFileSystem construction to use an underlying filesystem which has non-null Configuration

          Show
          grepas Gergo Repas added a comment - Attaching a patch for fixing this issue. Fix summary: SourceTargetHelperTest.MockFileSystem construction to use an underlying filesystem which has non-null Configuration

            People

            • Assignee:
              Unassigned
              Reporter:
              grepas Gergo Repas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development