You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Shlomi Livne (JIRA)" <ji...@apache.org> on 2019/02/25 21:04:00 UTC

[jira] [Created] (CASSANDRA-15034) cassandra-stress fails to retry user profile insert and query operations

Shlomi Livne created CASSANDRA-15034:
----------------------------------------

             Summary: cassandra-stress fails to retry user profile insert and query operations 
                 Key: CASSANDRA-15034
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15034
             Project: Cassandra
          Issue Type: Bug
          Components: Tool/stress
            Reporter: Shlomi Livne
         Attachments: stress.yaml

cassandra-stress that is run with a user profile against a cluster will fail to trey operations when a node is killed.

To reproduce:

# Create a 3 ndoe cluster with ccm
{code:java}
ccm create cas-3 --vnodes -n 1 --version=3.11.3``{code}
# start the cluster
{code:java}
 ccm start{code}
# run
{code:java}
tools/bin/cassandra-stress user profile=stress.yaml n=100000 ops(insert=1) no-warmup cl=QUORUM -node 127.0.0.2 -rate threads=10{code}
or run
{code:java}
tools/bin/cassandra-stress user profile=stress.yaml n=100000 ops(simple=1) no-warmup cl=QUORUM -node 127.0.0.2 -rate threads=10{code}
# while the stress is progressing kill a node
{code:java}
ccm node1 stop --not-gently{code}
# wait for cassandra-stress to end

for the insert case check
{code:java}
ccm node2 cqlsh -e " select count(*) FROM stresscql.tb ;"{code}
we are missing rows

for the query case (simple) the following errors will be reported
{code:java}
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.io.IOException: Operation x10 on key(s) [49a26f35297303469236]: Error executing: (NoSuchElementException)
at org.apache.cassandra.stress.Operation.error(Operation.java:127)java.util.NoSuchElementException
at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:105)com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1:9042] Connection has been closed
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException
java.util.NoSuchElementException{code}
profile: stress.yaml[^stress.yaml]

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org