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

multiVersion/mixed_storage_version_replication.js may enter infinite loop of listCollections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-10-23
    • 0

      In mixed_storage_version_replication.js, there are a bunch of threads that are dropping, creating, inserting, deleting, indexing, etc. To decide which collection to operate on, the test would listDatabases. If that database only had one collection, it would return null, otherwise while a random collection from the database was "system.indexes" it would re-list collections from that database. Every so often, it would hit a database that had two collections, and then while it was looking for a collection that wasn't "system.indexes", a collection would be dropped and then it would be in an infinite loop of looking for a new collection. This causes the test to hang.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: