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

Resizing capped collection does not work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 6.0.1
    • Component/s: None
    • None
    • ALL
    • Hide

      Follow instructions from documentation.

      Show
      Follow instructions from documentation.
    • Execution Team 2022-09-05

      When trying to increase capped collection size from mongosh as documented:

      https://www.mongodb.com/docs/manual/core/capped-collections/#change-a-capped-collection-s-size

      db.runCommand( { collMod: "log", cappedSize: 100000 } )

      An error happens: MongoServerError: Cannot change the size limits of a capped collection.
      User is authenticated and can create new collections and modify existing content in other collections.
      I have only tested with one capped collection in the newest 6.0.01. The capped size was 1 GB and tried to increase it to 2 GB.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            teemu.lankila@ioliving.com Teemu Lankila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: