You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dinesh Joshi (Jira)" <ji...@apache.org> on 2020/02/14 23:13:00 UTC

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

     [ https://issues.apache.org/jira/browse/CASSANDRA-15034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dinesh Joshi updated CASSANDRA-15034:
-------------------------------------
    Description: 
cassandra-stress that is run with a user profile against a cluster will fail to try 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]

 

 

  was:
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]

 

 


> 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
>            Assignee: Dinesh Joshi
>            Priority: Normal
>         Attachments: 0001-Fix-retry-of-userdefined-operations.patch, stress.yaml
>
>
> cassandra-stress that is run with a user profile against a cluster will fail to try 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
(v8.3.4#803005)

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