Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Correctness
-
Normal
-
Normal
-
User Report
-
All
-
None
-
Description
A multi node setup with counters doesn't update counters value. Works as expected on a single node though. Comes from this test. Repro:
ccm create counters40 ccm populate -n 2 ccm start ccm node1 cqlsh CREATE KEYSPACE foo WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 } ; use foo; CREATE TABLE clicks ( userid int, url text, total counter, PRIMARY KEY (userid, url) ) WITH COMPACT STORAGE; ALTER TABLE clicks DROP COMPACT STORAGE; TRUNCATE clicks; UPDATE clicks SET total = total + 1 WHERE userid = 1 AND url = 'http://foo.com'; SELECT total FROM clicks WHERE userid = 1 AND url = 'http://foo.com'; total ------- 1 UPDATE clicks SET total = total - 4 WHERE userid = 1 AND url = 'http://foo.com'; SELECT total FROM clicks WHERE userid = 1 AND url = 'http://foo.com'; total ------- 1 *********** Should be '-3'
Attachments
Issue Links
- Discovered while testing
-
CASSANDRA-16648 Add 4_0_x to Python DTest's upgrade_manifest (after cassandra-4.0 branch was created)
- Resolved
- links to