cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Sanda <john.sa...@gmail.com>
Subject Consistent reads and first write wins
Date Wed, 08 Jul 2015 01:35:01 GMT
Suppose I have the following schema,

CREATE TABLE foo (
    id text,
    time timeuuid,
    prop1 text,
    PRIMARY KEY (id, time)
)
WITHCLUSTERING ORDER BY (time ASC);

And I have two clients who execute quorum writes, e.g.,

// client 1
INSERT INTO FOO (id, time, prop1) VALUES ('test', <time_uuid_1>, 'bar');

// client 2
INSERT INTO FOO (id, time, prop1) VALUES ('test', <time_uuid_2>, 'bam');

If time_uuid_1 comes before time_uuid_2 and if both clients follow up the
writes with quorum reads, then will both clients see the value 'bar' for
prop1? Are there situations in which clients might see different values?


-- 

- John

Mime
View raw message