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

DataXceiver#copyBlock should return if block is pinned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 3.0.0-alpha1
    • datanode
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: