You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "DanielLeens (via GitHub)" <gi...@apache.org> on 2026/08/20 01:34:31 UTC

[PR] [Fix][Connector-V2] Fix MongoDB reader cursor cleanup [seatunnel]

DanielLeens opened a new pull request, #11887:
URL: https://github.com/apache/seatunnel/pull/11887

   ### Purpose of this pull request
   
   Supersedes #11002 so this release-blocking MongoDB cleanup fix can receive a fresh CI run.
   
   This PR preserves the original functional change and regression test from @preko-p. Its sole commit retains the original Git author metadata:
   
   ```
   preko06 <is...@workl.com>
   original commit: e7a4b61eb14f78d1e5418dab06ff4d2dbfff93ef
   ```
   
   When cursor creation fails before `cursor` is assigned, `pollNext()` still executes `closeCurrentSplit()` in its `finally` block. The null guard prevents cleanup from masking the original MongoDB exception with a secondary `NullPointerException`.
   
   ### Validation
   
   - Rechecked the patch against the current `apache:dev` baseline; the target cleanup path is unchanged and the test file does not yet exist.
   - This branch contains only the original reader cleanup and its two regression tests.
   - GitHub CI is required for compile/test/runtime proof.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][Connector-V2] Fix MongoDB reader cursor cleanup [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #11887:
URL: https://github.com/apache/seatunnel/pull/11887


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org