-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Feature] Add the ability to compress and decompress tar archive file with ZStandard and LZ4 compressors #13782
Conversation
Signed-off-by: Jack Luo <jluo14@ext.uber.com>
Signed-off-by: Jack Luo <jluo14@ext.uber.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13782 +/- ##
============================================
+ Coverage 61.75% 61.94% +0.19%
+ Complexity 207 198 -9
============================================
Files 2436 2558 +122
Lines 133233 141224 +7991
Branches 20636 21977 +1341
============================================
+ Hits 82274 87480 +5206
- Misses 44911 47078 +2167
- Partials 6048 6666 +618
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Mostly good
pinot-common/src/main/java/org/apache/pinot/common/utils/TarCompressionUtils.java
Show resolved
Hide resolved
pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java
Outdated
Show resolved
Hide resolved
pinot-common/src/main/java/org/apache/pinot/common/utils/TarCompressionUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jack Luo <jluo14@ext.uber.com>
Signed-off-by: Jack Luo <jluo14@ext.uber.com>
… class instance Signed-off-by: Jack Luo <jluo14@ext.uber.com>
This pull request enhances tar archive compression and decompression by adding support for ZStandard and LZ4, alongside GZip. The code is refactored for easy extensibility, allowing new compressors to be added with minimal effort if supported by Apache Commons Compress.
Compression typically infers the compressor from the file extension, but it can also be specified by name. Decompression uses magic numbers to automatically identify the compressor, utilizing Apache Commons Compress functionality.
This update is a step towards enabling ZStandard compression for segment data in Deepstore. As noted in the flamegraph profiling in issue #13319, GZip compression is currently a CPU bottleneck, consuming 5-10% of overall CPU usage in petabyte-scale production environments.