-
Notifications
You must be signed in to change notification settings - Fork 150
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
[JENKINS-66014] Adding support retryable writes. #144
Conversation
Disable retryable writes settings while adding plugin configuration
@@ -706,7 +721,7 @@ private MongoClient getMongoConnection() { | |||
|
|||
}).applyToServerSettings(builder12 -> { | |||
}).applyToSocketSettings(builder13 -> builder13.connectTimeout((CONNECT_TIMEOUT), TimeUnit.MILLISECONDS)). | |||
applyToSslSettings(builder14 -> builder14.enabled(tls)); | |||
applyToSslSettings(builder14 -> builder14.enabled(tls)).retryWrites(disableRetryWrites); |
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.
This looks so weird. Why is it inverted here and not below?
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.
Addressed the concern and simplified it
@@ -41,11 +41,14 @@ | |||
<f:entry title="${%Use TLS connection}"> | |||
<f:checkbox field="tls" /> | |||
</f:entry> | |||
<f:entry title="${%Disable RetryWrites}"> |
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.
This makes it even more confusing.
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.
Needs a help file and better naming of the field.
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.
Simplified the change
@rsandell Updated the code |
1 similar comment
@rsandell Updated the code |
Starting with MongoDB 4.2 compatible drivers, retryable writes is enabled by default. However, Amazon DocumentDB does not currently support retryable writes. I am adding a support to enable/disable that setting while using this plugin
Options