-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add CSOT to synchronous GridFS operations. #1288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
JAVA-5277
# Conflicts: # driver-core/src/test/functional/com/mongodb/internal/connection/TestCommandListener.java # driver-sync/src/test/functional/com/mongodb/client/AbstractClientSideOperationsTimeoutProseTest.java # driver-sync/src/test/functional/com/mongodb/client/ClientSideOperationTimeoutProseTest.java
JAVA-5277
rozza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good a couple of nits and questions
driver-sync/src/main/com/mongodb/client/gridfs/GridFSBucketImpl.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/gridfs/GridFSBucketImpl.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/gridfs/GridFSBucketImpl.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/gridfs/TimeoutUtils.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/gridfs/TimeoutUtils.java
Outdated
Show resolved
Hide resolved
driver-sync/src/main/com/mongodb/client/gridfs/TimeoutUtils.java
Outdated
Show resolved
Hide resolved
...ync/src/test/functional/com/mongodb/client/AbstractClientSideOperationsTimeoutProseTest.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/ClientSideOperationTimeoutTest.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestUtils.java
Outdated
Show resolved
Hide resolved
# Conflicts: # driver-sync/src/test/functional/com/mongodb/client/AbstractClientSideOperationsTimeoutProseTest.java
Add tests. JAVA-5277
JAVA-5277
JAVA-5277
rozza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a couple of minor nits - its looking good 👍
driver-sync/src/main/com/mongodb/client/gridfs/GridFSUploadStreamImpl.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedGridFSHelper.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedGridFSHelper.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedHelper.java
Show resolved
Hide resolved
JAVA-5277
# Conflicts: # driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/gridfs/GridFSFindPublisher.java # driver-scala/src/main/scala/org/mongodb/scala/gridfs/GridFSFindObservable.scala # driver-sync/src/main/com/mongodb/client/gridfs/GridFSFindIterable.java # driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedCrudHelper.java
JAVA-5277
|
Note: All comments marked with a thumbs-up 👍 have been addressed as well. Thanks! |
JAVA-5277
|
Any idea whats happening on the test tasks that are timing out? |
it looks like changing from I'm thinking we should tackle this by implementing the |
|
Thats my bad - will fix in CSOT. |
|
Fixed the changestream retryable error check in CSOT and merged - waiting for tests to run. |
rozza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@rozza Tests passed – great fix! Thanks for your quick action! |
Description:
This PR updates the GridFS API to align with MongoDB's specifications on timeoutMS. Key changes include:
For detailed spec, see: MongoDB Specification - GridFS API.
Performance tests for the recent changes compared with the mainline: Performance Test Results.
The results indicate that there are no significant deviations.
JAVA-5277