You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2022/09/19 19:25:00 UTC
[jira] [Created] (FLINK-29340) ResourceManagerTest#testProcessResourceRequirementsWhenRecoveryFinished prone to race condition
Chesnay Schepler created FLINK-29340:
----------------------------------------
Summary: ResourceManagerTest#testProcessResourceRequirementsWhenRecoveryFinished prone to race condition
Key: FLINK-29340
URL: https://issues.apache.org/jira/browse/FLINK-29340
Project: Flink
Issue Type: Technical Debt
Components: Runtime / Coordination, Tests
Affects Versions: 1.16.0
Reporter: Chesnay Schepler
Assignee: Chesnay Schepler
The test incorrectly assumes that the {{declareRequiredResources}} has already been run when calling {{runInMainThread}}, while the RPC could still be in flight.
This can result in the test failing because within runInMainThread the test assumes that completing the readyToServeFuture will immediately result in the processing of resources, due to this workflow having been set up within delcareRequiredResources. Without it it will just fail because the completion of the future has in practice no effect.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)