ivandasch commented on code in PR #10430:
URL: https://github.com/apache/ignite/pull/10430#discussion_r1054306440
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManager.java:
##########
@@ -2670,6 +2738,21 @@ private boolean readPageFromStore(long pageId,
ByteBuffer buff) throws IgniteChe
assert read : toDetailString(pageId);
+ if (PageIO.getCompressionType(buff) !=
CompressionProcessor.UNCOMPRESSED_PAGE) {
+ int comprPageSz = PageIO.getCompressedSize(buff);
+
+ compressProc.decompressPage(buff, store.getPageSize());
+
+ if (punchHoleEnabled && comprPageSz < store.getPageSize()) {
+ try {
+ store.punchHole(pageId, comprPageSz);
+ }
+ catch (Exception ignored) {
Review Comment:
Because there is no need to fail here, punching holes is optional.
--
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]