Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4757

Mongoid silently ignores options given at top level in YAML configuration

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0
    • Affects Version/s: None
    • Component/s: Dev Exp

      I accidentally added max_pool_size under 'default', without putting it under 'options', and it was silently accepted, but not acted on.

      Expected behavior: it should have posted at least a warning about an invalid configuration option, since that was not valid without being under 'options'.

      production:
        clients:
          default:
            uri: <%= ENV['MONGO_URL'] %>
            max_pool_size: 20
      
      

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            davidw David Welton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: