[
https://issues.apache.org/jira/browse/YARN-11822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Szucs updated YARN-11822:
-------------------------------
Description:
TestFederationProtocolRecords.testSubClusterInfoEqual unit test fails
intermittently.
It looks like a test issue that can be easily fixed: the test compares the
results of two sequentially called Time.now() method in the SubClusterInfo, and
expects to be equal. Using a variable that stores the current time should solve
this issue:
{code:java}
java.lang.AssertionError:
Expected :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
lastStartTime: 1748515355384 ...
Actual :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
lastStartTime: 1748515355385 ...
{code}
was:
TestFederationProtocolRecords.testSubClusterInfoEqual unit test fails
intermittently.
It looks like a test issue that can be easily fixed: the test compares the
results of two sequentially called Time.now() method in the SubClusterInfo, and
expects to be equal. Using a variable that stores the current time should solve
this issue:
{code:java}
java.lang.AssertionError:
Expected :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
lastStartTime: 1748515355384 ...
Actual :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
lastStartTime: 1748515355385 ...
{code}
> Fix flaky unit test in TestFederationProtocolRecords
> ----------------------------------------------------
>
> Key: YARN-11822
> URL: https://issues.apache.org/jira/browse/YARN-11822
> Project: Hadoop YARN
> Issue Type: Task
> Components: test
> Reporter: Peter Szucs
> Assignee: Peter Szucs
> Priority: Minor
> Labels: pull-request-available
>
> TestFederationProtocolRecords.testSubClusterInfoEqual unit test fails
> intermittently.
> It looks like a test issue that can be easily fixed: the test compares the
> results of two sequentially called Time.now() method in the SubClusterInfo,
> and expects to be equal. Using a variable that stores the current time should
> solve this issue:
> {code:java}
> java.lang.AssertionError:
> Expected :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
> lastStartTime: 1748515355384 ...
> Actual :sub_cluster_id { id: "SC-1" } aMRM_service_address: "5.6.7.8:5" ...
> lastStartTime: 1748515355385 ...
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]