-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] [Remove] Deprecated Fractional ByteSizeValue support (#9005) #9007
Merged
nknize
merged 3 commits into
opensearch-project:2.x
from
nknize:backport/backport-9005-to-2.x
Jul 31, 2023
Merged
[Backport 2.x] [Remove] Deprecated Fractional ByteSizeValue support (#9005) #9007
nknize
merged 3 commits into
opensearch-project:2.x
from
nknize:backport/backport-9005-to-2.x
Jul 31, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ect#9005) This commit removes the deprecation warning for fractional bytes size values and, instead, throws an OpenSearchParseException if a user passes in a fraction byte value (e.g., 5.2b).. This leniency was deprecated a long time ago in Legacy 6.2 so the removal should come as no surprise to users. Signed-off-by: Nicholas Walter Knize <[email protected]> (cherry picked from commit 0b1f875)
nknize
added
enhancement
Enhancement or improvement to existing feature or request
backport
PRs or issues specific to backporting features or enhancments
v2.10.0
labels
Jul 31, 2023
nknize
requested review from
reta,
anasalkouz,
andrross,
Bukhtawar,
CEHENKLE,
dblock,
gbbafna,
setiah,
kartg,
kotwanikunal,
mch2,
owaiskazi19,
Rishikesh1159,
ryanbogan,
saratvemulapalli,
shwetathareja,
dreamer-89,
tlfeng,
VachaShah,
dbwiddis,
sachinpkale and
sohami
as code owners
July 31, 2023 18:09
Gradle Check (Jenkins) Run Completed with:
|
reta
approved these changes
Jul 31, 2023
Unblocked by merging fix. |
This fixes a bug where the Setting#byteSizeSetting static method returned fractional byte values when calling .toString inside the lambda. The change is to directly return the bytes value as a string instead of using ByteSizeValue#toString which tries to be smart and by pretty printing in a more human-friendly format. Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: Nicholas Walter Knize <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #9007 +/- ##
============================================
- Coverage 70.83% 70.76% -0.08%
+ Complexity 57398 57364 -34
============================================
Files 4747 4747
Lines 271199 271196 -3
Branches 40003 40003
============================================
- Hits 192116 191907 -209
- Misses 62591 62833 +242
+ Partials 16492 16456 -36
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport
PRs or issues specific to backporting features or enhancments
enhancement
Enhancement or improvement to existing feature or request
v2.10.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 0b1f875 from #9005.
Also adds a couple missing items from the changelog.