-
Please tell me how to configure writeConcern as anything other than We have spring boot application 2.7.18 with Mongock 4 to perform migrations. We use spring boot We have requirement for a single replSet clustered environment to change writeConcern for mongock. Default From official documentation:
I tried this with spring boot 3 and mongock 5 and issue is still the same I did a littbe bit dig in and i think issue might be with I have written simple spring boot application demonstrating the issue |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello @hhvitek, I believe this is likely an easy bug to fix, and I encourage you to submit a PR. If you're unable to do so, we can take care of it, though I can't guarantee when it will be completed. That said, I'm curious about your reasoning for using a less durable configuration than In the meantime, if raising a PR isn’t an option and you need an immediate solution, I recommend using the builder to explicitly enforce the desired MongoDB configuration. |
Beta Was this translation helpful? Give feedback.
-
Alright, let us know if you run into any issues with the builder. |
Beta Was this translation helpful? Give feedback.
-
Hello @hhvitek , we have just released Mongock v5.5.1 including your fix. Thanks for using and collaborate with Mongock Community. |
Beta Was this translation helpful? Give feedback.
Hello @hhvitek,
I believe this is likely an easy bug to fix, and I encourage you to submit a PR. If you're unable to do so, we can take care of it, though I can't guarantee when it will be completed.
That said, I'm curious about your reasoning for using a less durable configuration than
majority + journal: true
. Keep in mind that lowering consistency in Mongock can cause your application to reapply the same change, which—although I don’t know the specific details of your use case—could be highly undesirable.In the meantime, if raising a PR isn’t an option and you need an immediate solution, I recommend using the builder to explicitly enforce the desired MongoDB configuration.