Skip to content
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

Advanced Configuration - Options - Documentation Correct? #773

Open
keithdv opened this issue Dec 9, 2024 · 0 comments
Open

Advanced Configuration - Options - Documentation Correct? #773

keithdv opened this issue Dec 9, 2024 · 0 comments

Comments

@keithdv
Copy link

keithdv commented Dec 9, 2024

Are the options in 'grails.mongodb.options' still supported as described in this link. Whatever I set doesn't seem to have an effect?

I also noticed this for writeConcern in the documentation, even though it will fail (See runtime.groovy).
writeConcern = new com.mongodb.WriteConcern(0, 0, false)

Nothing I do in the 'options' set seems to have an effect. Is this still supported?

For Instance, I would expect timeout failures connection to the cloud with this but it succeeds:

application.yml
grails:
mongodb:
options:
socketTimeout: 1
connectTimeout: 1
ssEnabled: false

application.groovy:

grails {
mongodb {
options {
socketTimeout = 1
connectTimeout = 1
ssEnabled = false
}
}
}

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

No branches or pull requests

1 participant