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

COMPAT locale provider will be removed in a future release #13988

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

akolarkunnu
Copy link
Contributor

@akolarkunnu akolarkunnu commented Jun 5, 2024

Description

From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Related Issues

Resolves #11550

Signed-off-by: Muneer Kolarkunnu muneer.kolarkunnu@netapp.com

Check List

  • New functionality includes testing.
  • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • API changes companion pull request created.
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@github-actions github-actions bot added Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. CI CI related good first issue Good for newcomers Plugins labels Jun 5, 2024
@akolarkunnu akolarkunnu force-pushed the localeprovider2 branch 3 times, most recently from ace314c to 6ca1ba4 Compare June 5, 2024 04:09
Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
@reta reta mentioned this pull request Jun 5, 2024
19 tasks
Copy link
Contributor

github-actions bot commented Jun 5, 2024

❌ Gradle check result for c111166: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@akolarkunnu
Copy link
Contributor Author

Known flaky org.opensearch.cluster.coordination.AwarenessAttributeDecommissionIT.testConcurrentDecommissionAction - #12197
Known flaky org.opensearch.indexing.IndexActionIT.testAutoGenerateIdNoDuplicates {p0={"cluster.indices.replication.strategy":"SEGMENT"}} - #12408

@akolarkunnu
Copy link
Contributor Author

❌ Gradle check result for c111166: FAILURE

#12197
#12408

Copy link
Contributor

github-actions bot commented Jun 5, 2024

✅ Gradle check result for c111166: SUCCESS

@reta
Copy link
Collaborator

reta commented Jun 5, 2024

Just to note, did a number of test runs, seems to be no flakyness introduced by this change

@reta reta merged commit ba0df74 into opensearch-project:main Jun 5, 2024
28 checks passed
LantaoJin pushed a commit to LantaoJin/OpenSearch that referenced this pull request Jun 6, 2024
…h-project#13988)

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

---------

Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Co-authored-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
@akolarkunnu akolarkunnu deleted the localeprovider2 branch June 6, 2024 07:15
reta added a commit to reta/OpenSearch that referenced this pull request Jun 6, 2024
…pensearch-project#13988)"

This reverts commit ba0df74.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
reta added a commit to reta/OpenSearch that referenced this pull request Jun 6, 2024
reta added a commit that referenced this pull request Jun 6, 2024
…13988)" (#14039)

This reverts commit ba0df74.

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
parv0201 pushed a commit to parv0201/OpenSearch that referenced this pull request Jun 10, 2024
…h-project#13988)

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

---------

Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Co-authored-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
parv0201 pushed a commit to parv0201/OpenSearch that referenced this pull request Jun 10, 2024
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
…h-project#13988)

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

* COMPAT locale provider will be removed in a future release

Description:
From JDK21 onwards a new warning has started to come, "WARNING: COMPAT locale provider will be removed in a future release". So, we have to avoid usage of COMPAT provider. We were setting exlpicitly to COMPAT locale provider in couple of places, this change is to convert COMPAT to CLDR locale provider. After this change, couple of tests started to fail becasue some locale data has minor changes in CLDR compared to COMPAT. For example, day and month short names of GERMAN "de" locale are different in CLDR and COMPAT, just need to add a . in the end for CLDR.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>

---------

Signed-off-by: Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
Co-authored-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. CI CI related good first issue Good for newcomers Plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COMPAT locale provider will be removed in a future release
2 participants