I have attached a reproduction of a 3.4 sharded cluster moving from 2 to three shards with ranges in place.
This has a compound shard key:
and defaults triggerTime to MinKey
but leaves the config in config.tags.
It needs to be changed to the following with explicit triggerTime values:
This was quite confusing and hard to troubleshoot. Perhaps sh.removeTagRange should return ok:0 when no tags match, and/or include a message? And/or use the same logic as in sh.addTagRange to default the second field to MinKey?