Skip to content

Mongo7 upgrade#394

Merged
Xiangs18 merged 4 commits intodevelopfrom
dev-mongo7_upgrade
Aug 26, 2024
Merged

Mongo7 upgrade#394
Xiangs18 merged 4 commits intodevelopfrom
dev-mongo7_upgrade

Conversation

@Xiangs18
Copy link
Copy Markdown
Contributor

No description provided.

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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
@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