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

fix HDFS protobuf namespace conflicts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: datanode, namenode
    • Labels:
      None

      Description

      HDFS currently puts multiple protobuf definitions with the same name in the same protobuf namespace.

      For example, QJournalProtocol defines HeartbeatRequestProto in package hadoop.hdfs, but DatanodeProtocol also defines something different, also called HeartbeatRequestProto and also in package hadoop.hdfs.

      This isn't an issue in Java because the java PB compiler seems to disregard the PB namespaces, putting the generated QJournalProtocolProtos.java file in package org.apache.hadoop.hdfs.qjournal.protocol and the DN one in a different java namespace. However, it is an issue when creating protobuf bindings in other languages.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cmccabe Colin P. McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: