DanielCarter-stack commented on issue #10455:
URL: https://github.com/apache/seatunnel/issues/10455#issuecomment-3857678425

   <!-- code-pr-reviewer -->
   This is a **valid bug**. The `CoordinatorService.getJobInfo()` method at 
lines 867-873 doesn't check the `pendingJobQueue` before accessing 
`runningJobMasterMap.get(jobId)`. 
   
   For jobs in PENDING state (waiting for resources), the job only exists in 
the pending queue, not in `runningJobMasterMap`. This causes 
`runningJobMasterMap.get(jobId)` to return `null`, triggering NPE when calling 
`.getJobDAGInfo()`.
   
   The fix should follow the same pattern as `getJobMaster()` (lines 392-398), 
which correctly checks `pendingJobQueue.getById(jobId)` first before falling 
back to `runningJobMasterMap`.
   
   **Affected files**:
   - 
`seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java`
 (lines 867-873, 392-398)


-- 
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