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

        Lei (Eddy) Xu created issue -
        Lei (Eddy) Xu made changes -
        Field Original Value New Value
        Attachment HDFS-6958.000.patch [ 12664785 ]
        Aaron T. Myers made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 2.6.0 [ 12327181 ]
        Lei (Eddy) Xu made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]

          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