-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #8755] batch send support compression #8746
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8746 +/- ##
=============================================
- Coverage 47.37% 47.37% -0.01%
+ Complexity 11558 11553 -5
=============================================
Files 1282 1282
Lines 89864 89890 +26
Branches 11563 11568 +5
=============================================
+ Hits 42575 42587 +12
- Misses 42040 42048 +8
- Partials 5249 5255 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ping @lizhimins for review |
ping @RongtongJin for review |
|
3db2a85
to
22c8c07
Compare
b2ebf53
to
7262743
Compare
@lizhanhui integration test added and passed |
ping @lollipopjin for review |
ping @RongtongJin for review |
@RongtongJin @fuyou001 @tianliuliu @lollipopjin @lizhanhui please review this, thanks. |
@RongtongJin @fuyou001 @tianliuliu @lollipopjin @lizhanhui please review this, thanks. |
closes #8755
Brief Description
by default,
DefaultMQProducer
will compress message body when body length is longer than 4k, but if send with batch(send( Collection<Message> msgs)
), body are not compressed.this pr compress each message body when average length is larger than 4k
How Did You Test This Change?
send and receive batch messages with 8k body(larger than 4k default compress length), check commit log content is compressed. consume message body is 8k length.