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

mongostat --discover fails with "Assertion: 13111:field not found, expected type 2"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongostat
    • None
    • Platforms 2017-02-13
    • Hide
      Since this occurred on a version of mongostat prior to 3.0, I suspect that this has gone away. If someone has a more recent occurrence of this, then feel free to reopen.
      Show
      Since this occurred on a version of mongostat prior to 3.0, I suspect that this has gone away. If someone has a more recent occurrence of this, then feel free to reopen.

      Mongostat won't work on a replicated sharded cluster when one of the shards is misbehaving. Note this only happens with the --discover flag. Without that flag, it reports correctly.

      localhost:~ angshuman.bagchi$ mongostat --discover
      connected to: 127.0.0.1
      
      localhost	no data
      Wed Aug  7 16:28:38.067 Assertion: 13111:field not found, expected type 2
      0x1006e7f2b 0x1006a64b9 0x1006a699c 0x100008720 0x1000128fb 0x100017b6c 0x1000197c9 0x1006a03b6 0x10000171f 0x100001694 0x2 
       0   mongostat                           0x00000001006e7f2b _ZN5mongo15printStackTraceERSo + 43
       1   mongostat                           0x00000001006a64b9 _ZN5mongo11msgassertedEiPKc + 217
       2   mongostat                           0x00000001006a699c _ZN5mongo11msgassertedEiRKSs + 12
       3   mongostat                           0x0000000100008720 _ZNK5mongo11BSONElement6StringEv + 464
       4   mongostat                           0x00000001000128fb _ZN5mongo4Stat9_discoverERSt3mapISsN5boost10shared_ptrINS0_11ServerStateEEESt4lessISsESaISt4pairIKSsS5_EEERS9_RKS5_ + 4235
       5   mongostat                           0x0000000100017b6c _ZN5mongo4Stat7runManyEv + 2460
       6   mongostat                           0x00000001000197c9 _ZN5mongo4Stat3runEv + 841
       7   mongostat                           0x00000001006a03b6 _ZN5mongo4Tool4mainEiPPc + 5462
       8   mongostat                           0x000000010000171f main + 63
       9   mongostat                           0x0000000100001694 start + 52
       10  ???                                 0x0000000000000002 0x0 + 2
      assertion: 13111 field not found, expected type 2
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: