You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2011/09/21 18:19:09 UTC

[jira] [Created] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

TestReplication failing up on builds.a.o because already running zk with new format root servername
---------------------------------------------------------------------------------------------------

                 Key: HBASE-4453
                 URL: https://issues.apache.org/jira/browse/HBASE-4453
             Project: HBase
          Issue Type: Bug
            Reporter: stack


When the test runs, I see this at the start of the output:

{code}
2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
{code}

So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:

{code}
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    conf1 = HBaseConfiguration.create();
    conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
    // smaller block size and capacity to trigger more operations
    // and test them
    conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
    conf1.setInt("replication.source.size.capacity", 1024);
    conf1.setLong("replication.source.sleepforretries", 100);
    conf1.setInt("hbase.regionserver.maxlogs", 10);
    conf1.setLong("hbase.master.logcleaner.ttl", 10);
    conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
    conf1.setBoolean("dfs.support.append", true);
    conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);

    utility1 = new HBaseTestingUtility(conf1);
    utility1.startMiniZKCluster();
....
{code}

and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Commented] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

ramkrishna.s.vasudevan commented on HBASE-4453:
-----------------------------------------------

Thanks Stack for fixing this. :)

> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.90.5
>
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Commented] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

Hudson commented on HBASE-4453:
-------------------------------

Integrated in HBase-0.92 #7 (See [https://builds.apache.org/job/HBase-0.92/7/])
    HBASE-4453 TestReplication failing up on builds.a.o because already running zk with new format root servername

stack : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/TestHBaseTestingUtility.java
* /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/replication/TestReplication.java


> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.90.5
>
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Updated] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

stack updated HBASE-4453:
-------------------------

    Attachment: 4453.txt

Tests have been failing on 0.90 for a while.  Looks like there is a zk hanging out w/ 0.92/trunk scribble in it.  This patch attempts fixing TestHBaseTestingUtility.testMutliClusters and TestReplication so they point at the zk ensemble they started rather than default.

> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Commented] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

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

If it works, works for me.

> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Commented] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

Hudson commented on HBASE-4453:
-------------------------------

Integrated in HBase-TRUNK #2240 (See [https://builds.apache.org/job/HBase-TRUNK/2240/])
    HBASE-4453 TestReplication failing up on builds.a.o because already running zk with new format root servername

stack : 
Files : 
* /hbase/trunk/CHANGES.txt
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestHBaseTestingUtility.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/replication/TestReplication.java


> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.90.5
>
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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

        

[jira] [Resolved] (HBASE-4453) TestReplication failing up on builds.a.o because already running zk with new format root servername

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

stack resolved HBASE-4453.
--------------------------

       Resolution: Fixed
    Fix Version/s: 0.90.5
         Assignee: stack
     Hadoop Flags: [Reviewed]

Committed to the two branches and trunk.

> TestReplication failing up on builds.a.o because already running zk with new format root servername
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4453
>                 URL: https://issues.apache.org/jira/browse/HBASE-4453
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.90.5
>
>         Attachments: 4453.txt
>
>
> When the test runs, I see this at the start of the output:
> {code}
> 2011-09-21 04:56:35,282 INFO  [main] zookeeper.MiniZooKeeperCluster(122): Failed binding ZK Server to client port: 21818
> 2011-09-21 04:56:35,344 INFO  [main] zookeeper.MiniZooKeeperCluster(136): Started MiniZK Server on client port: 21819
> {code}
> So, I think what is going on is that the test is connecting to the wrong zk ensemble because it does this on setup:
> {code}
>   @BeforeClass
>   public static void setUpBeforeClass() throws Exception {
>     conf1 = HBaseConfiguration.create();
>     conf1.set(HConstants.ZOOKEEPER_ZNODE_PARENT, "/1");
>     // smaller block size and capacity to trigger more operations
>     // and test them
>     conf1.setInt("hbase.regionserver.hlog.blocksize", 1024*20);
>     conf1.setInt("replication.source.size.capacity", 1024);
>     conf1.setLong("replication.source.sleepforretries", 100);
>     conf1.setInt("hbase.regionserver.maxlogs", 10);
>     conf1.setLong("hbase.master.logcleaner.ttl", 10);
>     conf1.setBoolean(HConstants.REPLICATION_ENABLE_KEY, true);
>     conf1.setBoolean("dfs.support.append", true);
>     conf1.setLong(HConstants.THREAD_WAKE_FREQUENCY, 100);
>     utility1 = new HBaseTestingUtility(conf1);
>     utility1.startMiniZKCluster();
> ....
> {code}
> and we refer to conf1 subsequently rather than to HTU.getConfiguration.

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