hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihong Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6241) HBaseCluster interface for interacting with the cluster from system tests
Date Wed, 27 Jun 2012 18:49:44 GMT

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

Zhihong Ted Yu commented on HBASE-6241:

+          cluster.abortRegionServer(selected);
+          sleep(ONE_MIN);
+          cluster.startRegionServer(servers[selected].getHostname());
+          sleep(ONE_MIN);
Is there better way to detect the stop of region server has completed ?
+  public static enum ServiceType {
Should job/task tracker be in the enum as well ?
+  public abstract boolean signal(ServiceType service, String signal, String hostname) throws
Line length should be 100 chars or shorter.

For HBaseCluster.java, remove year in license.
+   * @return Name of master that just went down.
+   */
+  public abstract String waitOnMaster(final int serverNumber);
If no enum argument is planned to be added, the method can be renamed as waitOnMasterToStop().
+  public void restoreInitialState() throws IOException {
How about restoring to one of the ClusterStatus previously captured by getClusterStatus()
? (future enhancement)

I think getInitialClusterStatus() and getClusterStatus() can be unified into one method with
enum indicating the type of status.
+   * @return Index into List of {@link MiniHBaseCluster#getRegionServerThreads()}
+   * of HRS carrying .META.. Returns -1 if none found.
+   */
+  public abstract int getServerWith(byte[] regionName) throws IOException;
The return value isn't just for .META. server. Its javadoc, should be improved - considering
MiniHBaseCluster being a subclass of HBaseCluster.

More review comments to follow.
> HBaseCluster interface for interacting with the cluster from system tests 
> --------------------------------------------------------------------------
>                 Key: HBASE-6241
>                 URL: https://issues.apache.org/jira/browse/HBASE-6241
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>         Attachments: HBASE-6241_v0.2.patch
> We need to abstract away the cluster interactions for system tests running on actual
> MiniHBaseCluster and RealHBaseCluster should both implement this interface, and system
tests should work with both.
> I'll split Devaraj's patch in HBASE-6053 for the initial version. 

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