Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14345

Possible mistake in capped collection limit doc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.2.1, 4.4.0, 5.0.0
    • None
    • manual, Server
    • MacOS 11.2.3
    • Small
    • 1
    • ServerDocs2021: Nov2 - Nov9, ServerDocs2022: Nov9-Nov16, ServerDocs2022: Dec7 - Dec14
    • true

    Description

      Description

      I was trying to set capped collection with limit of 2^32 - 1 (as it is stated in https://docs.mongodb.com/manual/reference/limits/#mongodb-limit-Maximum-Number-of-Documents-in-a-Capped-Collection), however I get the error message from the server "max in a capped collection has to be < 2^31". I dig in with my colleague and found that on server it is set to 2^31 - 1 indeed (https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_options.cpp#L117-L119). I also go over the jira issues over history and found these mentions:

      https://jira.mongodb.org/browse/DOCS-795

      https://jira.mongodb.org/browse/SERVER-5285

      My colleague told me the documentation pointed that the limit is documented as 2^32-1 since 2.2 (https://docs.mongodb.com/v2.2/reference/limits/#Maximum-Number-of-Documents-in-a-Capped-Collection). I tried on 4.2 and 4.4 servers yet got the error message I mentioned above.

      If I'm not wrong there is an anomaly in documentation which you may want to fix or maybe clarify it for me if I misunderstand.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            joseph.dougherty@mongodb.com Joseph Dougherty
            alperen.pulur@3tsoftwarelabs.com Alperen Pulur
            Joseph Dougherty Joseph Dougherty
            Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              41 weeks, 4 days ago