GabrielBBaldez commented on PR #11053:
URL: https://github.com/apache/seatunnel/pull/11053#issuecomment-4671305270

   Thanks @DanielLeens — you're right, and that was the real gap: I had 
verified the generic `StartupConfig`/offset path but missed that 
`MongodbSourceConfigProvider.Builder#startupOptions` has its own runtime guard 
that still rejected `LATEST`, so the documented mode failed at source assembly. 
Fixed in the latest commit:
   
   - **Issue 1:** the builder guard now accepts `LATEST` (alongside 
`INITIAL`/`TIMESTAMP`).
   - **Issue 2:** added regression tests on the real builder path: 
`MongodbSourceConfigProvider.newBuilder()...startupOptions(StartupConfig(LATEST)).validate().create(0)`
 builds successfully and carries the mode through, and a negative test confirms 
unsupported modes (e.g. `EARLIEST`) are still rejected — so the guard can't 
silently drift again.
   
   Module suite: 19/19 passing locally (JDK 11).


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