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 #11550

Closed
dbwiddis opened this issue Dec 9, 2023 · 17 comments · Fixed by #13988 or #14345 · May be fixed by #11551
Closed

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

dbwiddis opened this issue Dec 9, 2023 · 17 comments · Fixed by #13988 or #14345 · May be fixed by #11551
Assignees
Labels
Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. CI CI related good first issue Good for newcomers Plugins v3.0.0 Issues and PRs related to version 3.0.0

Comments

@dbwiddis
Copy link
Member

dbwiddis commented Dec 9, 2023

From https://bugs.openjdk.org/browse/JDK-8305402

COMPAT locale provider has remained to keep the backward compatibility of JDK 8's locale data, since CLDR-based locale data became the default in JDK 9. The intention was to encourage applications to migrate to CLDR, so for future removal of the COMPAT locale provider, acknowledging the user of future removal is recommended.

To Reproduce
Steps to reproduce the behavior:

  1. Run tests on a plugin using JDK 21
  2. Observe multiple warnings:
> Task :test
Dec 09, 2023 12:30:31 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release

Expected behavior
No warnings.

Plugins

Error occurs when testing any plugin which inherits from OpenSearchTestBasePlugin

Host/Environment (please complete the following information):

  • OS: macOS 14.1.2 (aarch64)
  • JDK Version 21.0.1

Additional context

The locale is set here:

test.systemProperty("java.locale.providers", "SPI,COMPAT");

The fix is to simply replace COMPAT with CLDR. Some tests will break and will need to be fixed.

Note that the "breaking change" here was the JDK default behavior, so this only breaks our tests which explicitly set COMPAT, overriding the default JDK. SO this should be safe to backport.

CLDR is supported since JDK11: https://www.oracle.com/java/technologies/javase/jdk11-suported-locales.html

@dbwiddis dbwiddis added good first issue Good for newcomers CI CI related untriaged Plugins Build Build Tasks/Gradle Plugin, groovy scripts, build tools, Javadoc enforcement. labels Dec 9, 2023
hurutoriya added a commit to hurutoriya/OpenSearch that referenced this issue Dec 10, 2023
opensearch-project#11550

Signed-off-by: Shunya Ueta <hurutoriya@users.noreply.github.com>
@peternied peternied added >breaking Identifies a breaking change. and removed untriaged labels Feb 7, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2 3 4]
@dbwiddis Thanks for filing this issue.

Before backporting this to 2.x please be sure that isn't a breaking change, as it looks like it could be.

@dbwiddis
Copy link
Member Author

dbwiddis commented Feb 7, 2024

@peternied Good call-out. I did research and this is a breaking change in terms of output format, so should be 3.x only.

@hurutoriya I see you got started on a PR for this. Will you be updating that?

@dbwiddis
Copy link
Member Author

dbwiddis commented Feb 7, 2024

@peternied Looked at this again, I don't think it's a breaking change.

The actual breaking change was in upgrading JDK8 to any later JDK. We explicitly set the locale in our tests to enforce the older behavior. So this only breaks tests, and anyone already using a later JDK than 8 either has updated to the new code, or is explicitly setting COMPAT themselves.

@peternied peternied removed the >breaking Identifies a breaking change. label Feb 7, 2024
@akolarkunnu
Copy link
Contributor

akolarkunnu commented May 28, 2024

@peternied Can you please assign this bug to me, I identified fix for this.

@peternied
Copy link
Member

@peternied Can you please assign this bug to me, I identified fix for this.

@akolarkunnu Done, thanks for taking it on!

@akolarkunnu
Copy link
Contributor

akolarkunnu commented May 29, 2024

@dbwiddis You mentioned in this bug description that, configuration of COMPAT locale provider only in the file OpenSearch/buildSrc/src/main/java/org/opensearch/gradle/OpenSearchTestBasePlugin.java. But COMPAT configurations exists in the other files too, listed below:
./distribution/tools/launchers/src/main/java/org/opensearch/tools/launchers/SystemJvmOptions.java
./gradle/ide.gradle
./server/src/internalClusterTest/java/org/opensearch/search/query/SearchQueryIT.java

I feel we have to remove COMPAT locale provider from these files also for java versions > JavaVersion.VERSION_1_8.

Shall we address all these places together in this bug or handle each one separately?

Your opinion please.

@andrross
Copy link
Member

@akolarkunnu Yeah I think we should handle it in all places. Seems reasonable to take care of all of them at the same time, assuming the fix doesn't grow too large.

akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 3, 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.

