yifan-c commented on code in PR #4514:
URL: https://github.com/apache/cassandra/pull/4514#discussion_r2590537290
##########
src/java/org/apache/cassandra/db/compression/ZstdCompressionDictionary.java:
##########
@@ -220,7 +252,7 @@ public void tidy()
zstdDictCompressPerLevel.clear();
// Close decompression dictionary
- ZstdDictDecompress decompressDict = dictDecompress;
+ ZstdDictDecompress decompressDict = dictDecompress.get();
Review Comment:
`dictDecompress` is _lazily_ set. If the dictionary has not been used for
decompression when closing, the value could be null.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]