SEZ9 commented on PR #13363: URL: https://github.com/apache/seatunnel/pull/13363#issuecomment-7263050463
Thanks for sticking with this. The latest notes on the thread trace the cancellation timeout to the sink-registration retry path, which does not call SlotService, and they leave the earlier source advice unchanged. So the three points from the previous review are still open, and none has a reply here yet: 1. **No recovery path when the reset is skipped (`DefaultSlotService`).** If the reset is skipped because the worker is busy, slots the master no longer tracks can stay assigned on the worker until the process is restarted. Could you either add a way for those slots to be reclaimed later, or explain why this state cannot occur in practice? This is the one I would most like answered. 2. **`reset()` contract is not documented.** The method now means "rebuild only if idle, otherwise do nothing". Please state that in the method's Javadoc and in the PR description, so callers do not assume a reset always happens. 3. **Test cleanup (`FixSlotResourceTest`).** The two "keeps live assignment" tests repeat the same seven-line assertion block, so please extract it into a shared helper. The third test releases its slot outside `finally`, so please move that release into `finally` so a failed assertion cannot leak the slot. Points 2 and 3 are small. For point 1, a short explanation is enough if you believe no code change is needed. <!-- streview-comment:2714 --> -- 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]
