Details
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.