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

Mongodb replset member fails to start "CannotGrowDocumentInCappedNamespace: Cannot change the size of a document"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.18
    • Component/s: Replication
    • None
    • ALL
    • Hide

      I am certainly aware of the fact that a capped collection can not be changed. But this happens on a replset member.

      How did such an entry made it into the primary oplog?

      It would have failed on the primary member first, before such an entry even makes it into the oplog in the first place.

       And the mentioned document does not change in size on the primary.  It could not have been created in the first place if it would!

       

      Not sure how to reproduce this, but this is the second time we encountered this within two months.

      Show
      I am certainly aware of the fact that a capped collection can not be changed. But this happens on a replset member. How did such an entry made it into the primary oplog? It would have failed on the primary member first, before such an entry even makes it into the oplog in the first place.  And the mentioned document does not change in size on the primary.  It could not have been created in the first place if it would!   Not sure how to reproduce this, but this is the second time we encountered this within two months.

      mongod start:

       

      2018-12-21T16:35:55.467+0100 I ASIO [NetworkInterfaceASIO-RS-0] Successfully connected to mongodb001.replset001.app.domain:27017, took 7ms (3 connections now open to mongodb001.replset001.app.domain27017)
      2018-12-21T16:36:00.844+0100 I NETWORK [conn10098] received client metadata from 192.168.100.192:44896 conn10098: { driver:

      { name: "mongoc / ext-mongodb:PHP", version: "1.13.0 / 1.5.3" }

      , os: { type: "Linux", name: "Debian GNU/Linux", version: "9", architecture: "x86_64" }, platform: "cfg=0xd15620c9 posix=200809 stdc=201112 CC=GCC 6.3.0 20170516 CFLAGS="-g -O2" LDFLAGS="" / PHP 7.2.13" }
      2018-12-21T16:37:27.830+0100 F REPL [repl writer worker 5] writer worker caught exception: 10003 Cannot change the size of a document in a capped collection: 71 != 86 on: { ts: Timestamp 1545406647000|4, h: -308296782776005596, v: 2, op: "u", ns: "app.taskscheduler.jobs", o2:

      { _id: ObjectId('5c1d087b95aa0a02386e9843') }

      , o: { $set:

      { status: 3, ended: new Date(1545406647813) }

      } }
      2018-12-21T16:37:27.830+0100 I - [repl writer worker 5] Fatal assertion 16359 CannotGrowDocumentInCappedNamespace: Cannot change the size of a document in a capped collection: 71 != 86 at src/mongo/db/repl/sync_tail.cpp 1087
      2018-12-21T16:37:27.830+0100 I - [repl writer worker 5]

      ***aborting after fassert() failure

       

      Restart results in the same error.

            Assignee:
            Unassigned Unassigned
            Reporter:
            raffis raffis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: