You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Caleb Rackliffe (Jira)" <ji...@apache.org> on 2025/09/05 18:49:00 UTC
[jira] [Updated] (CASSANDRA-20752) Flush SAI segment builder when current sstable writer is switched
[ https://issues.apache.org/jira/browse/CASSANDRA-20752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Caleb Rackliffe updated CASSANDRA-20752:
----------------------------------------
Fix Version/s: 5.0.x
6.x
> Flush SAI segment builder when current sstable writer is switched
> -----------------------------------------------------------------
>
> Key: CASSANDRA-20752
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20752
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Feature/SAI
> Reporter: Zhao Yang
> Priority: Normal
> Fix For: 5.0.x, 6.x
>
>
> With sharded compaction, sstable writer may be switched when reaching boundary in `SSTableRewriter#switchWriter`. But the switched writer's segment builders are not flushed until all sharded are written and committed.
> This unccessarily retains memory causing smaller segments and may even cause OOM due to segment builder's min-flush-size.
> We can extend `SSTableFlushObserver` to be notified on sstable switched
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org