cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dan jatnieks (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6777) stress write using thrift results in ArithmeticException / by zero errors
Date Thu, 27 Feb 2014 05:10:19 GMT

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

dan jatnieks commented on CASSANDRA-6777:
-----------------------------------------

Ah. To get around JAVA-276, I had dropped in a modified java driver that could parse the Cassandra
version "2.1.0-beta1-SNAPSHOT". However doing that on the head of the java driver 2.0 branch
is somehow causing these ArithmeticException / by zero errors. 

Restoring the {{cassandra-driver-core-2.0.0-rc3-SNAPSHOT.jar}} in tools/lib and instead building
C* with {{ant -Dbase.version=2.1.0}} works around JAVA-276 and doesn't cause any problems
for stress.

So closing this issue as it seems to be caused by java-driver.


> stress write using thrift results in ArithmeticException / by zero errors
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6777
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6777
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Mac OSX, java 1.7.0_51
>            Reporter: dan jatnieks
>            Priority: Minor
>              Labels: stress
>         Attachments: logs.tar.gz
>
>
> Running stress write (thrift) on 2.1 branch is resulting in the following.
> Note: this is after working around [JAVA-276|https://datastax-oss.atlassian.net/browse/JAVA-276]
causing stress to fail to connect to 2.1.
> {noformat}
> $ ./tools/bin/cassandra-stress write n=5000000
> Unable to create stress keyspace: Keyspace names must be case-insensitively unique ("Keyspace1"
conflicts with "Keyspace1")
> Warming up WRITE with 50000 iterations...
> Connected to cluster: Test Cluster
> Datatacenter: datacenter1; Host: localhost/127.0.0.1; Rack: rack1
> java.lang.ArithmeticException: / by zero
> java.lang.ArithmeticException: / by zero
> java.lang.ArithmeticException: / by zero
> java.lang.ArithmeticException: / by zero
> ...
> java.lang.Arithmjava.io.IOException: Operation [220] x10 key 00000000DD Error executing:
(ArithmeticException): / by zero
> eticException: / by zero
> java.lang.ArithmeticException: / by zero
> 	at org.apache.cassandra.stress.Operation.error(Operation.java:237)
> java.lang.ArithmeticException: / by zero	at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:216)
> 	at org.apache.cassandra.stress.operations.ThriftInserter.run(ThriftInserter.java:72)
> 	at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:302)java.lang.ArithmeticException:
/ by zero
> java.lang.ArithmeticException: / by zero
> java.io.IOException: Operation [200] x10 key 00000000C9 Error executing: (ArithmeticException):
/ by zero
> 	at org.apache.cassandra.stress.Operation.error(Operation.java:237)
> java.lang.ArithmeticException: / by zero	at org.apache.cassandra.stress.Operation.timeWithRetry(Operation.java:216)
> java.lang.ArithmeticException: / by zero	at org.apache.cassandra.stress.operations.ThriftInserter.run(ThriftInserter.java:72)
> 	at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:302)
> ...
> {noformat}
> Seems to be just a thrift issue, as running stress write using the native protocol works:
> {noformat}
> $ ./tools/bin/cassandra-stress write n=5000000 -mode native cql3
> Unable to create stress keyspace: Keyspace names must be case-insensitively unique ("Keyspace1"
conflicts with "Keyspace1")
> Warming up WRITE with 50000 iterations...
> Connected to cluster: Test Cluster
> Datatacenter: datacenter1; Host: localhost/127.0.0.1; Rack: rack1
> Sleeping 2s...
> Running WRITE with 50 threads  for 5000000 iterations
> ops       ,    op/s,adj op/s,   key/s,    mean,     med,     .95,     .99,    .999, 
   max,   time,   stderr
> 29342     ,   29340,   30903,   29340,     1.7,     1.4,     3.1,     5.7,    51.5, 
  54.4,    1.0,  0.00000
> 56353     ,   26968,   28523,   26968,     1.8,     1.5,     3.6,     7.0,    56.5, 
  57.2,    2.0,  0.00000
> ...
> 5000000   ,   29358,   29358,   29358,     1.7,     1.3,     3.6,     8.4,    10.1, 
  11.6,  168.8,  0.00828
> Results:
> real op rate              : 29620
> adjusted op rate          : 29629
> adjusted op rate stderr   : 0
> key rate                  : 29620
> latency mean              : 1.7
> latency median            : 1.4
> latency 95th percentile   : 3.0
> latency 99th percentile   : 5.4
> latency 99.9th percentile : 56.5
> latency max               : 305.7
> Total operation time      : 00:02:48
> END
> {noformat}
> Attaching stress write and system logs as well.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message