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

Unable to start DB with > 1024 files after upgrading for 2.2.x to 2.4.0-rc0

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 2.4.0-rc1
    • Affects Version/s: 2.4.0-rc0
    • Component/s: Networking
    • None
    • Environment:
      OS-X
    • ALL

      Problem:
      With > 1024 db files, 2.4.0-rc0 (and 2.3.2) fails to start with

      Mon Feb 11 21:43:47.460 [IndexRebuilder] opening db:  fred98
      Mon Feb 11 21:43:47.463 [IndexRebuilder] opening db:  fred99
      Mon Feb 11 21:43:47.465 [IndexRebuilder] opening db:  local
      Mon Feb 11 21:43:47.468 [websvr] admin web console waiting for connections on port 28017
      Mon Feb 11 21:43:47.468 [initandlisten] waiting for connections on port 27017
      Mon Feb 11 21:43:47.469 [websvr] select() failure: ret=-1 errno:22 Invalid argument
      Mon Feb 11 21:43:47.469 [initandlisten] select() failure: ret=-1 errno:22 Invalid argument
      Mon Feb 11 21:43:47.469 [initandlisten] now exiting
      

      Reproduce:

      > mongod --dbpath /data/db/bug --logpath /data/db/bug/server.log --fork --smallfiles --noprealloc
      

      Create enough DB's so that startup will be successful

      > mongo admin
      for (i=0; i < 506; i++) { var dummyDb = db.getSisterDB( "fred" + i ).foo.insert({x:1}); }
      db.shutdownServer()
      

      Startup will be ok

      > mongod --dbpath /data/db/bug --logpath /data/db/bug/server.log --fork --smallfiles --noprealloc
      

      Add another DB and shutdown

      > mongo admin
      var dummyDb = db.getSisterDB( "fred507" ).foo.insert({x:1});
      db.shutdownServer()
      

      Startup will now fail

      > mongod --dbpath /data/db/bug --logpath /data/db/bug/server.log --fork --smallfiles --noprealloc
      

      Note:
      If you take the same db files and now start them with 2.2.3 then it will startup OK.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: