SEZ9 commented on PR #12922:
URL: https://github.com/apache/seatunnel/pull/12922#issuecomment-7025800700

   Thanks for the update. Going by the re-review of the current diff, these 
earlier points look resolved:
   
   - **Validation before submission**: the savepoint, dry-run, restore and ID 
checks now run for every entry before the first job is submitted, so invalid 
parameters in a later entry no longer leave earlier entries submitted. 
Documenting that this is parameter-level atomicity only is the right call.
   - **Client keys in error messages**: the type errors no longer echo 
arbitrary client keys or values, which addresses the log-forgery concern.
   - **Oversized numeric ids**: `params` values now get supported-scalar and 
long-range checks up front.
   
   The re-review does not confirm the following, so could you address each or 
point me to where it is handled:
   
   1. **Empty job id with savepoint**: does an empty-string `jobId` with 
`isStartWithSavePoint: true` now fail with a message about the job id, not 
`restoreSourceJobId is required when restoreMode=SAVEPOINT`? Blank 
restore-source ids are reported as covered, but I can't tell whether this exact 
case is.
   2. **Non-integral numbers**: are `1e3` and `1.5` rejected with a message 
naming `params.jobId`, not a raw `NumberFormatException`?
   3. **Unit tests**: does `RestUtilSubmitJobsParamsTest` cover the 
`null`-value skip and empty-string acceptance that the docs and the 
incompatible-changes entry advertise?
   4. **End-to-end tests**: does `JobInfoServiceSubmitJobsTest` cover 
nested-value rejection and the mixed-order case, where a later bad entry must 
block all submissions?
   5. **Docs table**: does the `params` table now match the new paragraph? The 
value types should no longer all be `string`, and `restoreMode` and 
`restoreSourceJobId` should be listed.
   6. **Overload naming**: are `buildRequestParams(Map, String)` and 
`buildRequestParams(Map, Map)` still overloads? If so, please give the JSON-map 
variant its own name, since the two decode differently and a literal `null` 
second argument is ambiguous.
   
   Items 3 and 4 are the ones I'd most like to see before merging, since they 
pin the behaviour this PR documents.
   
   <!-- streview-comment:2472 -->


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