Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9393200CB4 for ; Tue, 13 Jun 2017 05:03:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A7DA0160BDE; Tue, 13 Jun 2017 03:03:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EB505160BD9 for ; Tue, 13 Jun 2017 05:03:09 +0200 (CEST) Received: (qmail 11493 invoked by uid 500); 13 Jun 2017 03:03:08 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 11482 invoked by uid 99); 13 Jun 2017 03:03:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2017 03:03:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2B363C1471 for ; Tue, 13 Jun 2017 03:03:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id EKVgYfCzd8qd for ; Tue, 13 Jun 2017 03:03:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7C50C5FD3E for ; Tue, 13 Jun 2017 03:03:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BBEF8E0DAA for ; Tue, 13 Jun 2017 03:03:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D9B9721E14 for ; Tue, 13 Jun 2017 03:03:00 +0000 (UTC) Date: Tue, 13 Jun 2017 03:03:00 +0000 (UTC) From: "mck (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11381) Node running with join_ring=false and authentication can not serve requests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Jun 2017 03:03:10 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11381?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16047363#comment-16047363 ]=20 mck commented on CASSANDRA-11381: --------------------------------- {quote}one minor nit that can be fixed on commit: new CHANGES.txt entries s= hould go at the top of the list.{quote} I had no idea! :-) One of those tribal habits that one either notices or do= esn't=E2=80=A6 thanks for pointing it out. Will correct CHANGES.txt, and commit=E2=80=A6 > Node running with join_ring=3Dfalse and authentication can not serve requ= ests > -------------------------------------------------------------------------= -- > > Key: CASSANDRA-11381 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1138= 1 > Project: Cassandra > Issue Type: Bug > Reporter: mck > Assignee: mck > Fix For: 2.2.x, 3.0.x, 3.11.x, 4.x > > > Starting up a node with {{-Dcassandra.join_ring=3Dfalse}} in a cluster th= at has authentication configured, eg PasswordAuthenticator, won't be able t= o serve requests. This is because {{Auth.setup()}} never gets called during= the startup. > Without {{Auth.setup()}} having been called in {{StorageService}} clients= connecting to the node fail with the node throwing > {noformat} > java.lang.NullPointerException > at org.apache.cassandra.auth.PasswordAuthenticator.authenticate(P= asswordAuthenticator.java:119) > at org.apache.cassandra.thrift.CassandraServer.login(CassandraSer= ver.java:1471) > at org.apache.cassandra.thrift.Cassandra$Processor$login.getResul= t(Cassandra.java:3505) > at org.apache.cassandra.thrift.Cassandra$Processor$login.getResul= t(Cassandra.java:3489) > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java= :39) > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:3= 9) > at com.thinkaurelius.thrift.Message.invoke(Message.java:314) > at com.thinkaurelius.thrift.Message$Invocation.execute(Message.ja= va:90) > at com.thinkaurelius.thrift.TDisruptorServer$InvocationHandler.on= Event(TDisruptorServer.java:695) > at com.thinkaurelius.thrift.TDisruptorServer$InvocationHandler.on= Event(TDisruptorServer.java:689) > at com.lmax.disruptor.WorkProcessor.run(WorkProcessor.java:112) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > {noformat} > The exception thrown from the [code|https://github.com/apache/cassandra/b= lob/cassandra-2.0.16/src/java/org/apache/cassandra/auth/PasswordAuthenticat= or.java#L119] > {code} > ResultMessage.Rows rows =3D authenticateStatement.execute(QueryState.forI= nternalCalls(), new QueryOptions(consistencyForUser(username), > = Lists.newArrayList(ByteBufferUtil.bytes(username)))); > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org