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

[7.0] shardCollection on a timeseries view namespace with incorrect UUID doesn't report CollectionUUIDMismatch

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Hide

      Version: 7.0.5

       

      > db.createCollection( "weather", { timeseries:

      { timeField: "timestamp", metaField: "metadata" }

      })

      { ok: 1 }

      > db.adminCommand({shardCollection: 'test.weather', key: {_id: 1}, collectionUUID: UUID()} )

      MongoServerError: Taking test.weather lock for timeseries is not allowed

      Show
      Version: 7.0.5   > db.createCollection( "weather", { timeseries: { timeField: "timestamp", metaField: "metadata" } }) { ok: 1 } > db.adminCommand({shardCollection: 'test.weather', key: {_id: 1}, collectionUUID: UUID()} ) MongoServerError: Taking test.weather lock for timeseries is not allowed

      This issue does not appear in the most recent versions of 8.0and the goal of this ticket is to identify and request the necessary backport.

      It's imperative that CollectionUUIDMismatch is returned when an incorrect 'collectionUUID' field is provided on all commands. 

      The behavior of shardCollection() when called on a timeseries view namespace with a non-existent 'collectionUUID' field yields

      "Taking <dbName.collName> lock for timeseries is not allowed"

      Whereas the same set of operations returns CollectionUUIDMismatch on a non-timeseries view namespace. 

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: