You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jyothsna Konisa (Jira)" <ji...@apache.org> on 2026/08/10 16:29:00 UTC
[jira] [Assigned] (CASSANALYTICS-191) CDC reader stats silently dropped in SidecarCdcBuilder
[ https://issues.apache.org/jira/browse/CASSANALYTICS-191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jyothsna Konisa reassigned CASSANALYTICS-191:
---------------------------------------------
Assignee: Jyothsna Konisa
> CDC reader stats silently dropped in SidecarCdcBuilder
> ------------------------------------------------------
>
> Key: CASSANALYTICS-191
> URL: https://issues.apache.org/jira/browse/CASSANALYTICS-191
> Project: Apache Cassandra Analytics
> Issue Type: Improvement
> Reporter: Jyothsna Konisa
> Assignee: Jyothsna Konisa
> Priority: Normal
>
> SidecarCdcBuilder's constructor accepts an ICdcStats cdcStats parameter, but never assigns it to this.stats or calls withStats(cdcStats). CdcBuilder's own constructor (the superclass) also never sets stats — the field stays at its declaration default, ICdcStats stats = ICdcStats.STUB (a no-op anonymous implementation).
> As a result, every Cdc/SidecarCdc instance built via SidecarCdc.builder(...) uses ICdcStats.STUB internally, regardless of what stats implementation the caller supplies. All ICdcStats calls made from CdcScannerBuilder, MicroBatchIterator, and BufferingCommitLogReader (produced/received latency, mutations read, dropped/corrupt mutations, watermarker size, insufficient-replicas, late-publish, commit-log read timing, etc.) execute against the no-op stub and never reach the caller's real implementation. Since the interface's default methods have empty bodies, this produces zero errors, zero log output, and zero indication anything is wrong.
--
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