Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10372

Fix for failing TestFsDatasetImpl#testCleanShutdownOfVolume

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      TestFsDatasetImpl#testCleanShutdownOfVolume fails very often.
      We added more debug information in HDFS-10260 to find out why this test is failing.
      Now I think I know the root cause of failure.
      I thought that LocatedBlock#getLocations() returns an array of DatanodeInfo but now I realized that it returns an array of DatandeStorageInfo (which is subclass of DatanodeInfo).
      In the test I intended to check whether the exception contains the xfer address of the DatanodeInfo. Since DatanodeInfo#toString() method returns the xfer address, I checked whether exception contains DatanodeInfo#toString or not.
      But since LocatedBlock#getLocations() returned an array of DatanodeStorageInfo, it has storage info in the toString() implementation.

        Attachments

        1. HDFS-10372.patch
          1.0 kB
          Rushabh S Shah

          Issue Links

            Activity

              People

              • Assignee:
                shahrs87 Rushabh S Shah
                Reporter:
                shahrs87 Rushabh S Shah
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: