You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/19 05:40:00 UTC

[jira] [Updated] (CASSANDRA-10480) CFS.truncateBlocking relies on sleep

     [ https://issues.apache.org/jira/browse/CASSANDRA-10480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

C. Scott Andreas updated CASSANDRA-10480:
-----------------------------------------
    Component/s: Local Write-Read Paths

> CFS.truncateBlocking relies on sleep
> ------------------------------------
>
>                 Key: CASSANDRA-10480
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10480
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local Write-Read Paths
>            Reporter: Robert Stupp
>            Priority: Minor
>              Labels: triage, windows
>
> {{ColumnFamilyStore.truncateBlocking}} uses {{Uninterruptibles.sleepUninterruptibly(1, TimeUnit.MILLISECONDS);}} to ensure that _truncatedAt_ does not compete with a _deletedAt_.
> {{System.currentTimeMillis()}} _usually_ (it's not guaranteed) works as expected on Linux and OSX - but especially on Windows it may stall (update the {{System.currentTimeMillis()}} at non-regular intervals).
> I don't think this is a major issue as it just affects the truncate operation, which is a DDL operation, which should never be used in application code (IMO).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org