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

Mongo7 upgrade #394

Merged
merged 4 commits into from
Aug 26, 2024
Merged

Mongo7 upgrade #394

merged 4 commits into from
Aug 26, 2024

Conversation

Xiangs18
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.10%. Comparing base (fb79365) to head (15608b5).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #394      +/-   ##
=============================================
+ Coverage      94.08%   94.10%   +0.02%     
- Complexity      1594     1595       +1     
=============================================
  Files            102      102              
  Lines           4734     4735       +1     
  Branches         827      828       +1     
=============================================
+ Hits            4454     4456       +2     
+ Misses           266      265       -1     
  Partials          14       14              

@Xiangs18 Xiangs18 changed the title [WIP] mongo7 upgrade Mongo7 upgrade Aug 23, 2024
@Xiangs18 Xiangs18 requested a review from MrCreosote August 23, 2024 04:55
Copy link
Member

@MrCreosote MrCreosote left a comment

Choose a reason for hiding this comment

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

Looks pretty good, just needs retryWrites and I have 1 question

@@ -107,9 +107,10 @@ public void startUpWith2ConfigDocs() throws Exception {

final Pattern errorPattern = Pattern.compile(
"Failed to create index: Write failed with error code 11000 and error message " +
"'(exception: )?E11000 duplicate key error (index|collection): " +
"'(exception: )?(.*)E11000 duplicate key error (index|collection): " +
Copy link
Member

Choose a reason for hiding this comment

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

What is captured by (.*)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Comment on lines +110 to +111
final MongoClientSettings.Builder mongoBuilder = MongoClientSettings.builder().applyToClusterSettings(
builder -> builder.hosts(Arrays.asList(new ServerAddress(c.getMongoHost()))));
Copy link
Member

Choose a reason for hiding this comment

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

You're going to need the retryWrites parameter as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding the retryWrites parameter will be included in the next PR.

@Xiangs18 Xiangs18 merged commit 5316580 into develop Aug 26, 2024
8 of 9 checks passed
@Xiangs18 Xiangs18 deleted the dev-mongo7_upgrade branch August 26, 2024 21:35
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.

2 participants