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

Running a compact command on a 2.4 collection in 2.6.1 caused the command to go into a loop and allocate more db files

    • Type: Icon: Bug Bug
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.1
    • Component/s: Storage
    • Labels:
      None
    • Environment:
      RHEL 6.3, mongodb 2.6.1
    • ALL

      I was running a compact command on a 2.4 collection imported into a 2.6.1 server.

      The collection was ~ 56GiB and contained 31 datafiles originally.

      When I ran compact, the command seems to go into a loop allocating new files datafiles:

      2014-06-15T15:06:44.997-0400 [FileAllocator] allocating new datafile /data/mongo/dbpath/XXXXXXX.256, filling with zeroes...
      

      I stopped the compact command at this point. This was also the second run of compact after resetting the db files (I stopped it at about 100 datafiles on that run).

      Compacting the same collection on a 2.4.10 instance did not behave this way.

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            jim.oleary@mongodb.com James O'Leary
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: