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

RPC.stopProxy can throw unintended exception while logging error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.24.0
    • 2.0.0-alpha
    • ipc
    • None
    • 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.

      Attachments

        1. HADOOP-7695.patch
          0.7 kB
          Aaron Myers

        Issue Links

          Activity

            People

              atm Aaron Myers
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: