cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-8952) Remove transient RandomAccessFile usage
Date Wed, 11 Mar 2015 19:56:38 GMT
Joshua McKenzie created CASSANDRA-8952:

             Summary: Remove transient RandomAccessFile usage
                 Key: CASSANDRA-8952
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Joshua McKenzie
            Assignee: Joshua McKenzie
            Priority: Minor
             Fix For: 3.0

There are a few places within the code base where we use a RandomAccessFile transiently to
either grab fd's or channels for other operations. This is prone to access violations on Windows
(see CASSANDRA-4050 and CASSANDRA-8709) - while these usages don't appear to be causing issues
at this time there's no reason to keep them. The less RandomAccessFile usage in the code-base
the more stable we'll be on Windows.

* Used to getFD, have FileChannel version

* Used to get file channel for channel truncate call. Only use is in index file close so channel
truncation down-only is acceptable.

* Used to get file channel for mapping.

Keeping these in a single ticket as all three should be fairly trivial refactors.

This message was sent by Atlassian JIRA

View raw message