Hadoop Common
  1. Hadoop Common
  2. HADOOP-7695

RPC.stopProxy can throw unintended exception while logging error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.24.0
    • Fix Version/s: 2.0.0-alpha
    • Component/s: ipc
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      RPC.stopProxy includes the following lines in case of error:

      LOG.error("Could not get invocation handler " + invocationHandler +
                " for proxy " + proxy + ", or invocation handler is not closeable.");
      

      Trouble is, the proxy object is usually backed by WritableRpcEngine, which will fail in the event toString is called on one of its proxy objects. See HADOOP-7694 for more details on that issue. Until that's addressed, we might as well change the log message in RPC.stopProxy to not call toString() on proxy.

      1. HADOOP-7695.patch
        0.7 kB
        Aaron T. Myers

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Aaron T. Myers
              Reporter:
              Aaron T. Myers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development