Skip to content

[ISSUE #11512] fix(common): parse compression type with Locale.ROOT - #11513

Open
sharanggupta wants to merge 1 commit into
apache:developfrom
sharanggupta:compressiontype-locale-root
Open

sharanggupta wants to merge 1 commit into
apache:developfrom
sharanggupta:compressiontype-locale-root

Conversation

@sharanggupta

Copy link
Copy Markdown

Which Issue(s) This PR Fixes

Fixes #11512

Brief Description

CompressionType.of upper-cased the name with the default locale, so under the Turkish locale a lower/mixed-case value containing i (e.g. zlib -> ZLİB) missed the switch and threw at producer start-up. Parse with Locale.ROOT and add a regression test.

How Did You Test This Change?

Added CompressionTypeTest.testCompressionTypeOfIsLocaleIndependent (sets default locale to tr-TR, asserts of("zlib")/of("Zlib") return ZLIB); full CompressionTypeTest passes.

@lwclover

Copy link
Copy Markdown
Member

LGTM

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.78%. Comparing base (164322b) to head (eefe098).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11513      +/-   ##
=============================================
- Coverage      49.79%   49.78%   -0.01%     
+ Complexity     14407    14404       -3     
=============================================
  Files           1391     1391              
  Lines         103381   103381              
  Branches       13529    13529              
=============================================
- Hits           51477    51471       -6     
- Misses         45686    45688       +2     
- Partials        6218     6222       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

CompressionType.of fails under the Turkish locale

3 participants