You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Douglas Campbell (JIRA)" <ji...@apache.org> on 2011/08/03 20:47:27 UTC

[jira] [Created] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

HBaseServer - IPC Reader threads are not daemons
------------------------------------------------

                 Key: HBASE-4159
                 URL: https://issues.apache.org/jira/browse/HBASE-4159
             Project: HBase
          Issue Type: Improvement
          Components: ipc
    Affects Versions: 0.90.3
            Reporter: Douglas Campbell


Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 

This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.

Servers are daemon
"IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
"IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
"IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]

Readers are not
"IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
"IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
"IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated HBASE-4159:
--------------------------

    Fix Version/s:     (was: 0.90.4)
                       (was: 0.92.0)
                   0.90.5

> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>            Assignee: Douglas Campbell
>             Fix For: 0.90.5
>
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079781#comment-13079781 ] 

Hudson commented on HBASE-4159:
-------------------------------

Integrated in HBase-TRUNK #2085 (See [https://builds.apache.org/job/HBase-TRUNK/2085/])
    HBASE-4159  HBaseServer - IPC Reader threads are not daemons

apurtell : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java
* /hbase/trunk/CHANGES.txt


> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>            Assignee: Douglas Campbell
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Douglas Campbell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Campbell updated HBASE-4159:
------------------------------------

    Attachment: HBASE-4159.patch

this should set the threads as daemon

> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Purtell resolved HBASE-4159.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.92.0
                   0.90.4
     Hadoop Flags: [Reviewed]

Thanks for the patch Douglas! Thanks for the review Ted. Committed to 0.90 branch and trunk.

> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>            Assignee: Douglas Campbell
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu reassigned HBASE-4159:
-----------------------------

    Assignee: Douglas Campbell

> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>            Assignee: Douglas Campbell
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079044#comment-13079044 ] 

Ted Yu commented on HBASE-4159:
-------------------------------

+1 on patch.

> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4159) HBaseServer - IPC Reader threads are not daemons

Posted by "Douglas Campbell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080160#comment-13080160 ] 

Douglas Campbell commented on HBASE-4159:
-----------------------------------------

My pleasure. and glad I could help.





> HBaseServer - IPC Reader threads are not daemons
> ------------------------------------------------
>
>                 Key: HBASE-4159
>                 URL: https://issues.apache.org/jira/browse/HBASE-4159
>             Project: HBase
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 0.90.3
>            Reporter: Douglas Campbell
>            Assignee: Douglas Campbell
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4159.patch
>
>
> Doing a jstack on a region server process shows that the IPC Reader threads are not created as daemon threads whereas IPC Server threads (and other types are). 
> This could cause the region server to not exit after the main method does if for some reason these non-daemon threads don't exit themselves.
> Servers are daemon
> "IPC Server handler 7 on 60020" daemon prio=10 tid=0x00002aaabc998800 nid=0x7157 waiting on condition [0x0000000044b4e000]
> "IPC Server handler 6 on 60020" daemon prio=10 tid=0x00002aaabc996800 nid=0x7156 waiting on condition [0x0000000044a4d000]
> "IPC Server handler 5 on 60020" daemon prio=10 tid=0x00002aaabc995000 nid=0x7155 waiting on condition [0x000000004494c000]
> Readers are not
> "IPC Reader 5 on port 60020" prio=10 tid=0x00002aaabc47d000 nid=0x712a runnable [0x0000000043033000]
> "IPC Reader 4 on port 60020" prio=10 tid=0x00002aaabc462000 nid=0x7129 runnable [0x0000000042f32000]
> "IPC Reader 3 on port 60020" prio=10 tid=0x00002aaabc447000 nid=0x7128 runnable [0x0000000042e31000]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira