-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support bzip2 and gzip compress #1399
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1399 +/- ##
============================================
+ Coverage 72.02% 72.04% +0.01%
- Complexity 791 793 +2
============================================
Files 422 424 +2
Lines 17813 17859 +46
Branches 2769 2772 +3
============================================
+ Hits 12830 12866 +36
- Misses 3568 3574 +6
- Partials 1415 1419 +4 ☔ View full report in Codecov by Sentry. |
Warning Rate Limit Exceeded@EvenLjj has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 20 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe update introduces a new dependency on Changes
Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files ignored due to path filters (2)
bom/pom.xml
is excluded by:!**/*.xml
codec/codec-api/pom.xml
is excluded by:!**/*.xml
Files selected for processing (5)
- codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressor.java (1 hunks)
- codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressor.java (1 hunks)
- codec/codec-api/src/main/resources/META-INF/services/sofa-rpc/com.alipay.sofa.rpc.codec.Compressor (1 hunks)
- codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressorTest.java (1 hunks)
- codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressorTest.java (1 hunks)
Additional comments: 1
codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressor.java (1)
- 34-75: The implementation of both compression and decompression methods in
Bzip2RpcCompressor
is correct and follows best practices. The use ofBZip2CompressorOutputStream
andBZip2CompressorInputStream
from the Apache Commons Compress library is appropriate for the bzip2 algorithm. Error handling is consistent and appropriate.
...codec-api/src/main/resources/META-INF/services/sofa-rpc/com.alipay.sofa.rpc.codec.Compressor
Outdated
Show resolved
Hide resolved
codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressorTest.java
Outdated
Show resolved
Hide resolved
codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressorTest.java
Outdated
Show resolved
Hide resolved
codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressor.java
Outdated
Show resolved
Hide resolved
# Conflicts: # bom/pom.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
bom/pom.xml
is excluded by!**/*.xml
Files selected for processing (1)
- codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressor.java (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- codec/codec-api/src/main/java/com/alipay/sofa/rpc/codec/gzip/GzipRpcCompressor.java
…com.alipay.sofa.rpc.codec.Compressor Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- bom/pom.xml (4 hunks)
- codec/codec-api/src/main/resources/META-INF/services/sofa-rpc/com.alipay.sofa.rpc.codec.Compressor (1 hunks)
Files skipped from review due to trivial changes (2)
- bom/pom.xml
- codec/codec-api/src/main/resources/META-INF/services/sofa-rpc/com.alipay.sofa.rpc.codec.Compressor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressorTest.java (1 hunks)
Files skipped from review due to trivial changes (1)
- codec/codec-api/src/test/java/com/alipay/sofa/rpc/codec/biz2/Bzip2RpcCompressorTest.java
…zip2RpcCompressorTest.java Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary by CodeRabbit
New Features
Bzip2
andGzip
compression options.Tests
Bzip2
andGzip
compression functionalities through added tests.