-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add improved Bulk Write API for Java Reactive Driver #1583
base: JAVA-4586_bulk-write
Are you sure you want to change the base?
Conversation
- Created and documented the new Reactive Bulk Write API - Enabled unified and prose tests for reactive Bulk Write API JAVA-5530
JAVA-5530
JAVA-5530
JAVA-5530
org.junit.jupiter.api.Assumptions.assumeTrue(java.lang.Boolean.parseBoolean(toString()), "BULK-TODO implement") | ||
TODO("BULK-TODO implement") | ||
org.junit.jupiter.api.Assumptions.assumeTrue( | ||
java.lang.Boolean.parseBoolean(toString()), "BULK-TODO Kotlin implement") |
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.
I have updated the naming to specifically ignore Kotlin tests in the UnifiedTestRunner to ensure that only these tests are skipped on assumption errors until the Kotlin API is implemented.
JAVA-5530
JAVA-5530
JAVA-5530
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.
Reviewed everything except for
ClientBulkWriteOperation.java
CursorHelper.java
AsyncFunctionsAbstractTest.java
The last reviewed commit: 9a7d9ba.
driver-core/src/main/com/mongodb/internal/async/AsyncFunction.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestModifications.java
Outdated
Show resolved
Hide resolved
...c/test/functional/com/mongodb/reactivestreams/client/unified/UnifiedReactiveStreamsTest.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/CrudProseTest.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/CrudProseTest.java
Outdated
Show resolved
Hide resolved
...ve-streams/src/main/com/mongodb/reactivestreams/client/internal/MongoOperationPublisher.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/async/AsyncRunnable.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/async/AsyncRunnable.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestModifications.java
Show resolved
Hide resolved
…st.java Co-authored-by: Valentin Kovalenko <[email protected]>
…st.java Co-authored-by: Valentin Kovalenko <[email protected]>
Co-authored-by: Valentin Kovalenko <[email protected]>
…lient/MongoCluster.java Co-authored-by: Valentin Kovalenko <[email protected]>
…java Co-authored-by: Valentin Kovalenko <[email protected]>
Co-authored-by: Valentin Kovalenko <[email protected]>
Remove redundant methods. JAVA-5530
JAVA-5530
driver-core/src/test/unit/com/mongodb/internal/async/AsyncFunctionsAbstractTest.java
Show resolved
Hide resolved
driver-core/src/test/unit/com/mongodb/internal/async/AsyncFunctionsAbstractTest.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/CursorHelper.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/CursorHelper.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
/** | ||
* To execute a batch means: | ||
* <ul> | ||
* <li>execute a `bulkWrite` command, which creates a cursor;</li> | ||
* <li>consume the cursor, which may involve executing `getMore` commands.</li> | ||
* </ul> | ||
* | ||
* @throws MongoException When a {@linkplain ClientBulkWriteException#getError() top-level error} happens. | ||
* @throws MongoException When a {@linkplain ClientBulkWriteException#getCause() top-level error} happens. |
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.
Thank you! I missed this when I refactored out ClientBulkWriteException.getError
.
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
JAVA-5530
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.
The last reviewed commit is c2d9b07.
driver-core/src/main/com/mongodb/internal/async/AsyncBatchCursor.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/async/AsyncBatchCursor.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/BatchCursor.java
Outdated
Show resolved
Hide resolved
...ore/src/test/functional/com/mongodb/internal/operation/CommandBatchCursorFunctionalTest.java
Outdated
Show resolved
Hide resolved
...ore/src/test/functional/com/mongodb/internal/operation/CommandBatchCursorFunctionalTest.java
Outdated
Show resolved
Hide resolved
...rc/test/functional/com/mongodb/internal/operation/AsyncCommandBatchCursorFunctionalTest.java
Outdated
Show resolved
Hide resolved
...rc/test/functional/com/mongodb/internal/operation/AsyncCommandBatchCursorFunctionalTest.java
Outdated
Show resolved
Hide resolved
...rc/test/functional/com/mongodb/internal/operation/AsyncCommandBatchCursorFunctionalTest.java
Outdated
Show resolved
Hide resolved
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
…or.java Co-authored-by: Valentin Kovalenko <[email protected]>
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
…WriteOperation.java Co-authored-by: Valentin Kovalenko <[email protected]>
- Remove redundunt checks. - Rename test methods. JAVA-5530
JAVA-5530
JAVA-5530
JAVA-5530
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
driver-sync/src/test/functional/com/mongodb/client/CrudProseTest.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/internal/operation/ClientBulkWriteOperation.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Valentin Kovalenko <[email protected]>
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.
Thank you 👍 Though something is suspicious with the test failures - there seem to be too many of them.
Thank you for the great suggestions, @stIncMale! The structure of the async code now aligns more closely with the sync code. Regarding the tests, the Azure tests failed due to network connectivity issues. After rerunning, they are consistently green. |
JAVA-5530