ReshardingTest.createShardedCollection() ignores collOptions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • ALL
    • Hide
      const collOptions = {clusteredIndex: {key: {_id: 1}, unique: true}};
      const inputCollection = reshardingTest.createShardedCollection({
          ns: "reshardingDb.coll",
          shardKeyPattern: {oldKey: 1},
          chunks: [
              {min: {oldKey: MinKey}, max: {oldKey: 0}, shard: donorShardNames[0]},
              {min: {oldKey: 0}, max: {oldKey: MaxKey}, shard: donorShardNames[1]},
          ],
          collOptions,
      });
      const collectionInfos = inputCollection.getDB().getCollectionInfos({name: inputCollection.getName()});
      
      // collectionInfos doesn't report 'inputCollection' as clustered
      
      Show
      const collOptions = {clusteredIndex: {key: {_id: 1}, unique: true }}; const inputCollection = reshardingTest.createShardedCollection({ ns: "reshardingDb.coll" , shardKeyPattern: {oldKey: 1}, chunks: [ {min: {oldKey: MinKey}, max: {oldKey: 0}, shard: donorShardNames[0]}, {min: {oldKey: 0}, max: {oldKey: MaxKey}, shard: donorShardNames[1]}, ], collOptions, }); const collectionInfos = inputCollection.getDB().getCollectionInfos({name: inputCollection.getName()}); // collectionInfos doesn 't report ' inputCollection' as clustered
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The reshardingTest.createShardedCollection() method doesn't uphold valid collOptions such as {clusteredIndex: {key: {_id: 1}, unique: true}}

            Assignee:
            Unassigned
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: