[
https://issues.apache.org/jira/browse/FLINK-33443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krishna Anandan Ganesan updated FLINK-33443:
--------------------------------------------
Description:
We are proposing to make the following test stable:
{code:java}
org.apache.flink.connectors.hive.HiveRunnerITCase.testWriteComplexType{code}
*STEPS TO REPRODUCE THE ISSUE:*
# The following command can be run to execute the test with the
[NonDex|https://github.com/TestingResearchIllinois/NonDex] plugin:
{code:java}
mvn -pl flink-connectors/flink-connector-hive
edu.illinois:nondex-maven-plugin:2.1.1:nondex
-Dtest=org.apache.flink.connectors.hive.HiveRunnerITCase#testWriteComplexType
{code}
# The following error will be encountered:
{code:java}
[ERROR] Failures:
[ERROR] HiveRunnerITCase.testWriteComplexType:166
expected: "[1,2,3] {1:"a",2:"b"} {"f1":3,"f2":"c"}"
but was: "[1,2,3] {2:"b",1:"a"} {"f1":3,"f2":"c"}"
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0{code}
*ROOT CAUSE ANALYSIS:*
The test is currently flaky because of the assumption that the order of
elements received in the _result_ variable will be consistent. There are
currently two versions of query output that can be stored in _result._
# The actual order that is expected where the output of the map attribute is
\{1: "a", 2: "b"}.
# The other order is the one shown in the error extract above where the
ordering of the map attribute from the table is \{2: "b", 1: "a"}.
*POTENTIAL FIX:*
* The fix that I can suggest/have ready to raise a PR for is by introducing
another assertion on the second variant of the query output.
*
was:
We are proposing to make the following test stable:
{code:java}
org.apache.flink.connectors.hive.HiveRunnerITCase.testWriteComplexType{code}
*STEPS TO REPRODUCE THE ISSUE:*
# The following command can be run to execute the test with the
[NonDex|https://github.com/TestingResearchIllinois/NonDex] plugin:
{code:java}
mvn -pl flink-connectors/flink-connector-hive
edu.illinois:nondex-maven-plugin:2.1.1:nondex
-Dtest=org.apache.flink.connectors.hive.HiveRunnerITCase#testWriteComplexType
{code}
# The following error will be encountered:
{code:java}
[ERROR] Failures:
[ERROR] HiveRunnerITCase.testWriteComplexType:166
expected: "[1,2,3] {1:"a",2:"b"} {"f1":3,"f2":"c"}"
but was: "[1,2,3] {2:"b",1:"a"} {"f1":3,"f2":"c"}"
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0{code}
*ROOT CAUSE ANALYSIS:*
The test is currently flaky because of the assumption that the order of
elements received in the _result_ variable will be consistent. There are
currently two versions of query output that can be stored in _result._
# The actual order that is expected where the output of the map attribute is
\{1:"a", 2:"b"}.
# The other order being the one shown in the error extract above where the
ordering of the map attribute from the table is \{2:"b", 1:"a"}.
*POTENTIAL FIX:*
> Make the test "testWriteComplexType" stable
> -------------------------------------------
>
> Key: FLINK-33443
> URL: https://issues.apache.org/jira/browse/FLINK-33443
> Project: Flink
> Issue Type: Bug
> Components: Runtime / State Backends
> Reporter: Krishna Anandan Ganesan
> Priority: Minor
>
> We are proposing to make the following test stable:
> {code:java}
> org.apache.flink.connectors.hive.HiveRunnerITCase.testWriteComplexType{code}
> *STEPS TO REPRODUCE THE ISSUE:*
> # The following command can be run to execute the test with the
> [NonDex|https://github.com/TestingResearchIllinois/NonDex] plugin:
> {code:java}
> mvn -pl flink-connectors/flink-connector-hive
> edu.illinois:nondex-maven-plugin:2.1.1:nondex
> -Dtest=org.apache.flink.connectors.hive.HiveRunnerITCase#testWriteComplexType
> {code}
> # The following error will be encountered:
> {code:java}
> [ERROR] Failures:
> [ERROR] HiveRunnerITCase.testWriteComplexType:166
> expected: "[1,2,3] {1:"a",2:"b"} {"f1":3,"f2":"c"}"
> but was: "[1,2,3] {2:"b",1:"a"} {"f1":3,"f2":"c"}"
> [INFO]
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0{code}
> *ROOT CAUSE ANALYSIS:*
> The test is currently flaky because of the assumption that the order of
> elements received in the _result_ variable will be consistent. There are
> currently two versions of query output that can be stored in _result._
> # The actual order that is expected where the output of the map attribute is
> \{1: "a", 2: "b"}.
> # The other order is the one shown in the error extract above where the
> ordering of the map attribute from the table is \{2: "b", 1: "a"}.
> *POTENTIAL FIX:*
> * The fix that I can suggest/have ready to raise a PR for is by introducing
> another assertion on the second variant of the query output.
> *
--
This message was sent by Atlassian Jira
(v8.20.10#820010)