Simplify test logic in timeseries_collection_uuid.js

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      One of the test cases in jstests/core/timeseries/ddl/timeseries_collection_uuid.js is to check that for legacy timeseries collections, trying to e.g. insert a measurement using the UUID of the system.buckets collection, will fail with a CollectionUUIDMismatch error.

      > db.createCollection("ts", {timeseries: {timeField: 't'}})
      > db.getCollectionInfos({name: "system.buckets.ts"})[0].info.uuid
      > db.runCommand({insert: "ts", documents: [{t: ISODate()}, collectionUUID: bucketUUID})
      [...] time-series insert failed: test.ts :: caused by :: Collection UUID does not match that specified[...]
      

      This tests case can be removed once 9.0 becomes last LTS.

            Assignee:
            Unassigned
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: