You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Daniel Cryans (Created) (JIRA)" <ji...@apache.org> on 2012/03/15 22:56:38 UTC

[jira] [Created] (HBASE-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

[replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
--------------------------------------------------------------------------------------

                 Key: HBASE-5586
                 URL: https://issues.apache.org/jira/browse/HBASE-5586
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.90.5
            Reporter: Jean-Daniel Cryans
             Fix For: 0.90.7, 0.92.2, 0.94.0


This is from 0.92.1-ish:

{noformat}
2012-03-15 09:52:16,589 ERROR
org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
Unexpected exception in ReplicationSource, currentPath=null
java.lang.NullPointerException
       at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
       at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
       at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
{noformat}

I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans commented on HBASE-5586:
-------------------------------------------

Yep I have a tested patch but no unit tests. I'm trying to get HBASE-3134 tested here first.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hudson commented on HBASE-5586:
-------------------------------

Integrated in HBase-TRUNK-security #146 (See [https://builds.apache.org/job/HBase-TRUNK-security/146/])
    HBASE-5586  [replication] NPE in ReplicationSource when creating a stream
               to an inexistent cluster (Revision 1303945)

     Result = SUCCESS
jdcryans : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/ReplicationZookeeper.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationZookeeper.java

                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans updated HBASE-5586:
--------------------------------------

    Attachment: HBASE-5586.java

One line fix plus a whole new test. I'd like to add more testing in there eventually for other stuff. This is against 0.92, I'll have to port it to 0.94 and beyond.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hudson commented on HBASE-5586:
-------------------------------

Integrated in HBase-0.94 #46 (See [https://builds.apache.org/job/HBase-0.94/46/])
    HBASE-5586  [replication] NPE in ReplicationSource when creating a stream
               to an inexistent cluster (Revision 1303944)

     Result = SUCCESS
jdcryans : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/ReplicationZookeeper.java
* /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationZookeeper.java

                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans updated HBASE-5586:
--------------------------------------

    Attachment: HBASE-5586-trunk.patch

Thanks for the heavy lifting Lars.

Here's a patch for trunk, I set the test to Medium since it uses a ZK cluster, added a teardown, and a missing license.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hudson commented on HBASE-5586:
-------------------------------

Integrated in HBase-TRUNK #2693 (See [https://builds.apache.org/job/HBase-TRUNK/2693/])
    HBASE-5586  [replication] NPE in ReplicationSource when creating a stream
               to an inexistent cluster (Revision 1303945)

     Result = SUCCESS
jdcryans : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/ReplicationZookeeper.java
* /hbase/trunk/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationZookeeper.java

                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans updated HBASE-5586:
--------------------------------------

    Attachment: HBASE-5586.java

One line fix plus a whole new test. I'd like to add more testing in there eventually for other stuff. This is against 0.92, I'll have to port it to 0.94 and beyond.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Lars Hofhansl commented on HBASE-5586:
--------------------------------------

@J-D: Are you planning a fix for 0.94?
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans commented on HBASE-5586:
-------------------------------------------

bq. return Collections.emptyList() instead?

But then it won't be a one liner as I'll have to refactor the other lines like that! :)

It would probably be better to use that yeah, and more readable.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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] [Assigned] (HBASE-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans reassigned HBASE-5586:
-----------------------------------------

    Assignee: Jean-Daniel Cryans
    
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jean-Daniel Cryans updated HBASE-5586:
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.90.7)
                   0.96.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Committed to 0.92, 0.94, and 0.96. I skipped 0.90, should be easy enough to backport should anyone really need it (my guess is it won't be).

Thanks for the review Lars.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Lars Hofhansl commented on HBASE-5586:
--------------------------------------

Yeah, I spent the whole night on various iterations of this patch :)

+1

                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Lars Hofhansl commented on HBASE-5586:
--------------------------------------

{code}
-      return null;
+      return new ArrayList<ServerName>(0);
{code}
return Collections.emptyList() instead?
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Lars Hofhansl updated HBASE-5586:
---------------------------------

    Attachment: 5586-v2.txt

Patch that does this :)
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: 5586-v2.txt, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Jonathan Hsieh updated HBASE-5586:
----------------------------------

    Component/s: replication
    
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>          Components: replication
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Lars Hofhansl updated HBASE-5586:
---------------------------------

    Status: Patch Available  (was: Open)
    
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: 5586-v2.txt, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hudson commented on HBASE-5586:
-------------------------------

Integrated in HBase-0.92 #335 (See [https://builds.apache.org/job/HBase-0.92/335/])
    HBASE-5586  [replication] NPE in ReplicationSource when creating a stream
               to an inexistent cluster (Revision 1303943)

     Result = SUCCESS
jdcryans : 
Files : 
* /hbase/branches/0.92/CHANGES.txt
* /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/replication/ReplicationZookeeper.java
* /hbase/branches/0.92/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationZookeeper.java

                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hadoop QA commented on HBASE-5586:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12519471/HBASE-5586-trunk.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 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 2 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 passed unit tests in .

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

This message is automatically generated.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.92.2, 0.94.0, 0.96.0
>
>         Attachments: 5586-v2.txt, HBASE-5586-trunk.patch, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

--
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-5586) [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster

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

Hadoop QA commented on HBASE-5586:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12519453/5586-v2.txt
  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 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 2 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.mapreduce.TestImportTsv
                  org.apache.hadoop.hbase.mapred.TestTableMapReduce
                  org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat

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

This message is automatically generated.
                
> [replication] NPE in ReplicationSource when creating a stream to an inexistent cluster
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-5586
>                 URL: https://issues.apache.org/jira/browse/HBASE-5586
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.5
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.90.7, 0.92.2, 0.94.0
>
>         Attachments: 5586-v2.txt, HBASE-5586.java, HBASE-5586.java
>
>
> This is from 0.92.1-ish:
> {noformat}
> 2012-03-15 09:52:16,589 ERROR
> org.apache.hadoop.hbase.replication.regionserver.ReplicationSource:
> Unexpected exception in ReplicationSource, currentPath=null
> java.lang.NullPointerException
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.chooseSinks(ReplicationSource.java:223)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.connectToPeers(ReplicationSource.java:442)
>        at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:246)
> {noformat}
> I wanted to add a replication stream to a cluster that wasn't existing yet so that the logs would be buffered until then. This should just be treated as if there was no region servers.

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