[
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