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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-04-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Antonio Fuschetto
            Reporter:
            Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: