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

Hadoop RPC does not allow protocol extension with common interfaces.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.0.0-alpha
    • None
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: