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

Suspicious chunk version initialization in ChunkManager

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.2.0-rc1
    • 3.1.8
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding B (10/30/15)

    Description

      From https://github.com/mongodb/mongo/blob/r3.1.8/src/mongo/s/chunk_manager.cpp#L173

      ChunkManager::ChunkManager(const CollectionType& coll)
          : _ns(coll.getNs().ns()),
            _keyPattern(coll.getKeyPattern()),
            _unique(coll.getUnique()),
            _sequenceNumber(NextSequenceNumber.addAndFetch(1)),
            _chunkRanges() {
          _version = ChunkVersion::fromBSON(coll.toBSON());
      }
      

      This looks suspicious as the config.collections does not contain any information about the highest (or any for that matter) chunk version of the collection.

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: