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

file allocation race when database is dropped immediately

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
    • Fully Compatible
    • ALL
    • 0

      Came up in a test case here:

      From Matt:
      This test error cleared up in #1476, but is now failing at a different point in #1482

      Jul 09 08:12 6bc6dc7360b9... failure #1482 Failed test_12
      Jul 08 08:09 7c21379b0701... success #1481 Build successful
      Jul 07 08:19 bdf9a87b13e3... success #1480 Build successful
      Jul 06 07:44 bdf9a87b13e3... success #1479 Build successful
      Jul 05 08:16 5f949c19a260... success #1478 Build successful
      Jul 04 11:04 5f949c19a260... failure #1477 Failed test_15
      Jul 03 16:51 c11ea25c522c... success #1476 Build successful
      Jul 03 07:31 2b400fabe2fb... failure #1475 Failed test_12

      http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit/builds/1482
      http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit/builds/1482/steps/test_12/logs/stdio
      http://buildlogs.mongodb.org/Nightly%20Linux%2064-bit/builds/1482/test/durability/dur_passthrough.js

               Test : jstests/dropdb.js ...
      2013-07-09 14:45:19 EDT
       m30200| Tue Jul  9 14:45:17.887 [FileAllocator] allocating new datafile /data/db/dur_passthrough/jstests_dropdb.ns, filling with zeroes...
       m30200| Tue Jul  9 14:45:17.992 [FileAllocator] done allocating datafile /data/db/dur_passthrough/jstests_dropdb.ns, size: 16MB,  took 0.105 secs
       m30200| Tue Jul  9 14:45:17.993 [FileAllocator] allocating new datafile /data/db/dur_passthrough/jstests_dropdb.0, filling with zeroes...
       m30200| Tue Jul  9 14:45:18.085 [FileAllocator] done allocating datafile /data/db/dur_passthrough/jstests_dropdb.0, size: 16MB,  took 0.092 secs
       m30200| Tue Jul  9 14:45:19.404 [FileAllocator] allocating new datafile /data/db/dur_passthrough/jstests_dropdb.1, filling with zeroes...
       m30200| Tue Jul  9 14:45:19.405 [conn1] build index jstests_dropdb.c { _id: 1 }
       m30200| Tue Jul  9 14:45:19.406 [conn1] build index done.  scanned 0 total records. 0 secs
       m30200| Tue Jul  9 14:45:19.406 [conn1] insert jstests_dropdb.c ninserted:1 keyUpdates:0 locks(micros) w:1519173 1518ms
       m30200| Tue Jul  9 14:45:19.409 [conn1] dropDatabase jstests_dropdb starting
       m30200| Tue Jul  9 14:45:19.429 [conn1] removeJournalFiles
       m30200| Tue Jul  9 14:45:19.452 [FileAllocator] done allocating datafile /data/db/dur_passthrough/jstests_dropdb.1, size: 32MB,  took 0.047 secs
       m30200| Tue Jul  9 14:45:19.461 [conn1] dropDatabase jstests_dropdb finished
      assert: [-1] != [14] are not equal : undefined
      Error: Printing Stack Trace
          at printStackTrace (src/mongo/shell/utils.js:37:15)
          at doassert (src/mongo/shell/assert.js:6:5)
          at Function.assert.eq (src/mongo/shell/assert.js:32:5)
          at jstests/dropdb.js:14:8
          at /mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js:35:68
          at Function.Date.timeFunc (src/mongo/shell/types.js:27:17)
          at /mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js:35:45
          at Array.forEach (native)
          at doTest (/mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js:18:11)
          at /mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js:51:9
      Tue Jul  9 14:45:19.466 [-1] != [14] are not equal : undefined at src/mongo/shell/assert.js:7
      Tue Jul  9 14:45:19.466 Error: error loading js file: jstests/dropdb.js at /mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js:35
      failed to load: /mntfast/data/slave/Linux_64bit_Nightly/mongo/jstests/dur/dur_passthrough.js
      

      Seems like the file allocator is still working on the database after it's dropped?

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: