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

Anton Lebedevich commented on CASSANDRA-7724:
---------------------------------------------

Yes, timeouts are expected but I'd expect at least one of Native-Transport 
threads to make a progress. In the thread dump attached all non-idle 
Native-Transport threads are waiting on the same CountDownLatch:

{noformat}
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000006b3f0f4a0> (a 
java.util.concurrent.CountDownLatch$Sync)
        at 
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)
        at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)
        at 
org.apache.cassandra.service.paxos.AbstractPaxosCallback.await(AbstractPaxosCallback.java:60)
        at 
org.apache.cassandra.service.StorageProxy.preparePaxos(StorageProxy.java:391)
        at 
org.apache.cassandra.service.StorageProxy.beginAndRepairPaxos(StorageProxy.java:321)
        at org.apache.cassandra.service.StorageProxy.cas(StorageProxy.java:220)
        at 
org.apache.cassandra.cql3.statements.ModificationStatement.executeWithCondition(ModificationStatement.java:567)
        at 
org.apache.cassandra.cql3.statements.ModificationStatement.execute(ModificationStatement.java:530)
        at 
org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:158)
{noformat}

> Native-Transport threads get stuck in StorageProxy.preparePaxos with no one 
> making progress
> -------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7724
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7724
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Linux 3.13.11-4 #4 SMP PREEMPT x86_64 Intel(R) Core(TM) 
> i7 CPU 950 @ 3.07GHz GenuineIntel 
> java version "1.8.0_05"
> Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
> cassandra 2.0.9
>            Reporter: Anton Lebedevich
>         Attachments: cassandra.threads2
>
>
> We've got a lot of write timeouts (cas) when running 
> "INSERT INTO cas_demo(pri_id, sec_id, flag, something) VALUES(?, ?, ?, ?) IF 
> NOT EXISTS"
>  from 16 connections in parallel using the same pri_id and different sec_id.
> Doing the same from 4 connections in parallel works ok.
> All configuration values are at their default values.
> CREATE TABLE cas_demo (
>   pri_id varchar,
>   sec_id varchar,
>   flag boolean,
>   something set<varchar>,
>   PRIMARY KEY (pri_id, sec_id)
> );
> CREATE INDEX cas_demo_flag ON cas_demo(flag);
> Full thread dump is attached. 



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

Reply via email to