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 32635200CE6 for ; Wed, 16 Aug 2017 18:27:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 30959166A9B; Wed, 16 Aug 2017 16:27:07 +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 50906166AA5 for ; Wed, 16 Aug 2017 18:27:06 +0200 (CEST) Received: (qmail 62732 invoked by uid 500); 16 Aug 2017 16:27:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 62714 invoked by uid 99); 16 Aug 2017 16:27:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2017 16:27:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D04831A1852 for ; Wed, 16 Aug 2017 16:27:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1XKDRZHOBqvc for ; Wed, 16 Aug 2017 16:27:02 +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 C64CC5F5F7 for ; Wed, 16 Aug 2017 16:27:01 +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 2E88CE0C0D for ; Wed, 16 Aug 2017 16:27:01 +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 551A62537E for ; Wed, 16 Aug 2017 16:27:00 +0000 (UTC) Date: Wed, 16 Aug 2017 16:27:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13768) auth_test.py dtest fails intermittently due to thread race condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Aug 2017 16:27:07 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13768?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16129034#comment-16129034 ]=20 ASF GitHub Bot commented on CASSANDRA-13768: -------------------------------------------- GitHub user jaydeepkumar1984 opened a pull request: https://github.com/apache/cassandra-dtest/pull/5 auth_test.py dtest fails intermittently due to thread race condition https://issues.apache.org/jira/browse/CASSANDRA-13768 You can merge this pull request into a Git repository by running: $ git pull https://github.com/jaydeepkumar1984/cassandra-dtest 13768-dt= est Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cassandra-dtest/pull/5.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5 =20 ---- commit 9df85bc2df778bed6bf83c5bd920ff57e446cb5e Author: jaydeepkumar1984 Date: 2017-08-16T16:24:29Z auth_test.py dtest fails intermittently due to thread race condition ---- > auth_test.py dtest fails intermittently due to thread race condition > -------------------------------------------------------------------- > > Key: CASSANDRA-13768 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1376= 8 > Project: Cassandra > Issue Type: Bug > Components: Testing > Reporter: Jaydeepkumar Chovatia > Priority: Minor > > *Root cause:* dtest {{auth_test.TestAuth.system_auth_ks_is_alterable_test= }} is failing intermittently and it is due to race condition between Pytho= n driver continuously sending cql query (by thread t1) to know status of cl= uster, and {{ccm}} is stopping the nodes (by thread t2) > *Failure details:* http://cassci.datastax.com/view/cassandra-3.0/job/cass= andra-3.0_dtest/lastCompletedBuild/testReport/auth_test/TestAuth/system_aut= h_ks_is_alterable_test/ > *Solution:* Ignore {{UnavailableException}} for this particular test as i= t is not going to harm test case in anyway. > Please find snippet of C* log when test fails: > {{INFO [InternalResponseStage:8] 2017-08-15 10:44:13,213 RepairRunnable.j= ava:337 - Repair command #2 finished in 0 seconds INFO [GossipStage:1] 2017= -08-15 10:44:13,601 Gossiper.java:1019 - InetAddress /127.0.0.1 is now DOWN= INFO [HANDSHAKE-/127.0.0.1] 2017-08-15 10:44:13,715 OutboundTcpConnection.= java:564 - Handshaking version with /127.0.0.1 INFO [SharedPool-Worker-2] 2= 017-08-15 10:44:16,712 Message.java:512 - Received: OPTIONS, v=3D4 INFO [Sh= aredPool-Worker-2] 2017-08-15 10:44:16,713 Message.java:512 - Received: STA= RTUP {CQL_VERSION=3D3.4.0, COMPRESSION=3Dsnappy}, v=3D4 INFO [SharedPool-Wo= rker-2] 2017-08-15 10:44:16,719 Message.java:512 - Received: org.apache.cas= sandra.transport.messages.AuthResponse@4474c719, v=3D4 INFO [GossipStage:1]= 2017-08-15 10:44:16,723 Gossiper.java:1019 - InetAddress /127.0.0.3 is now= DOWN ERROR [SharedPool-Worker-2] 2017-08-15 10:44:16,822 Message.java:621 = - Unexpected exception during request; channel =3D [id: 0xffc2fc9a, L:/127.= 0.0.2:9042 - R:/127.0.0.2:51369] java.lang.RuntimeException: org.apache.cas= sandra.exceptions.UnavailableException: Cannot achieve consistency level QU= ORUM at org.apache.cassandra.auth.CassandraRoleManager.getRole(CassandraRol= eManager.java:516) ~[main/:na] at org.apache.cassandra.auth.CassandraRoleMa= nager.canLogin(CassandraRoleManager.java:310) ~[main/:na] at org.apache.cas= sandra.service.ClientState.login(ClientState.java:270) ~[main/:na] at org.a= pache.cassandra.transport.messages.AuthResponse.execute(AuthResponse.java:7= 9) ~[main/:na] at org.apache.cassandra.transport.Message$Dispatcher.channel= Read0(Message.java:513) [main/:na] at org.apache.cassandra.transport.Messag= e$Dispatcher.channelRead0(Message.java:407) [main/:na] at io.netty.channel.= SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:10= 5) [netty-all-4.0.44.Final.jar:4.0.44.Final] at io.netty.channel.AbstractCh= annelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:35= 7) [netty-all-4.0.44.Final.jar:4.0.44.Final] at io.netty.channel.AbstractCh= annelHandlerContext.access$600(AbstractChannelHandlerContext.java:35) [nett= y-all-4.0.44.Final.jar:4.0.44.Final] at io.netty.channel.AbstractChannelHan= dlerContext$7.run(AbstractChannelHandlerContext.java:348) [netty-all-4.0.44= .Final.jar:4.0.44.Final] at java.util.concurrent.Executors$RunnableAdapter.= call(Executors.java:511) [na:1.8.0_144] at org.apache.cassandra.concurrent.= AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutor= Service.java:164) [main/:na] at org.apache.cassandra.concurrent.SEPWorker.r= un(SEPWorker.java:105) [main/:na] at java.lang.Thread.run(Thread.java:748) = [na:1.8.0_144] Caused by: org.apache.cassandra.exceptions.UnavailableExcept= ion: Cannot achieve consistency level QUORUM at org.apache.cassandra.db.Con= sistencyLevel.assureSufficientLiveNodes(ConsistencyLevel.java:334) ~[main/:= na] at org.apache.cassandra.service.AbstractReadExecutor.getReadExecutor(Ab= stractReadExecutor.java:162) ~[main/:na] at org.apache.cassandra.service.St= orageProxy$SinglePartitionReadLifecycle.(StorageProxy.java:1733) ~[ma= in/:na] at org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy= .java:1696) ~[main/:na] at org.apache.cassandra.service.StorageProxy.readRe= gular(StorageProxy.java:1640) ~[main/:na] at org.apache.cassandra.service.S= torageProxy.read(StorageProxy.java:1544) ~[main/:na] at org.apache.cassandr= a.db.SinglePartitionReadCommand$Group.execute(SinglePartitionReadCommand.ja= va:965) ~[main/:na] at org.apache.cassandra.cql3.statements.SelectStatement= .execute(SelectStatement.java:263) ~[main/:na] at org.apache.cassandra.cql3= .statements.SelectStatement.execute(SelectStatement.java:224) ~[main/:na] a= t org.apache.cassandra.auth.CassandraRoleManager.getRoleFromTable(Cassandra= RoleManager.java:524) ~[main/:na] at org.apache.cassandra.auth.CassandraRol= eManager.getRole(CassandraRoleManager.java:506) ~[main/:na] ... 13 common f= rames omitted INFO [HANDSHAKE-/127.0.0.3] 2017-08-15 10:44:17,678 OutboundT= cpConnection.java:564 - Handshaking version with /127.0.0.3 INFO [SharedPoo= l-Worker-1] 2017-08-15 10:44:17,927 Message.java:512 - Received: OPTIONS, v= =3D4 INFO [SharedPool-Worker-1] 2017-08-15 10:44:17,928 Message.java:512 - = Received: STARTUP {CQL_VERSION=3D3.4.0, COMPRESSION=3Dsnappy}, v=3D4 INFO [= SharedPool-Worker-2] 2017-08-15 10:44:17,932 Message.java:512 - Received: o= rg.apache.cassandra.transport.messages.AuthResponse@3cc2a95c, v=3D4 INFO [S= torageServiceShutdownHook] 2017-08-15 10:44:19,814 HintsService.java:212 - = Paused hints dispatch INFO [StorageServiceShutdownHook] 2017-08-15 10:44:19= ,818 Server.java:180 - Stop listening for CQL clients INFO [StorageServiceS= hutdownHook] 2017-08-15 10:44:19,818 Gossiper.java:1490 - Announcing shutdo= wn INFO [StorageServiceShutdownHook] 2017-08-15 10:44:19,819 StorageService= .java:2011 - Node /127.0.0.2 state jump to shutdown}} -- 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