[
https://issues.apache.org/jira/browse/FLINK-34116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17807503#comment-17807503
]
Junrui Li commented on FLINK-34116:
-----------------------------------
This bug arose due to discrepancies in {{ClassCastException}} error messages
between different JDK versions, leading to test failures when assertions
depended on specific error text.
I will fix it soon.
> GlobalConfigurationTest.testInvalidStandardYamlFile fails
> ---------------------------------------------------------
>
> Key: FLINK-34116
> URL: https://issues.apache.org/jira/browse/FLINK-34116
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Configuration
> Affects Versions: 1.19.0
> Reporter: Matthias Pohl
> Priority: Major
> Labels: pull-request-available, test-stability
>
> All build failures in the same build:
> *
> [https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=56416&view=logs&j=f0ac5c25-1168-55a5-07ff-0e88223afed9&t=50bf7a25-bdc4-5e56-5478-c7b4511dde53&l=6274]
> *
> [https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=56416&view=logs&j=675bf62c-8558-587e-2555-dcad13acefb5&t=5878eed3-cc1e-5b12-1ed0-9e7139ce0992&l=6256]
> *
> [https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=56416&view=logs&j=d06b80b4-9e88-5d40-12a2-18072cf60528&t=609ecd5a-3f6e-5d0c-2239-2096b155a4d0&l=6176]
> {code:java}
> Jan 16 01:38:10 01:38:10.780 [ERROR] Failures:
> Jan 16 01:38:10 01:38:10.781 [ERROR]
> GlobalConfigurationTest.testInvalidStandardYamlFile:200
> Jan 16 01:38:10 Multiple Failures (1 failure)
> Jan 16 01:38:10 -- failure 1 --
> Jan 16 01:38:10 Expecting actual:
> Jan 16 01:38:10 "java.lang.RuntimeException: Error parsing YAML
> configuration.
> Jan 16 01:38:10 at
> org.apache.flink.configuration.GlobalConfiguration.loadYAMLResource(GlobalConfiguration.java:351)
> Jan 16 01:38:10 at
> org.apache.flink.configuration.GlobalConfiguration.loadConfiguration(GlobalConfiguration.java:162)
> Jan 16 01:38:10 at
> org.apache.flink.configuration.GlobalConfiguration.loadConfiguration(GlobalConfiguration.java:115)
> Jan 16 01:38:10 at
> org.apache.flink.configuration.GlobalConfigurationTest.lambda$testInvalidStandardYamlFile$3(GlobalConfigurationTest.java:198)
> Jan 16 01:38:10 at
> org.assertj.core.api.ThrowableAssert.catchThrowable(ThrowableAssert.java:63)
> Jan 16 01:38:10 at
> org.assertj.core.api.AssertionsForClassTypes.catchThrowable(AssertionsForClassTypes.java:892)
> Jan 16 01:38:10 at
> org.assertj.core.api.Assertions.catchThrowable(Assertions.java:1366)
> Jan 16 01:38:10 at
> org.assertj.core.api.Assertions.assertThatThrownBy(Assertions.java:1210)
> Jan 16 01:38:10 at
> org.apache.flink.configuration.GlobalConfigurationTest.testInvalidStandardYamlFile(GlobalConfigurationTest.java:198)
> Jan 16 01:38:10 at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Jan 16 01:38:10 at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> Jan 16 01:38:10 at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> Jan 16 01:38:10 at
> java.base/java.lang.reflect.Method.invoke(Method.java:566)
> [...] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)