Hadoop Common
  1. Hadoop Common
  2. HADOOP-7689

Process cannot exit when there is many RPC readers more that actual client

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ipc
    • Labels:

      Description

      I met a strange issue that process cannot exit when I run RPC test cases in my Eclipse.
      Conditions:
      1. Only one Server and one client(local)
      2. I have set many readers(conf.setInt("ipc.server.read.threadpool.size", 5)), it great than client number.

      After any test cases, the process cannot exit. I tested with several cases and found the root cause.

      RPC serves socket with reader(transferring binary to Call), and even shutdown the thread pool. But all the free readers are blocked at "readSelector.select()" (they are useless by Listener)
      Those threads and process cannot exit always.

      It can be fixed by invoking corresponding selector for each reader.The same thing was done at 0.20 version.

        Activity

        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12517661/HADOOP-7689.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/761//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12517661/HADOOP-7689.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/761//console This message is automatically generated.
        Hide
        Harsh J added a comment -

        Hi Denny - Can you rebase the patch for trunk if its still an issue? Also you mentioned hitting this in a test-case, so can we have a way to test this change as well, so that we don't regress it in future?

        Show
        Harsh J added a comment - Hi Denny - Can you rebase the patch for trunk if its still an issue? Also you mentioned hitting this in a test-case, so can we have a way to test this change as well, so that we don't regress it in future?

          People

          • Assignee:
            Unassigned
            Reporter:
            Denny Ye
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development