yjshen edited a comment on issue #6260: Pulsar-client 2.5.0 throws 
UnsatisfiedLinkError when snappy is used for compression¥
URL: https://github.com/apache/pulsar/issues/6260#issuecomment-588212287
 
 
   I'm trying to reproduce the bug, using:
   
   ```java
   public static void main(String[] args) throws PulsarClientException, 
InterruptedException {
                PulsarClient c = 
PulsarClient.builder().serviceUrl("pulsar://localhost:6650").build();
                String topic = "zzz";
   
                Producer<byte[]> a = 
c.newProducer().topic(topic).compressionType(CompressionType.SNAPPY).create();
                a.send("1".getBytes());  // 
                a.send("b".getBytes());
   
                Reader r = 
c.newReader().topic(topic).startMessageId(MessageId.earliest).create();
                System.out.println(new String(r.readNext().getData()));
                System.out.println(new String(r.readNext().getData()));
   
        }
   ```
   
   Snappy hang at `a.send(1)` forever, however zlib, lz4, ZSTD works as 
expected.
   
   using the artifact:
   ``` xml
   <dependency>
         <groupId>org.apache.pulsar</groupId>
         <artifactId>pulsar-client</artifactId>
         <version>2.5.0</version>
       </dependency>
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to