we1she2 commented on issue #10452:
URL: https://github.com/apache/seatunnel/issues/10452#issuecomment-3851409637
> **COMMENT>> Thank you for reporting this issue. Based on the code
analysis, the root cause is clear:
>
> When `isStartWithSavePoint=true`,
`CheckpointService.getLatestCheckpointData(jobId)` is called. According to
`CheckpointStorage.getLatestCheckpoint()` documentation ("If all pipeline
checkpoint data fails, an exception is throw"), this throws
`CheckpointStorageException` when no checkpoint exists for the job.
>
> The REST API layer (likely `RestHttpPostCommandProcessor`) does not handle
this exception gracefully, resulting in HTTP 500 instead of a user-friendly
error.
>
> **Suggested fix:** Catch `CheckpointStorageException` in the REST API
submit-job handler and return HTTP 400 with a clear message like "No checkpoint
found for the job. Cannot start with save point."
>
> **Missing info to proceed:**
>
> 1. Which SeaTunnel version are you using?
> 2. Which checkpoint storage implementation (LocalFile, HDFS, or other)?
> 3. Can you share the full HTTP response body (error stack trace)?
AI?
--
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]