[ 
https://issues.apache.org/jira/browse/HBASE-13326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14378464#comment-14378464
 ] 

Andrey Stepachev commented on HBASE-13326:
------------------------------------------

Thats interesting, seems disabled regions looks like regions on dead servers.
Seems on disable lastAssignment not cleared, so we think that region was 
on dead server. But SSH will never called, because RS was cleanly shut down.

Very easy reproducible by following test
{code}
  @Test(timeout = 300000)
  public void testDisableTableAndRestart() throws Exception {
    final TableName tableName = TableName.valueOf("testDisableTableAndRestart");
    final MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
    final HBaseAdmin admin = TEST_UTIL.getHBaseAdmin();
    final HTableDescriptor desc = new HTableDescriptor(tableName);
    desc.addFamily(new HColumnDescriptor(FAMILYNAME));
    admin.createTable(desc);
    admin.disableTable(tableName);
    TEST_UTIL.waitTableDisabled(tableName.getName());

    TEST_UTIL.getHBaseCluster().shutdown();
    TEST_UTIL.getHBaseCluster().waitUntilShutDown();

    TEST_UTIL.restartHBaseCluster(1);

    admin.enableTable(tableName);
    TEST_UTIL.waitTableEnabled(tableName);
  }

{code}


> Disabled table can't be enabled after HBase is restarted
> --------------------------------------------------------
>
>                 Key: HBASE-13326
>                 URL: https://issues.apache.org/jira/browse/HBASE-13326
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Dima Spivak
>            Assignee: Andrey Stepachev
>            Priority: Blocker
>             Fix For: 1.0.1, 1.1.0
>
>
> The folks at Intel discovered a pretty nasty bug in 1.0 and 1.1 (but not 
> master). Steps to reproduce:
> 1. Create a table, any table.
> 2. Disable the table.
> 3. Restart HBase.
> 4. Try enabling the table.
> The table won't become enabled and the master web UI will indicate a 
> never-ending region in transition. Also worth noting is that [~mbertozzi] dug 
> in and noted that this isn't happening in the master branch.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to