Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to timestamp resolution other than microsecond for TWCS #3152

Closed
raphaelsc opened this issue Jan 25, 2018 · 12 comments
Closed

Add support to timestamp resolution other than microsecond for TWCS #3152

raphaelsc opened this issue Jan 25, 2018 · 12 comments
Assignees
Milestone

Comments

@raphaelsc
Copy link
Member

Certain/older clients may decide to work with milliseconds as timestamp resolution instead

@slivne
Copy link
Contributor

slivne commented Jan 28, 2018

@raphaelsc can you please clarify the issue with different clients ?

if we have two clients writing data with different resolution how will the timestamp info be persisted into the file ?

are other compaction strategies resilient to this - and if so how ?

@raphaelsc
Copy link
Member Author

raphaelsc commented Jan 30, 2018 via email

@slivne
Copy link
Contributor

slivne commented Feb 4, 2018

@raphaelsc well it seems strange that the user provided timestamp is not validated against the schema - I would expect some validation to be done.

@slivne slivne added this to the 2.x milestone Feb 4, 2018
@raphaelsc
Copy link
Member Author

raphaelsc commented Feb 7, 2018 via email

@tzach
Copy link
Contributor

tzach commented Mar 27, 2018

Certain/older clients may decide to work with milliseconds as timestamp resolution instead

which client/versions?
In particular, Kairos 1.2.0 is using cassandra-driver-core 3.3.2[1]
Is this driver version problematic?

[1] https://github.com/kairosdb/kairosdb/blob/v1.2.0/ivy.xml#L61

@gcmcnutt
Copy link

we too are blocked on using TWCS with kairosDB -- if anyone can come up with a workaround or hackaround, even in kairosdb, in the mean time, that would help

@avikivity
Copy link
Member

Is this about the compaction_window_unit of TWCS? If so, I don't think it affects timestamp resolution.

If not, what is it?

@raphaelsc
Copy link
Member Author

raphaelsc commented Apr 9, 2018 via email

@raphaelsc
Copy link
Member Author

Patch sent, waiting for review...

@avikivity
Copy link
Member

Wow, that's truly terrible. Oh well.

@dorlaor
Copy link
Contributor

dorlaor commented Apr 12, 2018 via email

@tzach
Copy link
Contributor

tzach commented Jun 25, 2018

Not yet part of 2.2
@avikivity can we backport it to 2.2.x?

glommer pushed a commit to glommer/scylla that referenced this issue Jun 30, 2018
That's blocking KairosDB users because it uses TWCS with millisecond
timestamp resolution.

Also older drivers use millisecond instead of the default microsecond.

Fixes scylladb#3152.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
Message-Id: <20180411171244.19958-1-raphaelsc@scylladb.com>
(cherry picked from commit 0c72781)
Signed-off-by: Glauber Costa <glauber@scylladb.com>
glommer pushed a commit to glommer/scylla that referenced this issue Jul 9, 2018
That's blocking KairosDB users because it uses TWCS with millisecond
timestamp resolution.

Also older drivers use millisecond instead of the default microsecond.

Fixes scylladb#3152.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
Message-Id: <20180411171244.19958-1-raphaelsc@scylladb.com>
(cherry picked from commit 0c72781)
Signed-off-by: Glauber Costa <glauber@scylladb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants