You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2014/07/29 04:55:40 UTC
[jira] [Resolved] (CASSANDRA-7634) cqlsh error tracing CAS
[ https://issues.apache.org/jira/browse/CASSANDRA-7634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-7634.
---------------------------------------
Resolution: Duplicate
> cqlsh error tracing CAS
> -----------------------
>
> Key: CASSANDRA-7634
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7634
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: dan jatnieks
> Priority: Minor
> Labels: cqlsh
>
> On branch cassandra-2.1.0
> Getting message {{'NoneType' object has no attribute 'microseconds'}} from cqlsh while tracing a CAS statement.
> {noformat}
> Connected to devc-large at 146.148.39.53:9042.
> [cqlsh 5.0.1 | Cassandra 2.1.0-rc4-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3]
> Use HELP for help.
> cqlsh> use test2;
> cqlsh:test2> update cas set c2 = 2 where c1 = 1 if c3 = 1;
> applied
> ---------
> True
> cqlsh:test2> tracing on;
> Now tracing requests.
> cqlsh:test2> update cas set c2 = 2 where c1 = 1 if c3 = 1;
> applied
> ---------
> True
> 'NoneType' object has no attribute 'microseconds'
> cqlsh:test2>
> {noformat}
> Tracing {{select *}} from the same table works as expected, but tracing the conditional update results in the error.
> More details:
> {noformat}
> cqlsh:test2> desc keyspace
> CREATE KEYSPACE test2 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes = true;
> CREATE TABLE test2.cas (
> c1 int PRIMARY KEY,
> c2 int,
> c3 int
> ) WITH bloom_filter_fp_chance = 0.01
> AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
> AND comment = ''
> AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
> AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
> AND dclocal_read_repair_chance = 0.1
> AND default_time_to_live = 0
> AND gc_grace_seconds = 864000
> AND max_index_interval = 2048
> AND memtable_flush_period_in_ms = 0
> AND min_index_interval = 128
> AND read_repair_chance = 0.0
> AND speculative_retry = '99.0PERCENTILE';
> cqlsh:test2> tracing on;
> Tracing is already enabled. Use TRACING OFF to disable.
> cqlsh:test2> select * from cas;
> c1 | c2 | c3
> ----+----+----
> 1 | 2 | 1
> (1 rows)
> Tracing session: 8f0c8340-16ae-11e4-8ca3-fb429d8fb4a7
> activity | timestamp | source | source_elapsed
> -----------------------------------------------------------------------------------------------------------------------+----------------------------+----------------+----------------
> Execute CQL3 query | 2014-07-28 16:26:10.804000 | 10.240.139.181 | 0
> Parsing select * from cas LIMIT 10000; [SharedPool-Worker-1] | 2014-07-28 16:26:10.804000 | 10.240.139.181 | 78
> Preparing statement [SharedPool-Worker-1] | 2014-07-28 16:26:10.804000 | 10.240.139.181 | 282
> Determining replicas to query [SharedPool-Worker-1] | 2014-07-28 16:26:10.804000 | 10.240.139.181 | 501
> Enqueuing request to /10.240.189.138 [SharedPool-Worker-1] | 2014-07-28 16:26:10.804000 | 10.240.139.181 | 918
> Sending message to /10.240.189.138 [WRITE-/10.240.189.138] | 2014-07-28 16:26:10.805000 | 10.240.139.181 | 1095
> Message received from /10.240.139.181 [Thread-27] | 2014-07-28 16:26:10.805000 | 10.240.189.138 | 28
> Executing seq scan across 0 sstables for [min(-9223372036854775808), max(-4611686018427387904)] [SharedPool-Worker-1] | 2014-07-28 16:26:10.805000 | 10.240.189.138 | 384
> Scanned 0 rows and matched 0 [SharedPool-Worker-1] | 2014-07-28 16:26:10.805000 | 10.240.189.138 | 481
> Enqueuing response to /10.240.139.181 [SharedPool-Worker-1] | 2014-07-28 16:26:10.805000 | 10.240.189.138 | 570
> Sending message to /10.240.139.181 [WRITE-/10.240.139.181] | 2014-07-28 16:26:10.806000 | 10.240.189.138 | 735
> Message received from /10.240.189.138 [Thread-30] | 2014-07-28 16:26:10.807000 | 10.240.139.181 | 3264
> Processing response from /10.240.189.138 [SharedPool-Worker-2] | 2014-07-28 16:26:10.807000 | 10.240.139.181 | 3422
> Enqueuing request to /10.240.47.89 [SharedPool-Worker-1] | 2014-07-28 16:26:10.807000 | 10.240.139.181 | 3680
> Sending message to /10.240.47.89 [WRITE-/10.240.47.89] | 2014-07-28 16:26:10.807000 | 10.240.139.181 | 3757
> Enqueuing request to /10.240.88.116 [SharedPool-Worker-1] | 2014-07-28 16:26:10.807000 | 10.240.139.181 | 3937
> Sending message to /10.240.88.116 [WRITE-/10.240.88.116] | 2014-07-28 16:26:10.808000 | 10.240.139.181 | 4111
> Message received from /10.240.139.181 [Thread-32] | 2014-07-28 16:26:10.808000 | 10.240.47.89 | 35
> Executing seq scan across 0 sstables for (max(-4611686018427387904), max(0)] [SharedPool-Worker-2] | 2014-07-28 16:26:10.808000 | 10.240.47.89 | 934
> Read 1 live and 0 tombstoned cells [SharedPool-Worker-2] | 2014-07-28 16:26:10.809000 | 10.240.47.89 | 1092
> Scanned 1 rows and matched 1 [SharedPool-Worker-2] | 2014-07-28 16:26:10.809000 | 10.240.47.89 | 1173
> Enqueuing response to /10.240.139.181 [SharedPool-Worker-2] | 2014-07-28 16:26:10.809000 | 10.240.47.89 | 1248
> Message received from /10.240.88.116 [Thread-25] | 2014-07-28 16:26:10.810000 | 10.240.139.181 | 6821
> Sending message to /10.240.139.181 [WRITE-/10.240.139.181] | 2014-07-28 16:26:10.810000 | 10.240.47.89 | 2480
> Processing response from /10.240.88.116 [SharedPool-Worker-3] | 2014-07-28 16:26:10.810000 | 10.240.139.181 | 6958
> Message received from /10.240.47.89 [Thread-32] | 2014-07-28 16:26:10.811000 | 10.240.139.181 | 7158
> Processing response from /10.240.47.89 [SharedPool-Worker-3] | 2014-07-28 16:26:10.811000 | 10.240.139.181 | 7332
> Message received from /10.240.139.181 [Thread-33] | 2014-07-28 16:26:10.813000 | 10.240.88.116 | 47
> Executing seq scan across 0 sstables for (max(0), max(4611686018427387904)] [SharedPool-Worker-1] | 2014-07-28 16:26:10.813000 | 10.240.88.116 | 535
> Scanned 0 rows and matched 0 [SharedPool-Worker-1] | 2014-07-28 16:26:10.813000 | 10.240.88.116 | 661
> Enqueuing response to /10.240.139.181 [SharedPool-Worker-1] | 2014-07-28 16:26:10.814000 | 10.240.88.116 | 790
> Sending message to /10.240.139.181 [WRITE-/10.240.139.181] | 2014-07-28 16:26:10.814000 | 10.240.88.116 | 1023
> Request complete | 2014-07-28 16:26:10.811547 | 10.240.139.181 | 7547
> cqlsh:test2> update cas set c2 = 2 where c1 = 1 if c3 = 1;
> applied
> ---------
> True
> 'NoneType' object has no attribute 'microseconds'
> cqlsh:test2>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)