never implicitly shard a view in implicitly_shard_accessed_collections.js

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc7, 5.0.20, 6.0.9
    • Affects Version/s: 7.1.0-rc0, 5.0.19, 7.0.0-rc6, 6.0.8
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0, v6.0, v5.0
    • Sharding EMEA 2023-07-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently implicitly_shard_accessed_collections.js overrides getCollection for passthrough suites implicitly runs shardCollection in case the collection is not sharded or does not exist. However, in case the namespace is a view, the command will fail with CommandNotSupportedOnView since sharding a view is not allowed. 

      We should simply return the collection in case is a view.

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: