Skip to content

Conversation

@adelapena
Copy link
Contributor

No description provided.

@adelapena adelapena changed the title CASSANDRA-12519 (4.0): Skip temporary sstables in sstablelevelreset CASSANDRA-12519 (4.0): dtest failure in offline_tools_test.TestOfflineTools.sstableofflinerelevel_test Jun 11, 2021
@adelapena adelapena closed this Jun 17, 2021
michaeljmarshall pushed a commit to michaeljmarshall/cassandra that referenced this pull request Apr 3, 2024
When the code validates the footer, it complains if the remaining bytes
don't match the footer lenght, but it does so before checking the footer
magic. It means that when that error is triggered, you cannot really
tell if the issue that you are trying to read the footer in the wrong
place, or if the file genuinely has extra bytes after the footer.

This modify the logic a bit to check the magic first (as long as there
is enough bytes), to disambiguate both problems more easily.
ekaterinadimitrova2 pushed a commit to ekaterinadimitrova2/cassandra that referenced this pull request Jun 3, 2024
When the code validates the footer, it complains if the remaining bytes
don't match the footer lenght, but it does so before checking the footer
magic. It means that when that error is triggered, you cannot really
tell if the issue that you are trying to read the footer in the wrong
place, or if the file genuinely has extra bytes after the footer.

This modify the logic a bit to check the magic first (as long as there
is enough bytes), to disambiguate both problems more easily.
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Sep 25, 2024
When the code validates the footer, it complains if the remaining bytes
don't match the footer lenght, but it does so before checking the footer
magic. It means that when that error is triggered, you cannot really
tell if the issue that you are trying to read the footer in the wrong
place, or if the file genuinely has extra bytes after the footer.

This modify the logic a bit to check the magic first (as long as there
is enough bytes), to disambiguate both problems more easily.
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
When the code validates the footer, it complains if the remaining bytes
don't match the footer lenght, but it does so before checking the footer
magic. It means that when that error is triggered, you cannot really
tell if the issue that you are trying to read the footer in the wrong
place, or if the file genuinely has extra bytes after the footer.

This modify the logic a bit to check the magic first (as long as there
is enough bytes), to disambiguate both problems more easily.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant