massakam commented on a change in pull request #121: URL: https://github.com/apache/pulsar-client-node/pull/121#discussion_r490757691
########## File path: tests/end_to_end.test.js ########## @@ -376,5 +376,53 @@ const Pulsar = require('../index.js'); await reader.close(); await client.close(); }); + + test('Produce/Read (Compression)', async () => { + const client = new Pulsar.Client({ + serviceUrl: 'pulsar://localhost:6650', + operationTimeoutSeconds: 30, + }); + expect(client).not.toBeNull(); + + const topic = 'persistent://public/default/produce-read-compression'; + const producer = await client.createProducer({ + topic, + sendTimeoutMs: 30000, + batchingEnabled: true, + compressionType: 'ZSTD', Review comment: Ah, it seems that sending a message fails when the compression type is set to SNAPPY. I think this is because the Docker image for building the DEB package doesn't include the SNAPPY library. https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/pkg/rpm/Dockerfile So we shouldn't add a test for SNAPPY yet. ---------------------------------------------------------------- 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: us...@infra.apache.org