[ 
https://issues.apache.org/jira/browse/CASSANDRA-17439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17506711#comment-17506711
 ] 

Jacek Lewandowski edited comment on CASSANDRA-17439 at 3/15/22, 5:39 AM:
-------------------------------------------------------------------------

[PR|https://github.com/apache/cassandra/pull/1502] 
[j8|https://app.circleci.com/pipelines/github/jacek-lewandowski/cassandra/199/workflows/fdcc0a37-d804-41bd-a0bb-6cbe0a6c934d]


was (Author: jlewandowski):
[PR|https://github.com/apache/cassandra/pull/1502]

> Missing TRUNCATE_EXISTING in write options
> ------------------------------------------
>
>                 Key: CASSANDRA-17439
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17439
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Legacy/Local Write-Read Paths
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>
> `PathUtils.WRITE_OPTIONS` is meant to be used for overwriting files. However, 
> without TRUNCATE_EXISTING option, it may overwrite only the beginning of the 
> file if the new content is smaller than previous, which in turn may lead to 
> unexpected file size and fail some tests unexpectedly.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to