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

In-memory storage engine not reporting index size

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc2
    • Fix Version/s: 3.2.5, 3.3.3
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      Start an in-Memory instance (I have verified the problem with both standalone and RS).
      Load some data in any collection.
      db.stats() and db.c.stats() shows index size to be 4096 independently of the collection size. If several index are created, each one is 4096 bytes size.

      Show
      Start an in-Memory instance (I have verified the problem with both standalone and RS). Load some data in any collection. db.stats() and db.c.stats() shows index size to be 4096 independently of the collection size. If several index are created, each one is 4096 bytes size.
    • Sprint:
      Integration F (02/01/16), Integration 10 (02/22/16), Integration 11 (03/14/16)

      Description

      Playing with 3.2.0-rc4 I have found that the db.stats() command is always informing the size of indexes as 4096 bytes.

      MongoDB Enterprise inMem:PRIMARY> db.stats()
      {
      	"db" : "POCDB",
      	"collections" : 1,
      	"objects" : 1876714,
      	"avgObjSize" : 285.37579247557164,
      	"dataSize" : 535568745,
      	"storageSize" : 535568745,
      	"numExtents" : 0,
      	"indexes" : 1,
      	"indexSize" : 4096,
      	"ok" : 1
      }
      

      This is also affecting compass index size report.

        Activity

        Hide
        thomas.schubert Thomas Schubert added a comment -

        I have verified this behavior on 3.2.0-rc5 enterprise on linux and OS X. I'm sending it to triage.

        Show
        thomas.schubert Thomas Schubert added a comment - I have verified this behavior on 3.2.0-rc5 enterprise on linux and OS X. I'm sending it to triage.
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

        Message: SERVER-21681: Use cursor statistics to derive index sizes for inMemory
        Branch: master
        https://github.com/mongodb/mongo/commit/7ed2327abb1168d7f89e3cd05c8740eee20dcdde

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'} Message: SERVER-21681 : Use cursor statistics to derive index sizes for inMemory Branch: master https://github.com/mongodb/mongo/commit/7ed2327abb1168d7f89e3cd05c8740eee20dcdde
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

        Message: SERVER-21681 Replace 'or' with operator || to fix Windows build
        Branch: master
        https://github.com/mongodb/mongo/commit/73409b9364b8d83442a23a57ad910fc0438511ec

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'} Message: SERVER-21681 Replace 'or' with operator || to fix Windows build Branch: master https://github.com/mongodb/mongo/commit/73409b9364b8d83442a23a57ad910fc0438511ec
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

        Message: SERVER-21681: Use cursor statistics to derive index sizes for inMemory

        (cherry picked from commit 7ed2327abb1168d7f89e3cd05c8740eee20dcdde)
        Branch: v3.2
        https://github.com/mongodb/mongo/commit/333fad00034cd35dd0b1ffabefd3b6ee9ed5f849

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'} Message: SERVER-21681 : Use cursor statistics to derive index sizes for inMemory (cherry picked from commit 7ed2327abb1168d7f89e3cd05c8740eee20dcdde) Branch: v3.2 https://github.com/mongodb/mongo/commit/333fad00034cd35dd0b1ffabefd3b6ee9ed5f849
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

        Message: SERVER-21681 Replace 'or' with operator || to fix Windows build

        (cherry picked from commit 73409b9364b8d83442a23a57ad910fc0438511ec)
        Branch: v3.2
        https://github.com/mongodb/mongo/commit/d62c6451399b1655eb31fc9554ac14928f7bb7cd

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'} Message: SERVER-21681 Replace 'or' with operator || to fix Windows build (cherry picked from commit 73409b9364b8d83442a23a57ad910fc0438511ec) Branch: v3.2 https://github.com/mongodb/mongo/commit/d62c6451399b1655eb31fc9554ac14928f7bb7cd

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

                Agile