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

DataXceiver#copyBlock should return if block is pinned

    Details

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

      Description

      in DataXceiver#copyBlock

        if (datanode.data.getPinning(block)) {
            String msg = "Not able to copy block " + block.getBlockId() + " " +
                "to " + peer.getRemoteAddressString() + " because it's pinned ";
            LOG.info(msg);
            sendResponse(ERROR, msg);
          }
      

      I think we should return back instead of proceeding to send block.as we already sent ERROR here.

        Attachments

        1. HDFS-9713-00.patch
          0.8 kB
          Uma Maheswara Rao G

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: