[
https://issues.apache.org/jira/browse/CASSANDRA-20494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18010653#comment-18010653
]
Stefan Miklosovic commented on CASSANDRA-20494:
-----------------------------------------------
I have finished the review and materialized that to separate PR to have an
idea. Might be picked to the main branch or just finished ....
https://github.com/apache/cassandra/pull/4278
> 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
> Fix For: 5.0.x, 5.x
>
> Attachments: CASSANDRA-20494_5.0.patch
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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]