Abacn commented on code in PR #36961:
URL: https://github.com/apache/beam/pull/36961#discussion_r2582570292


##########
sdks/python/apache_beam/io/mongodbio.py:
##########
@@ -460,16 +457,15 @@ def _get_split_keys(
     if self._range_is_not_splittable(start_pos, end_pos):
       return []
 
-    with MongoClient(self.uri, **self.spec) as client:

Review Comment:
   Thanks. Shall we also port this change to Sink?
   
   
https://github.com/apache/beam/blob/7564e9ef37b1613aa76915ced6c0af1fe0a210df/sdks/python/apache_beam/io/mongodbio.py#L779



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