You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2025/10/28 22:49:00 UTC
[jira] [Created] (CASSANALYTICS-98) Fix SSTable descriptor mismatch preventing newly produced SSTables from being uploaded
Yifan Cai created CASSANALYTICS-98:
--------------------------------------
Summary: Fix SSTable descriptor mismatch preventing newly produced SSTables from being uploaded
Key: CASSANALYTICS-98
URL: https://issues.apache.org/jira/browse/CASSANALYTICS-98
Project: Apache Cassandra Analytics
Issue Type: Bug
Components: Writer
Reporter: Yifan Cai
Assignee: Yifan Cai
The bug was in SSTables.getSSTableBaseName() which included a trailing dash (e.g., "oa-1-big-") while SSTable descriptors created during production didn't have the trailing dash (e.g., "oa-1-big"). This mismatch caused the filter in SortedSSTableWriter.prepareSStablesToSend() to exclude all newly produced SSTables from upload, as the descriptors never matched.
The fix removes the trailing dash by changing lastIndexOf("-") + 1 to lastIndexOf("-") and adds corresponding logic to avoid double-hashing already-streamed SSTables.
The bug does not cause data loss. All produced sstables are still uploaded when the writer is closed. The bugs is causing the delay of sending those files, as they could have been sent when they are just produced. I believe the bug was introduced in CASSANALYTICS-5.
--
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