Skip to content
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 #8166]optimize: make compression type configurable in producer clinet level #8167

Merged
merged 1 commit into from
May 23, 2024

Conversation

humkum
Copy link
Contributor

@humkum humkum commented May 20, 2024

Which Issue(s) This PR Fixes

Fixes #8166

Brief Description

Configure production compression at the producer instance level instead of at the process level.

How Did You Test This Change?

Producer configure the compression type with "ZSTD", and send message who's body over 4KB, debug the compression type producer use is ZSTDCompressor.

image

@humkum humkum force-pushed the optimize-compress branch 2 times, most recently from 1ab1d20 to 98f0162 Compare May 20, 2024 09:18
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 61.53846% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 42.89%. Comparing base (0ad0244) to head (98f0162).

Files Patch % Lines
...he/rocketmq/client/producer/DefaultMQProducer.java 54.54% 5 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8167      +/-   ##
=============================================
- Coverage      42.92%   42.89%   -0.03%     
+ Complexity     10372    10368       -4     
=============================================
  Files           1270     1270              
  Lines          88696    88698       +2     
  Branches       11402    11402              
=============================================
- Hits           38072    38050      -22     
- Misses         45922    45943      +21     
- Partials        4702     4705       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RongtongJin RongtongJin merged commit dcc88c6 into apache:develop May 23, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants