SEZ9 commented on issue #12119:
URL: https://github.com/apache/seatunnel/issues/12119#issuecomment-7230193763

   @JeremyXin thanks for the design outline. Your four points (lightweight 
acceptance record, demand derivation separated from full `JobMaster` 
initialization, plan verification before start, and cancel/recovery on the 
durable record) are still the right shape for this issue.
   
   On the measurement posted above (SeaTunnel 3.1.0, one Master and one Worker, 
768 MiB Master heap):
   
   - **Cost at 100 pending jobs:** about 5.9–13.2 MiB of extra Master heap, 
depending on parallelism.
   - **Cost at 1,000 pending jobs:** 53.6–54.4 MiB at parallelism 1 and 111.8 
MiB at parallelism 16, or roughly 55–115 KiB per queued job.
   - **What it does not show:** how much deferring initialization would save. 
That needs a before-and-after implementation test, so the benefit of the 
two-phase contract is still unquantified.
   
   Given those numbers, I agree with deferring implementation for now. The cost 
is modest for small backlogs with heap headroom, and the change touches submit 
acknowledgement semantics, save-mode timing and failover fencing, which is a 
lot of contract surface to move without a demonstrated need.
   
   Before closing, two asks:
   
   1. Do you have production or test evidence that would change the priority? 
That would be queue depths around 1,000 jobs, or heavier execution plans where 
post-GC Master heap or GC pressure is material at lower depths. If so, please 
share the queue depth, job parallelism, Master heap size and post-GC readings.
   2. If you have no such evidence, are you OK with closing this for now? We 
can reopen it when that data shows up.
   
   If it is reopened, the review gate stays as already stated. The design 
update needs to make three decisions explicit:
   
   - what a successful submit acknowledgement means once plugin/configuration 
errors and cluster-side save-mode work move into the job lifecycle;
   - how the lightweight demand descriptor is derived and checked against the 
later physical plan without silently changing the requested slots;
   - how the durable record/version fences cancel-before-init and master 
failover.
   
   It also needs to keep the existing `JobStatus` values, specify 
upgrade/restore behavior for jobs accepted before the new record exists, and 
include tests for error timing, cancellation, replay, and backlog heap with a 
before/after comparison.
   
   <!-- streview-comment:2672 -->


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