You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Sumit Deshinge <su...@gmail.com> on 2022/08/03 15:08:44 UTC

How to enable ignite compress capability

Hi,

I am trying to compress data using the ignite compress feature. I have
copied all the jars from ignite-compress module's lib directory into my
project's classpath, but still I am facing below error:
*class org.apache.ignite.IgniteCheckedException: Make sure that
ignite-compress module is in classpath*

Is there anything else that needs to be done in a custom app deployment?

Below are some more stack traces:
Aug 3, 2022 8:31:46 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to wait for checkpoint finish during cache stop.
class org.apache.ignite.IgniteCheckedException: Compound exception for
CountDownFuture.
at
org.apache.ignite.internal.util.future.CountDownFuture.addError(CountDownFuture.java:72)
at
org.apache.ignite.internal.util.future.CountDownFuture.onDone(CountDownFuture.java:46)
at
org.apache.ignite.internal.util.future.CountDownFuture.onDone(CountDownFuture.java:28)
at
org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:478)
at
org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointPagesWriter.run(CheckpointPagesWriter.java:167)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
* Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
detect storage block size on Windows Server 2019 10.0 amd64*
at
org.apache.ignite.internal.processors.cache.CacheCompressionManager.compressPage(CacheCompressionManager.java:98)
at
org.apache.ignite.internal.processors.cache.persistence.pagemem.PageReadWriteManagerImpl.write(PageReadWriteManagerImpl.java:101)
at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.write(FilePageStoreManager.java:634)

-- 
Regards,
Sumit Deshinge

Re: How to enable ignite compress capability

Posted by Jeremy McMillan <je...@gridgain.com>.
https://github.com/apache/ignite/blob/da8a6bb4756c998aa99494d395752be96d841ec8/modules/core/src/main/java/org/apache/ignite/internal/processors/compress/FileSystemUtils.java#L45

Is Windows file storage supported for use with compression?

It isn't clear whether the Java FileStore spi supports the block size
attribute.
https://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html

This looks from my perspective that Windows FileStore support would need
some additional implementation.
https://github.com/apache/ignite/blob/da8a6bb4756c998aa99494d395752be96d841ec8/modules/compress/src/main/java/org/apache/ignite/internal/processors/compress/NativeFileSystemLinux.java



On Wed, Aug 3, 2022 at 10:09 AM Sumit Deshinge <su...@gmail.com>
wrote:

> Hi,
>
> I am trying to compress data using the ignite compress feature. I have
> copied all the jars from ignite-compress module's lib directory into my
> project's classpath, but still I am facing below error:
> *class org.apache.ignite.IgniteCheckedException: Make sure that
> ignite-compress module is in classpath*
>
> Is there anything else that needs to be done in a custom app deployment?
>
> Below are some more stack traces:
> Aug 3, 2022 8:31:46 PM org.apache.ignite.logger.java.JavaLogger error
> SEVERE: Failed to wait for checkpoint finish during cache stop.
> class org.apache.ignite.IgniteCheckedException: Compound exception for
> CountDownFuture.
> at
> org.apache.ignite.internal.util.future.CountDownFuture.addError(CountDownFuture.java:72)
> at
> org.apache.ignite.internal.util.future.CountDownFuture.onDone(CountDownFuture.java:46)
> at
> org.apache.ignite.internal.util.future.CountDownFuture.onDone(CountDownFuture.java:28)
> at
> org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:478)
> at
> org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointPagesWriter.run(CheckpointPagesWriter.java:167)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> * Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to
> detect storage block size on Windows Server 2019 10.0 amd64*
> at
> org.apache.ignite.internal.processors.cache.CacheCompressionManager.compressPage(CacheCompressionManager.java:98)
> at
> org.apache.ignite.internal.processors.cache.persistence.pagemem.PageReadWriteManagerImpl.write(PageReadWriteManagerImpl.java:101)
> at
> org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.write(FilePageStoreManager.java:634)
>
> --
> Regards,
> Sumit Deshinge
>
>