hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jiraposter@reviews.apache.org (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5328) Small changes to Master to make it more testable
Date Thu, 22 Mar 2012 03:39:46 GMT

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

jiraposter@reviews.apache.org commented on HBASE-5328:

bq.  On 2012-03-22 00:25:30, jmhsieh wrote:
bq.  >

Let me add addendum to address two of your feedbacks below Jon.

bq.  On 2012-03-22 00:25:30, jmhsieh wrote:
bq.  > src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java, line 165
bq.  > <https://reviews.apache.org/r/4436/diff/1/?file=94300#file94300line165>
bq.  >
bq.  >     was: remove all instances of "TODO Auto-generated method stub"?  
bq.  >     
bq.  >     Replace with a comment to say this should be overridden (or throw some sort
of RuntimeException?)

Its a mock.  I want default, basic behaviors. 

- Michael

This is an automatically generated e-mail. To reply, visit:

On 2012-03-21 23:18:23, Michael Stack wrote:
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4436/
bq.  -----------------------------------------------------------
bq.  (Updated 2012-03-21 23:18:23)
bq.  Review request for hbase.
bq.  Summary
bq.  -------
bq.  M src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
bq.    Make this class public so its waitForRoot(long) can be used by HMaster.
bq.    Remove the stalling waitForRoot no arg.
bq.  M src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
bq.    Javadoc.  Add check if stopped flag cycling waiting on assignment.
bq.  M src/main/java/org/apache/hadoop/hbase/master/HMaster.java
bq.    Moved check if schema change flag out to a method rather than
bq.    have it on tail of constructor.
bq.    Moved other initialization stuff like get of assignment manager
bq.    and server manager out into methods so could be intercepted by
bq.    tests and mocking.
bq.    Change how we wait on root so we sleep 100ms at a time and always
bq.    check stopped flag rather than block for ever.
bq.    Added more checking if stopped flag.
bq.    Added flag for when rpc server is up, mostly for tests.
bq.  M src/main/java/org/apache/hadoop/hbase/zookeeper/RootRegionTracker.java
bq.    Unused import.
bq.  M src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
bq.    Comment.
bq.  M src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java
bq.    Remove unused code.
bq.  M src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java
bq.    Change how we wait on root.  DOn't use removed method.
bq.  A src/test/java/org/apache/hadoop/hbase/master/MockRegionS
bq.  This addresses bug hbase-5328.
bq.      https://issues.apache.org/jira/browse/hbase-5328
bq.  Diffs
bq.  -----
bq.    src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java beaff97 
bq.    src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java d47ef10 
bq.    src/main/java/org/apache/hadoop/hbase/master/HMaster.java cd1755f 
bq.    src/main/java/org/apache/hadoop/hbase/zookeeper/RootRegionTracker.java a929e31 
bq.    src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java 7f97b01 
bq.    src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java 79b6604 
bq.    src/test/java/org/apache/hadoop/hbase/catalog/TestCatalogTracker.java 90fa45a 
bq.    src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java PRE-CREATION 
bq.    src/test/java/org/apache/hadoop/hbase/master/Mocking.java PRE-CREATION 
bq.    src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManager.java 841649a 
bq.    src/test/java/org/apache/hadoop/hbase/master/TestMasterNoCluster.java PRE-CREATION

bq.  Diff: https://reviews.apache.org/r/4436/diff
bq.  Testing
bq.  -------
bq.  Thanks,
bq.  Michael

> Small changes to Master to make it more testable
> ------------------------------------------------
>                 Key: HBASE-5328
>                 URL: https://issues.apache.org/jira/browse/HBASE-5328
>             Project: HBase
>          Issue Type: Task
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.96.0
>         Attachments: 5328.txt, 5328v12.txt, 5328v2.txt, 5328v2.txt, 5328v3.txt, 5328v4.txt,
> Here are some small changes in Master that make it more testable.  Included tests stand
up a Master and then fake it into thinking that three regionservers are registering making
master assign root and meta, etc.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message