Grokbase Groups HBase dev April 2010
FAQ
Race condition when disabling a table leaves regions in transition
------------------------------------------------------------------

Key: HBASE-2499
URL: https://issues.apache.org/jira/browse/HBASE-2499
Project: Hadoop HBase
Issue Type: Bug
Affects Versions: 0.20.3
Reporter: Jean-Daniel Cryans
Assignee: Jean-Daniel Cryans
Priority: Blocker
Fix For: 0.20.4, 0.21.0


A lot of people reported that weren't able to add/delete a column because only some of the regions got the modification. I personally thought it was due to the CME bug in the Master, but I'm able to easily reproduce on 0.20.4 on a 1800 regions table.

Since 0.20.3, we now call disableTable after every retry to make sure we don't miss any region. This creates a race where while we scan .META. in TableOperation, a region could be reported as closed after we scanned the row. We end up processing it like if it was assigned and we put it back into regionsInTransition. We need to either query .META. before processing each region or make some more check to see if the region was closed.

This kills the RC in my book.

In the mean time, anyone getting this can restart their HBase and it will pick up the change.

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

Search Discussions

  • Jean-Daniel Cryans (JIRA) at Apr 29, 2010 at 1:27 am
    [ https://issues.apache.org/jira/browse/HBASE-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Jean-Daniel Cryans resolved HBASE-2499.
    ---------------------------------------

    Hadoop Flags: [Reviewed]
    Resolution: Fixed

    Committed to the branches and trunk.
    Race condition when disabling a table leaves regions in transition
    ------------------------------------------------------------------

    Key: HBASE-2499
    URL: https://issues.apache.org/jira/browse/HBASE-2499
    Project: Hadoop HBase
    Issue Type: Bug
    Affects Versions: 0.20.3
    Reporter: Jean-Daniel Cryans
    Assignee: Jean-Daniel Cryans
    Priority: Blocker
    Fix For: 0.20.4, 0.21.0

    Attachments: HBASE-2499-v2.patch, HBASE-2499.patch


    A lot of people reported that weren't able to add/delete a column because only some of the regions got the modification. I personally thought it was due to the CME bug in the Master, but I'm able to easily reproduce on 0.20.4 on a 1800 regions table.
    Since 0.20.3, we now call disableTable after every retry to make sure we don't miss any region. This creates a race where while we scan .META. in TableOperation, a region could be reported as closed after we scanned the row. We end up processing it like if it was assigned and we put it back into regionsInTransition. We need to either query .META. before processing each region or make some more check to see if the region was closed.
    This kills the RC in my book.
    In the mean time, anyone getting this can restart their HBase and it will pick up the change.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedApr 28, '10 at 8:46p
activeApr 29, '10 at 1:27a
posts2
users1
websitehbase.apache.org

1 user in discussion

Jean-Daniel Cryans (JIRA): 2 posts

People

Translate

site design / logo © 2021 Grokbase