[
https://issues.apache.org/jira/browse/CASSANDRA-15626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071057#comment-17071057
]
Aleksey Yeschenko commented on CASSANDRA-15626:
-----------------------------------------------
If in production you are racing inserts with column drops, then you are using
the feature incorrectly. Drop column exists to clean up schema from columns
that are no longer in use - and to trigger their eventual removal as
compactions occur.
Switching precision to micros would help with the flaky test, but that's about
it. Not even bringing up concurrent writes happening on other nodes that are
not addressed by the JIRA linked here. Anyways, I'd say changing this is a
hassle that doesn't improve anything in practice, beyond some tests, which is
easier done on the test side.
> Need microsecond precision for dropped columns so we can avoid timestamp
> issues
> -------------------------------------------------------------------------------
>
> Key: CASSANDRA-15626
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15626
> Project: Cassandra
> Issue Type: Improvement
> Components: Local/SSTable
> Reporter: Ryan Svihla
> Priority: Normal
>
> In CASSANDRA-15557 the fix for the flaky test is reimplementing the logic
> from CASSANDRA-12997 which was removed as part of CASSANDRA-13426
> However, since dropped columns are stored at a millisecond precision instead
> of a microsecond precision and ClientState.getTimestamp adds microseconds on
> each call we will lose the precision on save and some writes that should be
> dropped could reappear.
> Note views affected as well
>
> [https://github.com/apache/cassandra/blob/cb83fbff479bb90e9abeaade9e0f8843634c974d/src/java/org/apache/cassandra/schema/SchemaKeyspace.java#L712-L716]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]