You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/12/03 00:50:44 UTC

[jira] Created: (HBASE-1042) OOME but we don't abort

OOME but we don't abort
-----------------------

                 Key: HBASE-1042
                 URL: https://issues.apache.org/jira/browse/HBASE-1042
             Project: Hadoop HBase
          Issue Type: Bug
            Reporter: stack
             Fix For: 0.19.0


On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (HBASE-1042) OOME but we don't abort

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

Work on HBASE-1042 started by stack.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HBASE-1042) OOME but we don't abort

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

stack resolved HBASE-1042.
--------------------------

    Resolution: Fixed

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HBASE-1042) OOME but we don't abort

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

stack reopened HBASE-1042:
--------------------------


> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-committed.patch, 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1042) OOME but we don't abort

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

stack updated HBASE-1042:
-------------------------

    Fix Version/s:     (was: 0.19.0)
                   0.18.2

Backport if we do a 0.18.2.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-committed.patch, 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1042) OOME but we don't abort

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

stack updated HBASE-1042:
-------------------------

    Attachment: 1042-v2.patch

Patch regularizes exception throwing in HRS.  Changes all IOException catches to Throwable catches so we get a whack at things like OOMEs.

Also removed throw of IOE from HRS#close.  Whats client going to do with an exception on close.

Still need to test.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1042) OOME but we don't abort

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

stack updated HBASE-1042:
-------------------------

    Attachment: 1042-committed.patch

This is patch that was actually committed (some shoe-horning required because TRUNK had moved on since patch was made).

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-committed.patch, 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HBASE-1042) OOME but we don't abort

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

stack reassigned HBASE-1042:
----------------------------

    Assignee: stack

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1042) OOME but we don't abort

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

stack updated HBASE-1042:
-------------------------

    Attachment: 1042.patch

Patch that catches Throwable in Leases and exits cleaning up existing leases.  Also, added to checkOOME test for the special OOME that comes up out of a mapfile (the OOME is in the IOE message, not as the cause of the IOE).... see below for example ... so we abort rather than as now, miss the OOME.

{code}
2008-12-02 12:58:51,274 INFO org.apache.hadoop.ipc.Server: IPC Server handler 0 on 60020, call openScanner([B@630ff939, [[B@2db33ffe, [B@532e5422, 9223372036854775807, null) from XX.XX.XX.106:55041: error: java.io.IOException: java.lang.OutOfMemoryError: Java heap space
java.io.IOException: java.lang.OutOfMemoryError: Java heap space
        at org.apache.hadoop.io.MapFile$Reader.readIndex(MapFile.java:337)
        at org.apache.hadoop.io.MapFile$Reader.midKey(MapFile.java:368)
        at org.apache.hadoop.hbase.io.HBaseMapFile$HBaseReader.<init>(HBaseMapFile.java:93)
        at org.apache.hadoop.hbase.io.BloomFilterMapFile$Reader.<init>(BloomFilterMapFile.java:66)
        at org.apache.hadoop.hbase.regionserver.HStoreFile.getReader(HStoreFile.java:443)
        at org.apache.hadoop.hbase.regionserver.StoreFileScanner.openReaders(StoreFileScanner.java:96)
        at org.apache.hadoop.hbase.regionserver.StoreFileScanner.<init>(StoreFileScanner.java:67)
        at org.apache.hadoop.hbase.regionserver.HStoreScanner.<init>(HStoreScanner.java:84)
        at org.apache.hadoop.hbase.regionserver.HStore.getScanner(HStore.java:2095)
        at org.apache.hadoop.hbase.regionserver.HRegion$HScanner.<init>(HRegion.java:1977)
        at org.apache.hadoop.hbase.regionserver.HRegion.getScanner(HRegion.java:1159)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1441)
        at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.hbase.ipc.HbaseRPC$Server.call(HbaseRPC.java:634)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:888)
{code}

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HBASE-1042) OOME but we don't abort

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

stack resolved HBASE-1042.
--------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.18.2)
                   0.19.0

Committed second patch to TRUNK only.  Resolving.  Will open against 0.18.2.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042-committed.patch, 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (HBASE-1042) OOME but we don't abort

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

stack reopened HBASE-1042:
--------------------------


Happened again on streamy.com with the above patch applied.  Abort did not trigger.  Figured why.  The OOME doesn't get converted to an IOE, not until we make it out into (HBase)RPC#call at #667.  Reopening.  Let me change the HRS so that invocations don't assume only IOEs bubble up from the guts of the server.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1042) OOME but we don't abort

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

stack updated HBASE-1042:
-------------------------

    Fix Version/s:     (was: 0.19.0)
                   0.18.2

Marking for backport at apurtell request.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1042) OOME but we don't abort

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

Andrew Purtell commented on HBASE-1042:
---------------------------------------

This could be the difference between regionservers that go down on OOME on 0.18.1 cluster versus those that do not. I get OOME in regionservers with active scanners all the time.

Can this be backported to the 0.18 branch?

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.19.0
>
>         Attachments: 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1042) OOME but we don't abort

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

Andrew Purtell commented on HBASE-1042:
---------------------------------------

Thanks Stack. I am actually going to upgrade to trunk on top of Hadoop 0.18 so I can best work with the community to fix our issues. I think the backporting is still a good idea for others, but want to clarify the current situation with my deployment.

> OOME but we don't abort
> -----------------------
>
>                 Key: HBASE-1042
>                 URL: https://issues.apache.org/jira/browse/HBASE-1042
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.18.2
>
>         Attachments: 1042-v2.patch, 1042.patch
>
>
> On streamy cluster saw case where graceful shutdown had been triggered rather than an abort on OOME.  On graceful shutdown, we wait on leases to expire or be closed.  Server wouldn't go down because it was waiting on leases to expire only an OOME in Leases had killed the thread so it wasn't ever going to expire anything.   Node was stuck for four hours till someone noticed it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.