Add zstd to native access (#105715)

This commit makes zstd compression available to Elasticsearch. The
library is pulled in through maven in jar files for each platform, then
bundled in a new platform directory under lib. Access to the zstd
compression/decompression is through NativeAccess.
This commit is contained in:
Ryan Ernst 2024-03-13 09:45:12 -07:00 committed by GitHub
parent 8ff083be1b
commit 405b88b882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 870 additions and 34 deletions

View file

@ -131,6 +131,7 @@ def commonPackageConfig(String type, String architecture) {
// top level "into" directive is not inherited from ospackage for some reason, so we must
// specify it again explicitly for copying common files
String platform = 'linux-' + ((architecture == 'x64') ? 'x86_64' : architecture)
into('/usr/share/elasticsearch') {
into('bin') {
with binFiles(type, false)
@ -140,7 +141,7 @@ def commonPackageConfig(String type, String architecture) {
fileMode 0644
}
into('lib') {
with libFiles
with libFiles('linux', architecture)
}
into('modules') {
with modulesFiles('linux', architecture)