Resizing capped collection does not work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Teemu Lankila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: