Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4402

Load Zstandard library during connection creation time

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Unknown 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.

      Attachments

        Activity

          People

            valentin.kovalenko@mongodb.com Valentin Kavalenka
            halil.sener@teampicnic.com Halil İbrahim Şener
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: