cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Lockfort (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-8925) broadcast_rpc_address NPEs while using rpc_interface
Date Thu, 05 Mar 2015 20:03:39 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-8925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Lockfort updated CASSANDRA-8925:
--------------------------------------
    Attachment: cassandra-2.1.3-8925.patch

> broadcast_rpc_address NPEs while using rpc_interface 
> -----------------------------------------------------
>
>                 Key: CASSANDRA-8925
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8925
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Config
>            Reporter: Chris Lockfort
>            Assignee: Chris Lockfort
>             Fix For: 2.1.4
>
>         Attachments: cassandra-2.1.3-8925.patch
>
>
> Somewhat amusingly, it looks like my NPE on startup is the result of a copy-paste error
in:
> {code}
> [clockfort@clockfort cassandra]$ git log --stat 3e5edb82
> commit 3e5edb82c73b7b7c6e1d1e970fb764c3e3158da6
> Author: Ariel Weisberg <ariel.weisberg@datastax.com>
> Date:   Tue Jan 27 13:30:47 2015 +0100
>     rpc_interface and listen_interface generate NPE on startup when specified interface
doesn't exist
>     
>     Patch by Ariel Weisberg; reviewed by Robert Stupp for CASSANDRA-8677
>  src/java/org/apache/cassandra/config/DatabaseDescriptor.java | 46 +++++++++++++++++++++++-----------------------
>  1 file changed, 23 insertions(+), 23 deletions(-)
> {code}
> The log looks like:
> {code}
> INFO  18:51:13 DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
> INFO  18:51:13 Global memtable on-heap threshold is enabled at 2008MB
> INFO  18:51:13 Global memtable off-heap threshold is enabled at 2008MB
> ERROR 18:51:13 Fatal error during configuration loading
> java.lang.NullPointerException: null
>         at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:411)
~[apache-cassandra-2.1.3.jar:2.1.3]
>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:133)
~[apache-cassandra-2.1.3.jar:2.1.3]
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:110)
[apache-cassandra-2.1.3.jar:2.1.3]
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:465)
[apache-cassandra-2.1.3.jar:2.1.3]
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:554)
[apache-cassandra-2.1.3.jar:2.1.3]
> null
> Fatal error during configuration loading; unable to start. See log for stacktrace.
> {code}
> This is with a cassandra.yaml config snippet of:
> {code}
> start_rpc: true
> # rpc_address: localhost
> rpc_interface: eth0
> # RPC address to broadcast to drivers and other Cassandra nodes. This cannot
> # be set to 0.0.0.0. If left blank, this will be set to the value of
> # rpc_address. If rpc_address is set to 0.0.0.0, broadcast_rpc_address must
> # be set.
> # broadcast_rpc_address: 1.2.3.4
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message