[
https://issues.apache.org/jira/browse/CASSANDRA-11579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuki Morishita updated CASSANDRA-11579:
---------------------------------------
Status: Patch Available (was: Open)
||branch||testall||dtest||
|[11192-sequentialwriter|https://github.com/yukim/cassandra/tree/11192-sequentialwriter]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-11192-sequentialwriter-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-11192-sequentialwriter-dtest/lastCompletedBuild/testReport/]|
The patch introduces {{SequentialWriterOption}} to give {{SequentialWriter}} to
configure, rather than directly access {{DatabaseDescriptor}}.
Patch also fixes _potential_ bug that {{lastFlushOffset}} can be wrong after
{{resetAndTruncate}} with brief unit test.
Pre patch, {{SequentialWriter}} always pull {{trickleFsync}} and
{{trickleFsyncByteInterval}} from DD, but in my patch those are skipped for SW
of small buffer size.
> remove DatabaseDescriptor dependency from SequentialWriter
> ----------------------------------------------------------
>
> Key: CASSANDRA-11579
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11579
> Project: Cassandra
> Issue Type: Sub-task
> Reporter: Yuki Morishita
> Assignee: Yuki Morishita
> Priority: Minor
>
> {{SequentialWriter}} and its subclass is widely used in Cassandra, mainly
> from SSTable. Removing dependency to {{DatabaseDescriptor}} improve
> reusability of this class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)