-
Notifications
You must be signed in to change notification settings - Fork 179
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
Update default config file to YAML format #231
Conversation
[test-openshift] |
[test][test-openshift] |
Fixed problem, that 2.6 has only one storage engine (so mmapv1 options are not separated). Please review... |
export MONGODB_PREALLOC="false" | ||
else | ||
export MONGODB_PREALLOC="true" | ||
fi |
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.
you should probably surround this block w/ a check to see if MONGODB_PREALLOC is set and if so, respect that value directly.
And then update the image doc to deprecate MONGODB_NOPREALLOC in preference to MONGODB_PREALLOC
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.
@bparees Thanks.
Changed a way how the default is computed. MONGODB_PREALLOC
is always preferred. If it is not set, default is get according to MONGODB_NOPREALLOC
.
2.6/test/run
Outdated
test_config_option MONGODB_QUIET quiet true | ||
test_config_option MONGODB_NOPREALLOC true preallocDataFiles false | ||
test_config_option MONGODB_SMALLFILES true smallFiles true | ||
test_config_option MONGODB_QUIET true quiet true |
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.
and then add a test for the new env variable here.
70ae0ae
to
443e045
Compare
Please review. |
2.6/test/run
Outdated
test_config_option MONGODB_NOPREALLOC noprealloc true | ||
test_config_option MONGODB_SMALLFILES smallfiles true | ||
test_config_option MONGODB_PREALLOC preallocDataFiles false | ||
test_config_option MONGODB_SMALLFILES smallFiles true |
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.
should keep the test for NOPREALLOC also since it is technically still supported.
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.
@bparees Thanks, testing also MONGODB_NOPREALLOC
now.
lgtm |
@bparees While inspecting differences among test scripts, I noticed that 2.6 uses deprecated user management functions. ( |
68acf50
to
13c24e3
Compare
[test-openshift] |
[test][test-openshift] |
Resolves: sclorg#197 Fix tests to test the new config file format. MongoDB 2.6 does not support modular storage engines. Have MONGODB_NOPREALLOC only for backward compatibility. Update tests to also use deprecated MONGODB_NOPREALLOC. Use user management functions introduced in 2.6 (already used in common.sh scripts)
13c24e3
to
7143f79
Compare
Squashed. [test-openshift] |
Tests are passing. Merging. @bparees Thanks for review. |
Update default config file to YAML format which was introduced in MongoDB 2.6.
Few changes:
MONGODB_NOPREALLOC
have to be negationed@bparees Please take a look.
Resolves: #197