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

Time series insertion takes a lock on the bucket collection without checking the shard version

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-04-04

    Description

      The _rebuildOptionsWithGranularityFromConfigServer function sets the time series to use the granularity from the config server, and to do that an AutoGetCollection object is rightly instantiated.

      With SERVER-64464, the AutoGetCollection constructor checks the shard version in case of a collection, and in this scenario it would throw a stale config exception since the insertion request is about the user-visibile view (and not the bucket collection). Consequently, the received shard version is unsharded and the check fails.

      Attachments

        Activity

          People

            antonio.fuschetto@mongodb.com Antonio Fuschetto
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: