You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "nkeywal (JIRA)" <ji...@apache.org> on 2012/05/11 21:50:50 UTC

[jira] [Created] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

nkeywal created HBASE-5992:
------------------------------

             Summary: Generalization of region move implementation + manage draining servers in bulk assign
                 Key: HBASE-5992
                 URL: https://issues.apache.org/jira/browse/HBASE-5992
             Project: HBase
          Issue Type: Bug
          Components: master, regionserver
    Affects Versions: 0.96.0
            Reporter: nkeywal
            Assignee: nkeywal
            Priority: Minor


The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
 - to benefit from the improvement in HBASE-5877
 - as a side effect to have the coprocessors calls when the destination server is not specified
 
This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hadoop QA commented on HBASE-5992:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12526647/5992.v11.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 6 new or modified tests.

    +1 hadoop23.  The patch compiles against the hadoop 0.23.x profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 31 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
                       org.apache.hadoop.hbase.master.TestSplitLogManager

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1863//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1863//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1863//console

This message is automatically generated.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Status: Patch Available  (was: Open)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hadoop QA commented on HBASE-5992:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12526565/5992.v2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 hadoop23.  The patch compiles against the hadoop 0.23.x profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
                       org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster
                  org.apache.hadoop.hbase.TestDrainingServer

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1851//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1851//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1851//console

This message is automatically generated.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Status: Open  (was: Patch Available)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hudson commented on HBASE-5992:
-------------------------------

Integrated in HBase-TRUNK #2881 (See [https://builds.apache.org/job/HBase-TRUNK/2881/])
    HBASE-5992 Generalization of region move implementation + manage draining servers in bulk assign (N Keywal) (Revision 1337641)

     Result = SUCCESS
tedyu : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/handler/CreateTableHandler.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestDrainingServer.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManager.java

                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Status: Patch Available  (was: Open)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Status: Patch Available  (was: Open)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Zhihong Yu updated HBASE-5992:
------------------------------

    Attachment: 5992.v5.patch

Re-attaching patch v5.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal commented on HBASE-5992:
--------------------------------

It's org.apache.hadoop.hbase.TestDrainingServer.
I fixed the issue, I'm retesting before uploading the patch.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

stack commented on HBASE-5992:
------------------------------

FYI, you don't need to change the style here:

{code}
-      if (rst.isAlive()) liveServers.add(rst);
-      else LOG.info("Not alive " + rst.getName());
+      if (rst.isAlive()){
+        liveServers.add(rst);
+      }
{code}

Its ok having no curlies if statement fits one line.

In hbase code base, we have spaces around operators... i.e. this needs spaces {code} "+encodedName+" {code}

The refactoring that makes results int this method, {code}+    final List<ServerName> destServers = serverManager.createDestinationServersList(serverToExclude);{code} looks good.

Ditto for this change {code}+    this.serverManager.removeDeadNotExpiredServers(servers);{code} moving 'server' state out of AM and up into SM where it belongs.

Ugh.  There was a bunch of dup'd code that this patch removes.

createDestinationServersList and removeDeadNotExpiredServers do not need to be public methods (oh, hang on, createDestinationServersList needs to be so accessible from handlers.... does removeDeadNotExpiredServers also need to be?)

What does the big refactoring of TestDrainingServer do?

Patch looks good to me.











                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hudson commented on HBASE-5992:
-------------------------------

Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #3 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/3/])
    HBASE-5992 Generalization of region move implementation + manage draining servers in bulk assign (N Keywal) (Revision 1337641)

     Result = FAILURE
tedyu : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/handler/CreateTableHandler.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/TestDrainingServer.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestAssignmentManager.java

                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal commented on HBASE-5992:
--------------------------------

v5 with Stack's and Ted's comments taken into account. Thanks.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Zhihong Yu commented on HBASE-5992:
-----------------------------------

{code}
-    this.servers.entrySet();
+    this.servers.entrySet();   // todo: ?? very smart or copy paste error
{code}
Can we remove the above statement ?

In HMaster.java:
{code}
+        if (this.cpHost.preMove( hri , rp.getSource(), rp.getDestination())) {
{code}
Please remove the spaces around hri - minor.
{code}
+   * Creates a list of possible destination for a region. It contains the online servers, but not
{code}
'destination' -> 'destinations'
{code}
+  public List<ServerName> createDestinationServersList(){
{code}
Please add javadoc for the method above.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Attachment: 5992.v2.patch
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal commented on HBASE-5992:
--------------------------------

bq. What does the big refactoring of TestDrainingServer do?
Hopefully it's now non flaky. Before both the test and the core code were a little bit flaky! :-).

bq. In hbase code base, we have spaces around operators... i.e. this needs spaces 
Done.

bq. does removeDeadNotExpiredServers also need to be?
It does compile if it's package protected. I didn't dare doing it in the first patch to maintain the existing interface, but since you're asking :-). Done.

TestDrainingServer failed for an unrelated reason in its setup. But well. Fixed (hopefully, I actually don't really reproduce the issue locally) as well in the next patch.

                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Zhihong Yu updated HBASE-5992:
------------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Attachment: 5992.v11.patch
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hadoop QA commented on HBASE-5992:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12526617/5992.v5.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 hadoop23.  The patch compiles against the hadoop 0.23.x profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 27 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
     

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1858//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1858//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1858//console

This message is automatically generated.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Lars Hofhansl updated HBASE-5992:
---------------------------------

    Fix Version/s: 0.96.0
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Attachment: 5992.v5.patch
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Zhihong Yu commented on HBASE-5992:
-----------------------------------

I looped TestDrainingServer 4 times.

TestSplitLogManager passes locally on MacBook.

Integrated to trunk.

Thanks for the patch, N.

Thanks for the review, Stack.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v11.patch, 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Hadoop QA commented on HBASE-5992:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12526590/5992.v5.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 hadoop23.  The patch compiles against the hadoop 0.23.x profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 27 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
     

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1854//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1854//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1854//console

This message is automatically generated.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Updated] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

nkeywal updated HBASE-5992:
---------------------------

    Status: Open  (was: Patch Available)
    
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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

        

[jira] [Commented] (HBASE-5992) Generalization of region move implementation + manage draining servers in bulk assign

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

Zhihong Yu commented on HBASE-5992:
-----------------------------------

Still cannot find the hanging test from Jenkins console.
I am running test suite on Linux.

If there is no hanging test there, will integrate the patch.
                
> Generalization of region move implementation + manage draining servers in bulk assign
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-5992
>                 URL: https://issues.apache.org/jira/browse/HBASE-5992
>             Project: HBase
>          Issue Type: Bug
>          Components: master, regionserver
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>            Priority: Minor
>         Attachments: 5992.v2.patch, 5992.v5.patch, 5992.v5.patch
>
>
> The region move implementation now has now a similar behavior whatever the destination server is specified or not. This allows:
>  - to benefit from the improvement in HBASE-5877
>  - as a side effect to have the coprocessors calls when the destination server is not specified
>  
> This includes various fixes around draining servers. Draining servers were not excluded during a bulk assign. This is now fixed.

--
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