cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12813) NPE in auth for bootstrapping node
Date Fri, 11 Nov 2016 08:48:58 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656538#comment-15656538
] 

Alex Petrov commented on CASSANDRA-12813:
-----------------------------------------

I've created a follow-up patch (as 3.10 is not released yet, will move to the new issue if
we do not re-roll it):

|[2.2|https://github.com/ifesdjeen/cassandra/tree/12813-2.2-v2]|[utest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-2.2-v2-testall/]|[dtest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-2.2-v2-dtest/]|
|[3.0|https://github.com/ifesdjeen/cassandra/tree/12813-3.0-v2]|[utest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-3.0-v2-testall/]|[dtest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-3.0-v2-dtest/]|
|[3.X|https://github.com/ifesdjeen/cassandra/tree/12813-3.x-v2]|[utest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-3.x-v2-testall/]|[dtest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-3.x-v2-dtest/]|
|[trunk|https://github.com/ifesdjeen/cassandra/tree/12813-trunk-v2]|[utest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-trunk-v2-testall/]|[dtest|https://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-12813-trunk-v2-dtest/]|

I've added a [dtest patch|https://github.com/riptano/cassandra-dtest/pull/1381] as well. Without
the patch the last connection attempt with credentials will result into

{code}
NoHostAvailable: ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Failed
to authenticate to 127.0.0.1: Error from server: code=0000 [Server error] message="java.lang.RuntimeException:
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException"',)})
{code}

CI is currently pending.

> NPE in auth for bootstrapping node
> ----------------------------------
>
>                 Key: CASSANDRA-12813
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12813
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Charles Mims
>            Assignee: Alex Petrov
>             Fix For: 2.2.9, 3.0.10, 3.10
>
>
> {code}
> ERROR [SharedPool-Worker-1] 2016-10-19 21:40:25,991 Message.java:617 - Unexpected exception
during request; channel = [id: 0x15eb017f, /<public IP omitted>:40869 => /10.0.0.254:9042]
> java.lang.NullPointerException: null
> 	at org.apache.cassandra.auth.PasswordAuthenticator.doAuthenticate(PasswordAuthenticator.java:144)
~[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.auth.PasswordAuthenticator.authenticate(PasswordAuthenticator.java:86)
~[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.auth.PasswordAuthenticator.access$100(PasswordAuthenticator.java:54)
~[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.auth.PasswordAuthenticator$PlainTextSaslAuthenticator.getAuthenticatedUser(PasswordAuthenticator.java:182)
~[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.transport.messages.AuthResponse.execute(AuthResponse.java:78)
~[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:513)
[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:407)
[apache-cassandra-3.0.9.jar:3.0.9]
> 	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
[netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_101]
> 	at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164)
[apache-cassandra-3.0.9.jar:3.0.9]
> 	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-3.0.9.jar:3.0.9]
> 	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
> {code}
> I have a node that has been joining for around 24 hours.  My application is configured
with the IP address of the joining node in the list of nodes to connect to (ruby driver),
and I have been getting around 200 events of this NPE per hour.  I removed the IP of the joining
node from the list of nodes for my app to connect to and the errors stopped.



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

Mime
View raw message