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

RPC.closeProxy shouldn't throw error when closing a mock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.24.0
    • 2.0.0-alpha
    • ipc, test
    • None
    • Reviewed

    Description

      HADOOP-8202 changed the behavior of RPC.stopProxy() to throw an exception if called on an object which doesn't implement Closeable. Unfortunately, we use mock objects in many test cases, and those mocks don't implement Closeable. This is causing TestZKFailoverController to fail in trunk, for example.

      Attachments

        1. hadoop-8218.txt
          4 kB
          Todd Lipcon
        2. hadoop-8218.txt
          10 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: