Skip to content

CASSANDRA-20636 - Fix: handle MAX_SEGMENT_SIZE < chunkSize for MmappedRegions::updateState #4189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

samueldlightfoot
Copy link
Contributor

@samueldlightfoot samueldlightfoot commented May 31, 2025

  • Fix: handle MAX_SEGMENT_SIZE < chunkSize for MmappedRegions::updateState
  • Resolve ref leaks seen in SSTableReaderTest

Targeting 5.0

patch by Sam Lightfoot; reviewed by <> for CASSANDRA-20636

https://issues.apache.org/jira/browse/CASSANDRA-20636

@szymon-miezal
Copy link
Contributor

The fix makes sense to me, I have allowed myself to add a small test that verifies and documents the case when max segment size is smaller than page size - szymon-miezal@b444c66, what do you think?

@samueldlightfoot
Copy link
Contributor Author

samueldlightfoot commented Jun 2, 2025

The fix makes sense to me, I have allowed myself to add a small test that verifies and documents the case when max segment size is smaller than page size - szymon-miezal@b444c66, what do you think?

LGTM, thank you - pushed up.

@michaelsembwever
Copy link
Member

i can't get this to compile

    [javac] /home/build/cassandra/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java:45: error: package org.junit.jupiter.api does not exist
    [javac] import org.junit.jupiter.api.Assertions;

just me ?

@szymon-miezal
Copy link
Contributor

@michaelsembwever it fails on my machine as well (C* does not depend on jupiter it seems), szymon-miezal@d476614 should fix it.

It seems OSS does not depend on jupiter
@samueldlightfoot
Copy link
Contributor Author

samueldlightfoot commented Jun 6, 2025

Pushed through, thanks Szymon.

@samueldlightfoot
Copy link
Contributor Author

Commited 53ccfd5

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.

4 participants