-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Upgrade mongodb-client to 5.1.3 #42445
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ public class MapReduceOptions { | |
private long maxTime; | ||
private MapReduceAction action; | ||
private String databaseName; | ||
private boolean sharded; | ||
private boolean nonAtomic; | ||
Comment on lines
-28
to
-29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no replacement or additional fields we need to support? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the 4.11.1 Javadocs these two options aren't supported on a database level from MongoDB 4.4 onwards. In comparison to 4.11.1 only those two fields were removed and none were added. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe there will be more work that needs to be invested in this area in the future. |
||
private boolean bypassDocumentValidation; | ||
private Collation collation; | ||
|
||
|
@@ -159,30 +157,6 @@ public MapReduceOptions databaseName(String databaseName) { | |
return this; | ||
} | ||
|
||
/** | ||
* Sets if the output database is sharded | ||
* | ||
* @param sharded if the output database is sharded | ||
* @return this | ||
*/ | ||
public MapReduceOptions sharded(boolean sharded) { | ||
this.sharded = sharded; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets if the post-processing step will prevent MongoDB from locking the database. | ||
* <p> | ||
* Valid only with the {@code MapReduceAction.MERGE} or {@code MapReduceAction.REDUCE} actions. | ||
* | ||
* @param nonAtomic if the post-processing step will prevent MongoDB from locking the database. | ||
* @return this | ||
*/ | ||
public MapReduceOptions nonAtomic(boolean nonAtomic) { | ||
this.nonAtomic = nonAtomic; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sets the bypass document level validation flag. | ||
* | ||
|
@@ -246,8 +220,6 @@ public <T> MapReducePublisher<T> apply(MapReducePublisher<T> stream) { | |
if (databaseName != null) { | ||
publisher = publisher.databaseName(databaseName); | ||
} | ||
publisher = publisher.sharded(sharded); | ||
publisher = publisher.nonAtomic(nonAtomic); | ||
publisher = publisher.bypassDocumentValidation(bypassDocumentValidation); | ||
if (collation != null) { | ||
publisher = publisher.collation(collation); | ||
|
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.
Should we also drop the field/method in our class?
It doesn't have any replacement that we would need to support?
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.
Thanks for your attentiveness, yes we should drop the field. I'll take care of it.
According to the 4.11.1 Javadocs this option isn't supported on a database level from MongoDB 4.4 onwards.
No additional options were introduced between the versions.