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

[Backport 2.x] Fix: avoid ZSTD codec from overriding service codec factory. #7149

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 569e90c from #7037.

* Fix: enable ZSTD codec only if index.codec is set to ZSTD.

  - addresses #7012

Signed-off-by: Mulugeta Mammo <[email protected]>

* Removed custom CodecService and CodecServiceFactory classes.

  - Removed custom classes for CodecService and CodecServiceFactory.
  - Also removed PerFieldMappingPostingFormatCodec -- not required.
  - Added documentation.

Signed-off-by: Mulugeta Mammo <[email protected]>

* Bump zstd-jni version from 1.5.4-1 to 1.5.5-1.

  - Zstandard version 1.5.5 contains a bug fix for a rare corruption error
    described here: https://github.com/facebook/zstd/releases/tag/v1.5.5. The
    zstd-jni version we use here, 1.5.5-1, uses Zstandard v1.5.5.

Signed-off-by: Mulugeta Mammo <[email protected]>

---------

Signed-off-by: Mulugeta Mammo <[email protected]>
(cherry picked from commit 569e90c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testStrictWeightedRoutingWithCustomString
      1 org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=pit/10_basic/Delete all}

@codecov-commenter
Copy link

Codecov Report

Merging #7149 (717d88f) into 2.x (6024485) will increase coverage by 0.04%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x    #7149      +/-   ##
============================================
+ Coverage     70.29%   70.34%   +0.04%     
- Complexity    59642    59764     +122     
============================================
  Files          4851     4848       -3     
  Lines        287130   287107      -23     
  Branches      41716    41714       -2     
============================================
+ Hits         201836   201960     +124     
+ Misses        68409    68298     -111     
+ Partials      16885    16849      -36     
Impacted Files Coverage Δ
...ch/index/codec/customcodecs/CustomCodecPlugin.java 0.00% <ø> (ø)
...customcodecs/Lucene95CustomStoredFieldsFormat.java 25.00% <ø> (ø)
...opensearch/index/codec/customcodecs/ZstdCodec.java 80.00% <ø> (ø)
.../index/codec/customcodecs/ZstdCompressionMode.java 84.09% <ø> (ø)
...arch/index/codec/customcodecs/ZstdNoDictCodec.java 80.00% <ø> (ø)
.../codec/customcodecs/ZstdNoDictCompressionMode.java 76.71% <ø> (ø)

... and 485 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@reta reta merged commit 3a7c43b into 2.x Apr 13, 2023
@github-actions github-actions bot deleted the backport/backport-7037-to-2.x branch April 13, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants