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

HBase Review Board commented on HBASE-2993:
-------------------------------------------

Message from: "Todd Lipcon" <[email protected]>

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://review.cloudera.org/r/829/
-----------------------------------------------------------

Review request for hbase, stack and Jonathan Gray.


Summary
-------

This isn't really cleaned up, but wanted to gather opinions before I put in 
more effort. Does this kind of refactor seem good? Is the Guava "Service" class 
what we want to use or should we just write our own similar interface?


This addresses bug HBASE-2993.
    http://issues.apache.org/jira/browse/HBASE-2993


Diffs
-----

  src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java bc0a62f 
  src/main/java/org/apache/hadoop/hbase/master/HMaster.java bc21a1e 
  src/main/java/org/apache/hadoop/hbase/master/HMasterCommandLine.java c675db9 
  src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java bba7b67 
  src/main/java/org/apache/hadoop/hbase/service/ServiceUtils.java PRE-CREATION 
  src/main/java/org/apache/hadoop/hbase/service/ServiceWithMainThread.java 
PRE-CREATION 
  src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java 4a9f1c3 
  src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java b7abb51 
  src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java 9cc1168 
  src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java 9407c1e 
  src/test/java/org/apache/hadoop/hbase/TestHBaseTestingUtility.java 1cd88d3 
  src/test/java/org/apache/hadoop/hbase/TestInfoServers.java daffe02 
  src/test/java/org/apache/hadoop/hbase/TestRegionRebalancing.java 6908111 
  
src/test/java/org/apache/hadoop/hbase/master/TestKillingServersFromMaster.java 
f5fd243 
  src/test/java/org/apache/hadoop/hbase/master/TestZKBasedOpenCloseRegion.java 
a172e2c 
  
src/test/java/org/apache/hadoop/hbase/regionserver/DisabledTestRegionServerExit.java
 5b8b464 
  src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestLogRolling.java 
287f1fb 

Diff: http://review.cloudera.org/r/829/diff


Testing
-------

Tried to run unit tests, but plenty failed. I think they're failing on trunk, 
too, though. Will do more testing and another round of review before I actually 
claim this is ready to commit.


Thanks,

Todd




> Refactor servers to use a common lifecycle interface
> ----------------------------------------------------
>
>                 Key: HBASE-2993
>                 URL: https://issues.apache.org/jira/browse/HBASE-2993
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, regionserver
>    Affects Versions: 0.90.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>
> In current trunk, the region server is a Runnable and the Master is a thread. 
> We have all kinds of weird wrappers like JVMClusterUtil to try to work around 
> this. It would be nice if they both implemented the same interface - 
> LocalHBaseCluster and the MiniCluster would be a lot easier to understand as 
> well, and we could share some more code between them.

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

Reply via email to