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

Undefined behaviour in the sharding catalog unit-tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.10
    • Affects Version/s: 3.5.9
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding 2017-07-10

      Almost all sharding catalog unit-tests define a static variable kReplSecondaryOkMetadata with a function initializer referencing ReadPreferenceSetting. The problem is that this initializer function can be called before ReadPreferenceSetting's static variables have been constructed, which causes the tests to crash under Windows DEBUG.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: