Robert Stupp created CASSANDRA-10480:
----------------------------------------

             Summary: CFS.truncateBlocking relies on sleep
                 Key: CASSANDRA-10480
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10480
             Project: Cassandra
          Issue Type: Bug
            Reporter: Robert Stupp
            Priority: Minor


{{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
(v6.3.4#6332)

Reply via email to