cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh McKenzie (Jira)" <>
Subject [jira] [Assigned] (CASSANDRA-14570) Improper default value of cdc_total_space_in_mb
Date Wed, 14 Jul 2021 16:54:00 GMT


Josh McKenzie reassigned CASSANDRA-14570:

    Assignee: Josh McKenzie  (was: Shichao An)

> Improper default value of cdc_total_space_in_mb
> -----------------------------------------------
>                 Key: CASSANDRA-14570
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Config
>            Reporter: Shichao An
>            Assignee: Josh McKenzie
>            Priority: Low
>              Labels: CDC
> The code for calculating cdc_total_space_in_mb in does not
reflect the latest architecture introduced by CASSANDRA-12148.
> In short, cdc_total_space_in_mb should be equal or greater than commitlog_total_space_in_mb;
otherwise, the writes will fail when on-disk commit logs size reaches the value of cdc_total_space_in_mb.
For example, If cdc_total_space_in_mb is 4096 and commitlog_total_space_in_mb is 8192, when
we enabled the cdc_enabled flag (even if we didn't enable cdc=true on any table), when total
size of commit logs reaches 4096 MB, there is the same of amount of hard links in cdc_raw
directory, that is, 4096 MB of cdc logs. Then, if a table has cdc=true, the writes will fail
in that table because the CommitLogSegmentManagerCDC will be unable to process new CDC segments.
(See allocate and processNewSegment in CommitLogSegmentManagerCDC class)
> I will attach patches later.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message