Skip to content
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

Improved Bulk Write API #1509

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Improved Bulk Write API #1509

wants to merge 2 commits into from

Conversation

stIncMale
Copy link
Member

@stIncMale stIncMale commented Sep 24, 2024

The following test runners execute the unified and prose tests added in this PR:

  • com.mongodb.client.unified.VersionedApiTest
  • com.mongodb.client.unified.UnifiedTransactionsTest
  • com.mongodb.client.unified.ServerSelectionLoggingTest
  • com.mongodb.client.unified.UnifiedRetryableWritesTest
  • com.mongodb.client.unified.CommandMonitoringTest
  • com.mongodb.client.unified.UnifiedCrudTest
  • com.mongodb.client.CrudProseTest

JAVA-4586:

@stIncMale stIncMale self-assigned this Sep 24, 2024
*
* @return The top-level error. {@linkplain Optional#isPresent() Present} only if a top-level error occurred.
*/
public Optional<MongoException> getError() {
Copy link
Member Author

@stIncMale stIncMale Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BULK-TODO: It all of a sudden turned out that the spec never meant to prescribe how to represent the top-level error, and we are allowed to express the top-level error as the cause of ClientBulkWriteException. Currently, I like that approach much more, and I think we should change the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant