Github user jai1 commented on a diff in the pull request:
https://github.com/apache/incubator-pulsar/pull/534#discussion_r124423118
--- Diff:
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java ---
@@ -196,13 +198,27 @@ public void sendAsync(Message message, SendCallback
callback) {
// If compression is enabled, we are compressing, otherwise it
will simply use the same buffer
int uncompressedSize = payload.readableBytes();
+ int compressedSize = payload.readableBytes();
ByteBuf compressedPayload = payload;
// batch will be compressed when closed
if (!isBatchMessagingEnabled()) {
compressedPayload = compressor.encode(payload);
payload.release();
+ compressedSize = compressedPayload.readableBytes();
}
--- End diff --
int compressedSize = compressedPayload.readableBytes();
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---