apache / apache/grails-core

Advanced Configuration - Options - Documentation Correct?

Open
#14,336 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-mongodb
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Are the options in 'grails.mongodb.options' still supported as described in this [link](https://gorm.grails.org/latest/mongodb/manual/#advancedConfig). Whatever I set doesn't seem to have an effect?

I also noticed this for writeConcern in the documentation, even though it will [fail](https://docs.grails.org/5.0.1/guide/conf.html) (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
}
}
}

Contributor guide

Open the contributing guide

Research direction

Start with the advanced configuration documentation and the linked Grails configuration guide, then compare their claims with the application.yml and application.groovy examples in this issue. Check runtime.groovy and the grails.mongodb.options behavior for socketTimeout, connectTimeout, ssEnabled, and writeConcern. Done means confirming which options are supported and correcting the documentation or configuration guidance accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, mongodb
Domain
databases, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.