hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1636) disable and drop of table is flakey still
Date Tue, 22 Dec 2009 01:18:18 GMT

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

Jean-Daniel Cryans commented on HBASE-1636:
-------------------------------------------

I'm able to manufacture duplicate assignment messages with this unit test added to TestAdmin:

{code}

@BeforeClass
  public static void setUpBeforeClass() throws Exception {
    TEST_UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 250);
    TEST_UTIL.getConfiguration().setInt("hbase.client.pause", 250);
    TEST_UTIL.startMiniCluster(3);
  }
...
  @Test
  public void testHundredsOfTable() throws IOException{
    final int times = 125;
    HColumnDescriptor fam1 = new HColumnDescriptor("fam1");
    fam1.setCompressionType(Compression.Algorithm.GZ);
    HColumnDescriptor fam2 = new HColumnDescriptor("fam2");
    fam2.setCompressionType(Compression.Algorithm.GZ);
    HColumnDescriptor fam3 = new HColumnDescriptor("fam3");
    fam3.setCompressionType(Compression.Algorithm.GZ);

    for(int i = 0; i < times; i++) {
      HTableDescriptor htd = new HTableDescriptor("table"+i);
      htd.addFamily(fam1);
      htd.addFamily(fam2);
      htd.addFamily(fam3);
      this.admin.createTable(htd);
    }

    for(int i = 0; i < times; i++) {
      this.admin.disableTable("table"+i);
      this.admin.deleteTable("table"+i);
    }

    for(int i = 0; i < times; i++) {
      HTableDescriptor htd = new HTableDescriptor("table"+i);
      htd.addFamily(fam1);
      htd.addFamily(fam2);
      htd.addFamily(fam3);
      this.admin.createTable(htd);
    }
  }
{code}

It often fails on disabling.

> disable and drop of table is flakey still
> -----------------------------------------
>
>                 Key: HBASE-1636
>                 URL: https://issues.apache.org/jira/browse/HBASE-1636
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.21.0
>
>         Attachments: hbase-hbase-master-ip-10-212-65-235.log, hbase-hbase-regionserver-ip-10-212-66-112.log
>
>
> Just now, cheddar up on IRC had table of 2k regions.  A disable and drop gave him 2k
rows in meta of historian info.  He couldn't progress.  Had to make below script for him:
> {code}
> meta = HTable.new(".META.")
> historian = "historian:"
> scanner = meta.getScanner([historian].to_java(java.lang.String))
> while (result = scanner.next())
>       meta.deleteAll(result.getRow())
> end
> exit 0
> {code}
> This flakey disable/enable/drop is frustrating users.  Need to fix.

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


Mime
View raw message