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

[email protected] commented on HBASE-5328:
------------------------------------------------------



bq.  On 2012-03-22 00:25:30, jmhsieh wrote:
bq.  > src/main/java/org/apache/hadoop/hbase/master/HMaster.java, line 493
bq.  > <https://reviews.apache.org/r/4436/diff/1/?file=94295#file94295line493>
bq.  >
bq.  >     nit: comment is wrong for change.

I fixed this in an addendum.


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?)
bq.  
bq.  Michael Stack wrote:
bq.      Its a mock.  I want default, basic behaviors.
bq.  
bq.  jmhsieh wrote:
bq.      I'm not going to push too hard here, but leaving the auto gen stub 
generally tells me "incomplete code" instead of telling "basic behavior" or 
"not default behavior".

I looked at this this morning again since it reviewers balk.   I tried to come 
up w/ text to put in place of what was auto-generated but anything I conjured 
seemed inauthentic compared to what the machine generated so I am going to just 
leave it (It shouldn't be overridden, at least not currently, not until we need 
the mock to do more, and neither do I want to throw runtime exceptions, etc). 


bq.  On 2012-03-22 00:25:30, jmhsieh wrote:
bq.  > src/test/java/org/apache/hadoop/hbase/master/TestMasterNoCluster.java, 
line 114
bq.  > <https://reviews.apache.org/r/4436/diff/1/?file=94303#file94303line114>
bq.  >
bq.  >     make these joins have a timeout (prevent hanging tests?)

Done in an addendum.


- Michael


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4436/#review6188
-----------------------------------------------------------


On 2012-03-21 23:18:23, Michael Stack wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4436/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-03-21 23:18:23)
bq.  
bq.  
bq.  Review request for hbase.
bq.  
bq.  
bq.  Summary
bq.  -------
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.  
bq.  
bq.  This addresses bug hbase-5328.
bq.      https://issues.apache.org/jira/browse/hbase-5328
bq.  
bq.  
bq.  Diffs
bq.  -----
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.  
bq.  Diff: https://reviews.apache.org/r/4436/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Michael
bq.  
bq.


                
> 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-addendum.txt, 5328.txt, 5328v12.txt, 5328v2.txt, 
> 5328v2.txt, 5328v3.txt, 5328v4.txt, 5328v8.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

        

Reply via email to