Details
-
Improvement
-
Resolution: Works as Designed
-
Unknown
-
None
-
None
-
None
Description
Currently, the Zstandard library loading only happens when ZstdCompressor#compress is called. This can be problematic when the caller thread cannot do a blocking call. In our case, it's Netty's event loop thread, and BlockHound throws a BlockingOperationError.
Instead, we can load the class when the ZstdCompressor instance is created.