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/03/05 19:19:00 UTC
[jira] [Created] (CASSANALYTICS-124) Commitlog reading not progressing in CDC due to incorrect CommitLogReader.isFullyRead
Jyothsna Konisa created CASSANALYTICS-124:
---------------------------------------------
Summary: Commitlog reading not progressing in CDC due to incorrect CommitLogReader.isFullyRead
Key: CASSANALYTICS-124
URL: https://issues.apache.org/jira/browse/CASSANALYTICS-124
Project: Apache Cassandra Analytics
Issue Type: Improvement
Reporter: Jyothsna Konisa
In the CDC code path after all the commit logs are listed, CdcScannerBuilder opens commit logs one by one and the commit log reading is not progressing after reading the first one for the following reasons.
CommitLogReader.isFullyRead() incorrectly returns false even when the commit log is fully in following scenarios.
1. After the restart when the CDC state is loaded, BufferingCommitLogReader.position is not updated to the marker.start position and remains 0 affecting the result of above method
2. While reading commit log segments with padded zeros, even after the commit log is read, the above method returns false.
For both the issues the fix is setting the BufferingCommitLogReader.position correctly after loading the state and after finishing reading the segment.
--
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