Resolves opensearch-project#11550
Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 4, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue Jun 4, 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this issue 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.

Resolves opensearch-project#11550
Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
reta pushed a commit that referenced this issue Jun 5, 2024
* 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 #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 #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>
LantaoJin pushed a commit to LantaoJin/OpenSearch that referenced this issue 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>
@reta reta reopened this Jun 6, 2024
@reta
Copy link
Collaborator

reta commented Jun 6, 2024

Reopening the issue, the change introduced new flaky tests and was reverted: #14039

@reta reta removed the untriaged label Jun 6, 2024
@akolarkunnu
Copy link
Contributor

akolarkunnu commented Jun 7, 2024

Reopening the issue, the change introduced new flaky tests and was reverted: #14039

Is it a random failure or consistent in CI ? If it happened multiple times, can I get that multiple error traces ?

I ran it locally and it passes consistently.

From error log, "UTC" is replaced with "م ع و" . It looks like some synchronization or threading issue from test side.

@reta
Copy link
Collaborator

reta commented Jun 7, 2024

Is it a random failure or consistent in CI ? If it happened multiple times, can I get that multiple error traces ?

It is all provided in the description of #14039:

./gradlew ':server:test' --tests "org.opensearch.common.joda.JavaJodaTimeDuellingTests.testIncompatiblePatterns" -Dtests.seed=D64AD5330C8A32D4
./gradlew ':server:test' --tests "org.opensearch.common.joda.JavaJodaTimeDuellingTests.testIncompatiblePatterns" -Dtests.seed=5593D79ECB158B24

parv0201 pushed a commit to parv0201/OpenSearch that referenced this issue 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>
@akolarkunnu
Copy link
Contributor

A simple reproducer of this issue:

import java.util.Locale;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;

public class TestClass {
public static void main(String[] args) {
System.setProperty("java.locale.providers", "SPI,CLDR");
DateTime dateTime = DateTimeFormat.forPattern("YYYY-MM-dd'T'HH:mm:ss.SSSZ")
.withOffsetParsed()
.parseDateTime("2019-01-01T01:01:01.001+0000");
String jodaZoneId = DateTimeFormat.forPattern("YYYY-MM-dd'T'HH:mm:ss.SSSz")
.withLocale(Locale.forLanguageTag("sd-Arab")).print(dateTime);
System.out.println("jodaZoneId: " + jodaZoneId);
}
}

@reta
Copy link
Collaborator

reta commented Jun 11, 2024

@akolarkunnu I would like to point out this is not a single case - there are other failing combinations.

@akolarkunnu
Copy link
Contributor

@reta Can you please share the details.

@reta
Copy link
Collaborator

reta commented Jun 11, 2024

@reta Can you please share the details.

2 are above, for others - run ./gradlew ':server:test' --tests "org.opensearch.common.joda.JavaJodaTimeDuellingTests.testIncompatiblePatterns" repeatably to have more seeds tested

@akolarkunnu
Copy link
Contributor

@reta Can you please share the details.

2 are above, for others - run ./gradlew ':server:test' --tests "org.opensearch.common.joda.JavaJodaTimeDuellingTests.testIncompatiblePatterns" repeatably to have more seeds tested

ok, that means the same test case fails for different time zones, that's expected. Any other test cases or use cases are affected?

@reta
Copy link
Collaborator

reta commented Jun 11, 2024

Any other test cases or use cases are affected?

I don't know at this moment

@akolarkunnu
Copy link
Contributor

I reported a bug against OpenJDK about this behavioral change(https://bugs.openjdk.org/browse/JDK-8334225) and their explanation is:
"CLDR v45 has the following translation of "Etc/UTC" (an alias to "UTC") zone in Sindhi language:
https://unicode.org/cldr/charts/45/summary/sd.html#4c4fea4c1e106866
Thus the behavior is the expected one."

So I will adjust the test case assertion accordingly.

akolarkunnu added a commit to akolarkunnu/OpenSearch that referenced this issue Jun 14, 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.

Resolves opensearch-project#11550

Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu added a commit to akolarkunnu/OpenSearch that referenced this issue Jun 14, 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.

Resolves opensearch-project#11550
akolarkunnu added a commit to akolarkunnu/OpenSearch that referenced this issue Jun 14, 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.

Resolves opensearch-project#11550

Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
@reta reta closed this as completed in 7650e64 Jun 15, 2024
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this issue Jul 12, 2024
…h-project#14345)

* 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>

* 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: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this issue 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 issue Aug 22, 2024
…h-project#14345)

* 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>

* 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: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
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 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
5 participants