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

   Following up on the earlier review of the unchanged head `ee3eb16`: the 
points below still stand. All are low severity, and the discussion so far has 
treated them as optional refinements rather than merge requirements. I am 
keeping it that way.
   
   Open items:
   
   - **Oversized job name:** the 64 KiB limit only gates the fast path. An 
oversized, submitter-controlled name is still fully deserialized, cached while 
the job is listed, and returned by the summary endpoint.
   - **Silent fallback:** a prefix the fast path rejects falls through to full 
deserialization with no log. A failed full deserialization is also swallowed 
without a log and never cached, so each summary request repeats a potentially 
multi-megabyte `toObject` for that job.
   - **Docs:** the prefix-layout contract is documented only on the reader 
side, and the new package-private decoder's Javadoc has no param or throws tags.
   - **Test coverage:** two of the three length guards and the versioned-header 
branch are not exercised by any test.
   - **Test naming:** `shouldDecodeLegacyJobImmutableInformationInFastPath` 
still goes through `decodeJobBasicInfo`, so the full-deserialization fallback 
can make it pass.
   - **Test fixture:** the regression fixture serializes the 17 MiB padding 
twice, so the payload is about 34 MiB.
   - **Style:** `mockRunningJob` uses an inline fully-qualified 
`org.apache.seatunnel.engine.server.NodeExtension` while its sibling server 
types are imported.
   
   Remaining asks:
   
   1. Could you say which of these you want to pick up in this PR and which you 
would rather leave for a follow-up? Either answer is fine; it would just help 
to have it written down here.
   2. If you only take one, I would prioritise logging on the two silent paths, 
because that same silent degradation is what hid the original misalignment on 
`dev`.
   3. If you would rather leave the oversized job name as it is outside the 
fast path, a short note on why the current behaviour is acceptable is enough.
   
   <!-- streview-comment:2612 -->


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