You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/18 08:34:41 UTC

[GitHub] [pulsar-client-node] savearray2 commented on a change in pull request #121: Includes Support for ZSTD and SNAPPY Compression

savearray2 commented on a change in pull request #121:
URL: https://github.com/apache/pulsar-client-node/pull/121#discussion_r490790233



##########
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:
       I can see if I can update the docker container and include the tests.




----------------------------------------------------------------
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:
users@infra.apache.org