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

add toString method to DatanodeStorage for easier debugging

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • Reviewed

    Description

      It seems to be nice to add a toString() method for DatanodeStorage class, so we can print out its key info easier while doing debuging.

      Another thing is, in the end of BlockManager#processReport, there is the following message,

         blockLog.info("BLOCK* processReport: from storage " + storage.getStorageID()
              + " node " + nodeID + ", blocks: " + newReport.getNumberOfBlocks()
              + ", processing time: " + (endTime - startTime) + " msecs");
          return !node.hasStaleStorages();
      

      We could add node.hasStaleStorages() to the log, and possibly replace storage.getSorateID() with the suggested storage.toString().

      Any comments? thanks.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yzhangal Yongjun Zhang Assign to me
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment