[
https://issues.apache.org/jira/browse/CASSANDRA-12767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15564173#comment-15564173
]
Ye Liang edited comment on CASSANDRA-12767 at 10/11/16 2:06 AM:
----------------------------------------------------------------
Thank you very much,I specify a server-side timestamp generator to solve this
problem.
I notice that when i use a client-side timestamp generator,the cassandra driver
still attach a client-side timestamp to my insert request(with ifnotexist),i
want to know when will this timestamp be replaced to a server-side timestamp.I
think it will be replaced in cassandra server side,if true,can you tell me the
source code segment about this in Cassandra2.1.15 source code?
was (Author: lyss):
Thank you very much,I specify a server-side timestamp generator to solve this
problem.
I notice that when i use a client-side timestamp generator,the cassandra driver
still attach a server-side timestamp to my insert request(with ifnotexist),i
want to know when will this timestamp be replaced to a server-side timestamp.I
think it will be replaced in cassandra server side,if true,can you tell me the
source code segment about this in Cassandra2.1.15 source code?
> Cassandra Java Driver 3.1.0 Client-Side timestamp generation issue
> ------------------------------------------------------------------
>
> Key: CASSANDRA-12767
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12767
> Project: Cassandra
> Issue Type: Bug
> Environment: Cassandra 2.1.15
> Cassandra Java Driver 3.1.0
> Reporter: Ye Liang
> Priority: Minor
>
> I use cassandra driver java to do some insert operation.I notice that
> Cassandra Java Driver use client-side timestamp as default.
> I make my client server one hour ahead than my cassandra server,then i insert
> some record to an exist table and use sstable2json tool to check my record '
> s timestamp.
> i find out that if i insert a record with ifnotexist,the record's timestamp
> used server-side timestamp,otherwise it use client-side timestamp.
> I think this is a very strange result.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)