GitHub user rdhabalia opened a pull request:
https://github.com/apache/incubator-pulsar/pull/534
Validate msg size after compressing the msg while sending msg
### Motivation
As per discussion at #523 : add msg-size validation after compressing the
message for non-batch message.
### Modifications
- check msg-size after compressing the message.
- for batch-msg : compression happens on a container-msg so, it requires to
check msg-size upfront rather checking later on when we try to compress
container-msg.
### Result
- if msg is larger than max_msg_size (eg. 5 MB) but compression makes in
less than it then producer will publish the message successfully.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rdhabalia/pulsar max-size
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-pulsar/pull/534.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #534
----
commit 5b499c53c1f858ffd0e30c28b5570b446d295ec6
Author: rdhabalia <[email protected]>
Date: 2017-06-27T22:53:32Z
Validate msg size after compressing the msg while sending msg
----
---
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.
---