cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-10480) CFS.truncateBlocking relies on sleep
Date Thu, 08 Oct 2015 13:51:26 GMT
Robert Stupp created CASSANDRA-10480:

             Summary: CFS.truncateBlocking relies on sleep
                 Key: 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

View raw message