Hadoop Common
  1. Hadoop Common
  2. HADOOP-8558

Hadoop RPC does not allow protocol extension with common interfaces.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hadoop RPC fails if MyProtocol extends an interface, which is not a VersionedProtocol even if MyProtocol extends also VersionedProtocol. The reason is that Invocation uses Method.getDeclaringClass(), which returns the interface class rather than the class of MyProtocol.
      This is incompatible with former versions.

      1. TestProtocolExtension.java
        3 kB
        Konstantin Shvachko
      2. TestProtocolExtension.java
        3 kB
        Konstantin Shvachko

        Issue Links

          Activity

          Konstantin Shvachko created issue -
          Konstantin Shvachko made changes -
          Field Original Value New Value
          Link This issue is broken by HADOOP-7227 [ HADOOP-7227 ]
          Konstantin Shvachko made changes -
          Attachment TestProtocolExtension.java [ 12535143 ]
          Konstantin Shvachko made changes -
          Link This issue relates to HBASE-6340 [ HBASE-6340 ]
          Konstantin Shvachko made changes -
          Attachment TestProtocolExtension.java [ 12540904 ]
          Konstantin Shvachko made changes -
          Link This issue is related to HADOOP-7524 [ HADOOP-7524 ]
          Konstantin Shvachko made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Konstantin Shvachko [ shv ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Resolution Not A Problem [ 8 ]
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320357 ]

            People

            • Assignee:
              Konstantin Shvachko
              Reporter:
              Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development