Shilun Fan created YARN-12029:
---------------------------------
Summary: Fix race in
TestYarnNativeServices.testCreateServiceWithPlacementPolicy after flex
Key: YARN-12029
URL: https://issues.apache.org/jira/browse/YARN-12029
Project: Hadoop YARN
Issue Type: Bug
Components: yarn-native-services
Reporter: Shilun Fan
Assignee: Shilun Fan
TestYarnNativeServices.testCreateServiceWithPlacementPolicy can fail with:
Service should not be in a stable state. It should throw a timeout exception.
The test starts a service with three containers and a node-level anti-affinity
constraint, then requests five containers on a cluster with only three
NodeManagers. It expects the service to remain non-stable because the
additional containers cannot be allocated.
However, the flex RPC queues an asynchronous event and can return before the
ApplicationMaster applies it. The subsequent waitForServiceToBeStable() call
can observe the previous STABLE state and return immediately, causing the test
to fail.
The same test later changes the desired container count from five to four.
Since the component remains FLEXING across this operation, checking its
state alone does not confirm that the latest flex request has been applied.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]