Assertion when setting option Exhaust (64) in shell

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.5.5
    • Component/s: Shell
    • Storage Execution
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Problem:
      Adding the option 64, gives the following

      > db.foo.find().addOption(64)
      { "_id" : ObjectId("52aa11f96483916c3e9dcddd"), "a" : 1, "b" : 2 }
      { "_id" : ObjectId("52af45da2d4292951ad56038"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56039"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603a"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603b"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603c"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603d"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603e"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5603f"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56040"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56041"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56042"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56043"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56044"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56045"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56046"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56047"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56048"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad56049"), "a" : 1 }
      { "_id" : ObjectId("52af45da2d4292951ad5604a"), "a" : 1 }
      Type "it" for more
      2013-12-16T10:28:39.071-0800 ERROR: MessagingPort::call() wrong id got:85 expect:5
        toSend op: 2004
        response msgid:134
        response len:  326736
        response op:  1
        remote: 127.0.0.1:27017
      2013-12-16T10:28:39.072-0800 Assertion failure false src/mongo/util/net/message_port.cpp 269
      2013-12-16T10:28:39.074-0800 0x100131a0b 0x1000f09b2 0x1000def82 0x1000f6b09 0x1000f6ba1 0x100031b09 0x100031d5d 0x10005a61e 0x10002f34c 0x10003ae83 0x1000bf6af 0x1000a9a80 0x1001eae60 0x1ab149b06362 
       0   mongo                               0x0000000100131a0b _ZN5mongo15printStackTraceERSo + 43
       1   mongo                               0x00000001000f09b2 _ZN5mongo10logContextEPKc + 114
       2   mongo                               0x00000001000def82 _ZN5mongo12verifyFailedEPKcS1_j + 274
       3   mongo                               0x00000001000f6b09 _ZN5mongo13MessagingPort4recvERKNS_7MessageERS1_ + 1167
       4   mongo                               0x00000001000f6ba1 _ZN5mongo13MessagingPort4callERNS_7MessageES2_ + 49
       5   mongo                               0x0000000100031b09 _ZN5mongo18DBClientConnection4callERNS_7MessageES2_bPSs + 91
       6   mongo                               0x0000000100031d5d _ZThn72_N5mongo18DBClientConnection4callERNS_7MessageES2_bPSs + 13
       7   mongo                               0x000000010005a61e _ZN5mongo14DBClientCursor4initEv + 340
       8   mongo                               0x000000010002f34c _ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii + 180
       9   mongo                               0x000000010003ae83 _ZN5mongo18DBClientConnection5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii + 133
       10  mongo                               0x00000001000bf6af _ZN5mongo9mongoFindEPNS_7V8ScopeERKN2v89ArgumentsE + 783
       11  mongo                               0x00000001000a9a80 _ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE + 116
       12  mongo                               0x00000001001eae60 _ZN2v88internalL21Builtin_HandleApiCallENS0_12_GLOBAL__N_116BuiltinArgumentsILNS0_21BuiltinExtraArgumentsE1EEEPNS0_7IsolateE + 464
       13  ???                                 0x00001ab149b06362 0x0 + 29348747830114
      

      Reproduce:

      db.foo.drop()
      for (i=0;i < 10000; i++) { db.foo.insert({a:1});}
      db.foo.find().addOption(64)
      

      Workaround
      Appears to hang the shell, you need to exit and re-start the shell

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: