Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6958

Fix the condition of reporting failures in BlockPoolSlice

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial 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());
      }
      
      1. HDFS-6958.000.patch
        0.9 kB
        Lei (Eddy) Xu

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development