Deprecate mode#3304
Conversation
Signed-off-by: Andrew Klepchick <aklepchi@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3304 +/- ##
============================================
- Coverage 83.48% 83.39% -0.10%
+ Complexity 4269 4267 -2
============================================
Files 450 450
Lines 15509 15521 +12
Branches 2006 2009 +3
============================================
- Hits 12948 12943 -5
- Misses 1768 1781 +13
- Partials 793 797 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Note: running for bwc tests. Not ready yet
Description
Deprecates the
modeparameter (in_memory,on_disk) forknn_vectorfield mappings, starting in OpenSearch 3.7.0. Storage mode is now derived automatically fromcompression_level, makingmoderedundant as a user-facing input.Changes:
Modeenum marked@Deprecated(since = "3.7.0", forRemoval = true)— will be removed in 4.0modeis explicitly provided on an index created at version 3.7.0+, a deprecation warning is loggedcompression_levelis provided (nomode), mode is derived automatically:1x/2x->in_memory,4xand above ->on_diskMode.deriveMode(CompressionLevel)added as the canonical derivation methodmodevalue continue to work unchanged (BwC)modeindices surviving upgrade, and compression-only indices resolving correctly on the upgraded clusterRelated Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.