Skip to content

Cassandra 21672 21677 21680 21681 6.0 zstd hardening - #5164

Open
smiklosovic wants to merge 6 commits into
apache:cassandra-6.0from
smiklosovic:CASSANDRA-21672-21677-21680-21681-6.0
Open

smiklosovic wants to merge 6 commits into
apache:cassandra-6.0from
smiklosovic:CASSANDRA-21672-21677-21680-21681-6.0

Conversation

@smiklosovic

Copy link
Copy Markdown
Contributor

Thanks for sending a pull request! Here are some tips if you're new here:

  • Ensure you have added or run the appropriate tests for your PR.
  • Be sure to keep the PR description updated to reflect all changes.
  • Write your PR title to summarize what this PR proposes.
  • If possible, provide a concise example to reproduce the issue for a faster review.
  • Read our contributor guidelines
  • If you're making a documentation change, see our guide to documentation contribution

Commit messages should follow the following format:

<One sentence description, usually Jira title or CHANGES.txt summary>

<Optional lengthier description (context on patch)>

patch by <Authors>; reviewed by <Reviewers> for CASSANDRA-#####

Co-authored-by: Name1 <email1>
Co-authored-by: Name2 <email2>

The Cassandra Jira

@smiklosovic

Copy link
Copy Markdown
Contributor Author

CASSANDRA-21672 patch (the first one) was already approved here:

#5147

@smiklosovic
smiklosovic requested a review from yifan-c September 14, 2026 09:29
@smiklosovic
smiklosovic force-pushed the CASSANDRA-21672-21677-21680-21681-6.0 branch 5 times, most recently from b5827a4 to abe700b Compare September 17, 2026 17:04
Comment thread src/java/org/apache/cassandra/db/guardrails/Guardrails.java Outdated
Comment thread src/java/org/apache/cassandra/db/guardrails/Guardrails.java Outdated
Comment thread src/java/org/apache/cassandra/db/guardrails/Guardrails.java
Comment thread src/java/org/apache/cassandra/io/compress/ZstdCompressorBase.java Outdated
compressor.pooledCompressContexts() <= threads);
assertTrue(compressor.pooledDecompressContexts() <= threads);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the test cases to exercise when ok == false during compress and uncompress.

Comment thread src/java/org/apache/cassandra/db/compression/CompressionDictionaryCache.java Outdated
// than a loser whose selfRef the cache would never own or release (CASSANDRA-21047 leak).
DictId newDictId = compressionDictionary.dictId();
cache.get(newDictId, id -> {
CompressionDictionary cached = cache.get(newDictId, id -> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: just return w/o cached declaration?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry i dont understand, there is logic following after this as well, we can not return immediately here, so we need to put this into cached for a while, no?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot return here. You are right. I made a mistake when reading the code on the UI.

Comment thread src/java/org/apache/cassandra/db/ColumnFamilyStore.java Outdated
…chunk

patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANRA-21672
@smiklosovic
smiklosovic force-pushed the CASSANDRA-21672-21677-21680-21681-6.0 branch from abe700b to 80d92ef Compare September 18, 2026 10:23
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21677
…compressed SSTables concurrently

patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21680
…stale dictionary

patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21681
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21021
@smiklosovic
smiklosovic force-pushed the CASSANDRA-21672-21677-21680-21681-6.0 branch from 80d92ef to a2830eb Compare September 18, 2026 17:57
@smiklosovic
smiklosovic force-pushed the CASSANDRA-21672-21677-21680-21681-6.0 branch from a2830eb to aa80706 Compare September 18, 2026 19:07
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.

2 participants