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

never implicitly shard a view in implicitly_shard_accessed_collections.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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
    • Labels:
      None
    • Fully Compatible
    • v7.0, v6.0, v5.0
    • Sharding EMEA 2023-07-10

      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@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: