SEZ9 commented on PR #12922: URL: https://github.com/apache/seatunnel/pull/12922#issuecomment-7071034658
Thanks for sticking with this. The latest follow-up on this thread reports Build run `44303818624` as successful on head `5467e3f7e0ec4a997c74205f807ccc528521968d`, so the CI side looks clear. That follow-up covered CI only. Could you say for each of the earlier review points whether it is already handled on this head or planned as a follow-up? **The one I'd most like an answer on** - **Partial submission in `/submit-jobs` (MEDIUM):** per-entry `params` validation (savepoint/jobId, dry-run, restoreMode) still runs inside the submit stream. A bad entry N therefore returns HTTP 400 after entries 0..N-1 were already submitted to the cluster. Could you validate all entries before submitting any of them, or explain why partial submission is acceptable? **Lower severity, fine in this PR or a follow-up** - **Empty `jobId`:** `checkStartWithSavePoint` only tests `jobId == null`. An empty-string `jobId` with `isStartWithSavePoint: true` passes the new check, then fails later with the misleading `restoreSourceJobId is required when restoreMode=SAVEPOINT`. - **Numeric `jobId`:** `String.valueOf(value)` turns `1e3`, `1.5` or 20-digit ids into strings that `Long.parseLong` later rejects with a raw `NumberFormatException` message. An error that names `params.jobId` would be clearer. - **`RestUtilSubmitJobsParamsTest`:** there is no test for the `null`-value skip or the empty-string acceptance that the docs and the incompatible-changes entry advertise. - **`JobInfoServiceSubmitJobsTest`:** the non-object `params` rejection is pinned end to end, but not the nested-value rejection or the mixed-order case where a later bad entry must block all submissions. - **Docs:** the new `params` paragraph says values may be numbers or booleans, but the table above it still types every key as `string`. It also omits `restoreMode` and `restoreSourceJobId`. - **Error message and logs:** the nested-value error embeds the client-supplied `params` key verbatim and unbounded, and it is written to the server log at ERROR level. That allows log-line forgery with control characters. - **Overload naming:** `buildRequestParams(Map, String)` and `buildRequestParams(Map, Map)` share a name but have different decoding contracts, and a literal `null` second argument is ambiguous. A short status per item is enough. <!-- streview-comment:2520 --> -- 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]
