zhangshenghang commented on PR #13336:
URL: https://github.com/apache/seatunnel/pull/13336#issuecomment-7231046215

   @DanielLeens — agreed, the reflective `stateProcess` call proves the branch 
shape but not that a real restore reaches it. Plan for this PR:
   
   1. `PhysicalVertexTest`: drop the reflective invocation and call the public 
`resetExecutionState()` directly with an ownership IMap that throws on write, 
asserting the in-memory state stays terminal (FAILED/FINISHED) while the 
persisted value is still CREATED. That covers the reset-consistency half 
without reaching into private state processing.
   2. `SubPlanDeploymentTest`: extend the existing public lifecycle harness 
(`startSubPlanStateProcess()`, already used by 
`pipelineIsNotRunningWhenAnyTaskDeploymentFailed` and 
`finishedVertexDuringDeploymentStillPromotesPipelineToRunning`) with the full 
regression: DEPLOYING -> one vertex terminal in memory but CREATED in the IMap 
-> `startSubPlanStateProcess()` -> pipeline FAILING and every vertex FAILED. 
Add the normal-deployment control in the same test so the new fail-fast cannot 
pass by failing everything.
   3. Remove the reflective private-method hook from `SubPlanTest` (and any 
`@VisibleForTesting` accessor that existed only for it).
   
   The production split stays as you described: `PhysicalVertex` keeps 
memory/IMap reset consistency, `SubPlan.findUndeployableVertices` owns 
deployment-progress detection. Nothing in the fix will override or mask 
terminal IMap state.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to