Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-99338

Address Mixed Case Styles in MongoDB Configuration Parameters

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 5.0.29, 8.0.5, 7.0.17, 6.0.21
    • Component/s: None
    • None
    • ALL

      MongoDB parameter naming conventions generally follow the camelCase style for many parameters. For example:

       

        wiredTiger:
          engineConfig:
            cacheSizeGB: 1
            checkpointSizeMB: 1000
            statisticsLogDelaySecs: 0
            journalCompressor: snappy

      However, some sharding-related parameters deviate from this pattern by using PascalCase instead, such as:

       

       

          ShardingTaskExecutorPoolMinSize: 10
          ShardingTaskExecutorPoolMaxSize: 10
      

      Further adding to the inconsistency, not all sharding parameters adhere to this standard. For example:

      taskExecutorPoolSize: 1

      Reference: MongoDB Documentation - Parameters

       

      Since MongoDB is case-sensitive, this lack of uniformity can lead to confusion, potential implementation errors, and reduced readability. A consistent naming convention would enhance clarity and usability.

            Assignee:
            Unassigned Unassigned
            Reporter:
            vgrippa@gmail.com Vinicius Grippa
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: