SEZ9 commented on PR #12156: URL: https://github.com/apache/seatunnel/pull/12156#issuecomment-7071474610
Following up on the earlier review points; this is based on the discussion only, with the head still at `5372e2f844820c51d58b49e3e5d7f75b7c124d38`. **Second state read in `cancelJob()` — still open.** - A null result on the first read is dereferenced in both the old and new versions, so nothing changes there. - The difference is when the entry disappears between the two reads. Previously that reached `ordinal()`; now `EnumSet.contains(null)` returns false and execution continues into the existing null-skipping update path. - These two paths are not identical, so the change is not purely a refactor. Could you do one of the following? 1. Reuse the already-captured `jobStatus` local for the not-started check, as `stopJob()` does, so there is a single read. 2. If the second read is intentional, state the intended contract for the missing-entry case explicitly and add a boundary regression test that pins it. **Check/transition race in `cancelJob()`/`stopJob()` — not blocking here.** This race predates the predicate change, so I am not asking for it to be fixed in this PR. If you want to address it, a separately scoped atomic-transition fix that describes the contract explicitly would be the right place. Please let us know whether you plan that follow-up. **`JobStatusTest` guard explanation and `NOT_STARTED_STATUSES` Javadoc — resolved.** Nothing more is needed on these two, thanks for taking care of them. The only remaining test ask is the boundary regression mentioned above. <!-- streview-comment:2528 --> -- 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]
