-
Notifications
You must be signed in to change notification settings - Fork 154
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
fix: set the correct config name connect_timout
mongoid
#432
Conversation
Thanks for the pull request, @ghassanmas! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
I would argue also to change the default value form 0.5s to something longer the default is 10 second... in consumer |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #432 +/- ##
=======================================
Coverage 96.19% 96.19%
=======================================
Files 58 58
Lines 4624 4624
=======================================
Hits 4448 4448
Misses 176 176 ☔ View full report in Codecov by Sentry. |
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
Thank you for this contribution @ghassanmas! I marked it as ready for review. @openedx/2u-infinity Could you please have a look at this change? |
@mtyaka @xitij2000 Would one of you be able to help out with a CC review for this PR? |
I can review it in the next sprint |
config/mongoid.yml
Outdated
@@ -6,7 +6,7 @@ common: &default_client | |||
mode: :<%= ENV['MONGOID_READ_MODE'] || 'primary' %> | |||
max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %> | |||
retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %> | |||
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %> | |||
connect_timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %> |
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.
Can we change the name of the environment variable to MONGOID_CONNECT_TIMEOUT
as well?
I see mongoid has other timeout related options (socket_timeout
, server_selection_timeout
, and wait_queue_timeout
) so a more specific name would help avoid confusion.
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.
Yes makes sense, but I suppsoe this would be a breaking change for downstream app(e.g. tutor-forum, edx-configuration), I can hanlde the case for tutor-forum since I maintain it, but sure about edx-configuration.
But in many case, in practice I don't think it matter that much since the variable was unusable in the first place.
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
Hey @ghassanmas, thanks for addressing comments from engineering review here! It looks like the changes will need a rebase to bring them up to date with the base branch. When you're done with that and the build is green, please ping |
22589a0
to
e9ea401
Compare
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.
Thank you @ghassanmas! The changes look good to me 👍
@ghassanmas Could you please bring your branch up-to-date with the base branch and ping |
This change just fix the name of the variable that is respoinsbile for: > The time to wait to establish a connection before timing out, > in seconds ref: https://www.mongodb.com/docs/offline/mongoid-7.5.tar.gz
e9ea401
to
e7e94a6
Compare
Done |
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
getting rid of dockerize might resolve #33 and provide other solution for #35 dockerize is used for waiting for other services, in order replicate it's effect, we set `MONGOID_TIMEOUT` 600 second for mongodb, related upstream PR: - openedx/cs_comments_service/pull/432
This change just fix the name of the variable that is
respoinsbile for:
ref: https://www.mongodb.com/docs/offline/mongoid-7.5.tar.gz