You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benedict (JIRA)" <ji...@apache.org> on 2014/06/18 21:12:26 UTC

[jira] [Comment Edited] (CASSANDRA-6108) Create timeid64 type

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

Benedict edited comment on CASSANDRA-6108 at 6/18/14 7:11 PM:
--------------------------------------------------------------

It seems this implementation has some slightly weird behaviour: if more than 1000 timeuuids are produced in a single millisecond (potentially decoupled from actually committing them to the database), updates from another client can get overridden. Say a single client produces 100k updates before submitting them to be processed asynchronously, these updates will create a 100ms window during which any other client's writes will lose despite occurring later. This seems a pretty dangerous tradeoff, and one the user is unlikely to expect.


was (Author: benedict):
It seems this implementation has some slightly weird behaviour: if more than 1000 timeuuids are produced in a single millisecond (potentially decoupled from actually committing them to the database), updates from another client can get overridden. Say a single client produces 100k updates before submitting them to be processed asynchronously, these updates will create a 100ms window during which any other client's writes will lose despite occurring later. This seems a pretty dangerous tradeoff, and one user is likely to expect.

> Create timeid64 type
> --------------------
>
>                 Key: CASSANDRA-6108
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6108
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Jonathan Ellis
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> As discussed in CASSANDRA-6106, we could create a 64-bit type with 48 bits of timestamp and 16 bites of unique coordinator id.  This would give us a unique-per-cluster value that could be used as a more compact replacement for many TimeUUID uses.



--
This message was sent by Atlassian JIRA
(v6.2#6252)