[
https://issues.apache.org/jira/browse/CASSANDRA-20494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010401#comment-18010401
]
Romain Hardouin commented on CASSANDRA-20494:
---------------------------------------------
Added patch: the append logic is not possible anymore because we need to sort
the entire TOC file, including existing entries. However, callers did not
depend on the append-specific behavior.
> Use lexicographic order to store component list in SSTable TOC.txt
> ------------------------------------------------------------------
>
> Key: CASSANDRA-20494
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20494
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Local/SSTable
> Reporter: Dmitry Konstantinov
> Assignee: Romain Hardouin
> Priority: Low
> Attachments: CASSANDRA-20494_5.0.patch
>
>
> Currently we keep components as a Set in memory and iterate over them without
> a fixed order to write to TOC.txt, so TOC.txt can be different for different
> SSTables, it is a bit annoying to see in tickets like CASSANDRA-20485. To
> make the logic more deterministic we can sort the list in lexicographic order
> in the store logic
> (org.apache.cassandra.io.sstable.format.TOCComponent#appendTOC)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]