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/10 21:55:00 UTC
[jira] [Created] (CASSANALYTICS-127) Fixing CdcTests.testMockedCdc broken due to incorrect position update in BufferingCommitLogReader
Jyothsna Konisa created CASSANALYTICS-127:
---------------------------------------------
Summary: Fixing CdcTests.testMockedCdc broken due to incorrect position update in BufferingCommitLogReader
Key: CASSANALYTICS-127
URL: https://issues.apache.org/jira/browse/CASSANALYTICS-127
Project: Apache Cassandra Analytics
Issue Type: Bug
Reporter: Jyothsna Konisa
The commit https://github.com/apache/cassandra-analytics/commit/34c6c38253d59a9fe8485368fea3145e2dffe205 introduced the following change in BufferingCommitlogReader after reading all the sync segments in the commit log file with out checking the completion status of the commit log. This marks the commitlog as read even if it is not complete which is incorrect.
if (statusTracker.shouldContinue())
{
this.position = (int) log.maxOffset();
}
Also, this block is not needed as the position is correctly updated to the file pointer when sync segments are read.
This change also breaks the test CdcTests.testMockedCdc.
--
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