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

For convertToCapped, router should not check if the collection is sharded itself

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Currently the router checks its cache to see if the collection is sharded, and fails the convertToCapped operation if so. This is incorrect because the router's cache might be stale.

      Instead, the router should rely on the shard to check whether the collection is sharded.

      The router already attaches shardVersion, but the shard should actually check the shardVersion, which it does not currently do.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: