Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-396

Writable DatanodeID

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • None
    • None

    Description

      This patch implements Owen's comments to HADOOP-321. Namely,

      • Namenode.sendHeartbeat does not create a throwaway DatanodeDescriptor. DatanodeID is sufficient in this case.
      • DatanodeID is made Writable, and it also implements equals() and hashCode().
      • DatanodeInfo is updated to call base class methods in its implementation of Writable interface.
      • I changed the way strings are written/read using UTF8.writeString and UTF8.readString.
      • Some comments are updated.

      Attachments

        1. DatanodeID3.patch
          21 kB
          Konstantin Shvachko
        2. DatanodeID2.patch
          20 kB
          Konstantin Shvachko
        3. DatanodeID.patch
          5 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

              shv Konstantin Shvachko
              shv Konstantin Shvachko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: