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

   Thanks for the update. Three points from the earlier review are still open 
on `fa6491f1babb`:
   
   **1. Recovery path for a skipped reset (MEDIUM)**
   
   `DefaultSlotService.reset()` now returns early if assigned slots or live 
contexts remain. That protects running tasks, which is the right goal. The open 
case is a slot that is still assigned on the worker but that the master no 
longer tracks. As far as I can tell from the thread, nothing reclaims it until 
the process is restarted. Either of the following would settle it:
   - Show the existing path that reclaims a master-forgotten assignment, if 
there is one.
   - Add that reconciliation in the next head, with a focused regression test. 
The test should seed the mismatch, then assert that the orphaned slot is 
released while a tracked allocation survives.
   
   Please keep the busy-worker case as it is.
   
   **2. `reset()` contract (LOW)**
   
   `reset()` now means "rebuild only if idle, otherwise do nothing". Please 
state that in the method's Javadoc and in the PR description. If a skipped 
reset is expected to be recovered later, say where.
   
   **3. Test cleanup in `FixSlotResourceTest` (LOW)**
   
   - The two "keeps live assignment" tests repeat the same seven-line assertion 
block; please extract it into a shared helper.
   - The third test releases its slot outside `finally`; please move the 
release into `finally` so the allocation is cleaned up even when an assertion 
fails.
   
   Point 1 is the one I'd like resolved before this moves forward; points 2 and 
3 are small and can go in the same push.
   
   <!-- streview-comment:2778 -->


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