Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-110

mongorestore crashes if it fails to restore an index

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongorestore

      mongorestore will crash if it fails to build an index for any reason. The correct behavior is to abort the mongorestore, but not crash.

      mongod prints:

      2013-11-14T15:17:26.483-0500 [conn3] build index on: test.coll properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "test.coll" }
      2013-11-14T15:17:26.483-0500 [conn3] build index done.  scanned 0 total records. 0 secs
      2013-11-14T15:17:26.484-0500 [conn3] Assertion: 16811:text search not enabled
      2013-11-14T15:17:26.488-0500 [conn3] test.system.indexes 0xd44e06 0xd08e38 0xcf0d79 0xa05a03 0x898e83 0x89a625 0xa97dee 0xa98cfc 0xa0d86a 0xa12998 0xa1419b 0x7a6f9b 0xd15c52 0x7f75b39b70a2 0x7f75b2cc443d 
       mongo/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xd44e06]
       mongo/mongod(_ZN5mongo10logContextEPKc+0x188) [0xd08e38]
       mongo/mongod(_ZN5mongo11msgassertedEiPKc+0xc9) [0xcf0d79] mongo/mongod(_ZN5mongo11IndexLegacy21adjustIndexSpecObjectERKNS_7BSONObjE+0x1c3) [0xa05a03] mongo/mongod(_ZN5mongo12IndexCatalog12fixIndexSpecERKNS_7BSONObjE+0x23) [0x898e83]
       mongo/mongod(_ZN5mongo12IndexCatalog11createIndexENS_7BSONObjEb+0x75) [0x89a625]
       mongo/mongod(_ZN5mongo11DataFileMgr6insertEPKcPKvibbbPb+0x2ce) [0xa97dee]
       mongo/mongod(_ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEbb+0x3c) [0xa98cfc]
       mongo/mongod(_ZN5mongo14checkAndInsertEPKcRNS_7BSONObjE+0x11a) [0xa0d86a]
       mongo/mongod(_ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE+0x378) [0xa12998]
       mongo/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x16bb) [0xa1419b]
       mongo/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xbb) [0x7a6f9b]
       mongo/mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x442) [0xd15c52]
       /usr/lib/libpthread.so.0(+0x80a2) [0x7f75b39b70a2]
       /usr/lib/libc.so.6(clone+0x6d) [0x7f75b2cc443d]
      2013-11-14T15:17:26.489-0500 [conn3] insert test.system.indexes keyUpdates:0 exception: text search not enabled code:16811 locks(micros) w:4804 4ms
      2013-11-14T15:17:26.530-0500 [conn3] end connection 127.0.0.1:45295 (0 connections now open)
      

      mongorestore prints:

      2013-11-14T15:17:26.483-0500    Creating index: { key: { _id: 1 }, ns: "test.coll", name: "_id_" }
      2013-11-14T15:17:26.484-0500    Creating index: { key: { _fts: "text", _ftsx: 1 }, ns: "test.coll", name: "foo_text", weights: { foo: 1 }, default_language: "english", language_override: "language", textIndexVersion: 2 }
      Error creating index test.coll: 16811 err: "text search not enabled"
      Aborted (core dumped)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            phillip.quiza Phillip Quiza
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: