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

Fix the condition of reporting failures in BlockPoolSlice

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: datanode
    • Labels:
      None
    • Target Version/s:

      Description

      BlockPoolSlice#addToReplicsMap() should log the failure for the operation that deletes restart metadata file.

      The current code did the opposite, log the failures on succeed deletion:

      if (restartMeta.delete()) {
          FsDatasetImpl.LOG.warn("Failed to delete restart meta file: " +
                    restartMeta.getPath());
      }
      

        Attachments

          Activity

            People

            • Assignee:
              eddyxu Lei (Eddy) Xu
              Reporter:
              eddyxu Lei (Eddy) Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: