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

dbtest fails when run without specifying a suite

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL

      It seems like we don't ever test dbtest by running all suites. If it is run without any arguments (i.e. test suites), it will crash with "Invariant failure !dropOpTime.isNull()"

      ./dbtest
      ...
      2019-07-17T15:53:33.298-0400 I  -        [testsuite]     going to run test: RollbackTests::DropCollection<false, false, false>
      2019-07-17T15:53:33.298-0400 I  SHARDING [testsuite] Marking collection unittests.rollback_drop_collection as collection version: <unsharded>
      2019-07-17T15:53:33.298-0400 I  STORAGE  [testsuite] createCollection: unittests.rollback_drop_collection with generated UUID: f8494710-f43b-4db2-bbae-793297e4d638 and options: {}
      2019-07-17T15:53:33.300-0400 I  STORAGE  [testsuite] dropCollection: unittests.rollback_drop_collection (f8494710-f43b-4db2-bbae-793297e4d638) - storage engine will take ownership of drop-pending collecti
      on with optime { ts: Timestamp(0, 0), t: -1 } and commit timestamp Timestamp(0, 0)
      2019-07-17T15:53:33.300-0400 F  -        [testsuite] Invariant failure !dropOpTime.isNull() src/mongo/db/catalog/database_impl.cpp 394
      
      2019-07-17T15:53:33.298-0400 I  -        [testsuite]     going to run test: RollbackTests::DropCollection<false, false, false>
      2019-07-17T15:53:33.298-0400 I  SHARDING [testsuite] Marking collection unittests.rollback_drop_collection as collection version: <unsharded>
      2019-07-17T15:53:33.298-0400 I  STORAGE  [testsuite] createCollection: unittests.rollback_drop_collection with generated UUID: f8494710-f43b-4db2-bbae-793297e4d638 and options: {}
      2019-07-17T15:53:33.300-0400 I  STORAGE  [testsuite] dropCollection: unittests.rollback_drop_collection (f8494710-f43b-4db2-bbae-793297e4d638) - storage engine will take ownership of drop-pending collecti
      on with optime { ts: Timestamp(0, 0), t: -1 } and commit timestamp Timestamp(0, 0)
      2019-07-17T15:53:33.300-0400 F  -        [testsuite] Invariant failure !dropOpTime.isNull() src/mongo/db/catalog/database_impl.cpp 394
      2019-07-17T15:53:33.300-0400 F  -        [testsuite]
      
      ***aborting after invariant() failure
      
      
      2019-07-17T15:53:33.315-0400 F  -        [testsuite] Got signal: 6 (Aborted).
       0x56436e691e71 0x56436e68f84e 0x56436e68f8e6 0x7f4058514e70 0x7f4058373eb5 0x7f405835e895 0x56436c93bb12 0x56436c6b0e80 0x56436cdb3336 0x56436cc407de 0x56436cc40e30 0x56436e59da12 0x56436e59eb2d 0x56436c
      d719b2 0x56436ca0bc7a 0x56436c94b6f9 0x7f405835ff33 0x56436c9dba7e
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"56436BB0C000","o":"2B85E71","s":"_ZN5mongo15printStackTraceERSo"},{"b":"56436BB0C000","o":"2B8384E"},{"b":"56436BB0C000","o":"2B838E6"},{"b":"7F4058502000","o":"12E70"},{"b":"7F405833C
      000","o":"37EB5","s":"gsignal"},{"b":"7F405833C000","o":"22895","s":"abort"},{"b":"56436BB0C000","o":"E2FB12","s":"_ZN5mongo22invariantFailedWithMsgEPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcE
      EES1_j"},{"b":"56436BB0C000","o":"BA4E80"},{"b":"56436BB0C000","o":"12A7336","s":"_ZNK5mongo12DatabaseImpl14dropCollectionEPNS_16OperationContextENS_15NamespaceStringENS_4repl6OpTimeE"},{"b":"56436BB0C000
      ","o":"11347DE","s":"_ZN13RollbackTests14DropCollectionILb0ELb0ELb0EE3runEv"},{"b":"56436BB0C000","o":"1134E30","s":"_ZNSt17_Function_handlerIFvvEZN5mongo8unittest5Suite3addIN13RollbackTests14DropCollecti
      onILb0ELb0ELb0EEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEUlvE_E9_M_invokeERKSt9_Any_data"},{"b":"56436BB0C000","o":"2A91A12","s":"_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_string
      IcSt11char_traitsIcESaIcEEEi"},{"b":"56436BB0C000","o":"2A92B2D","s":"_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i"},{"b":"56436BB0C000","o":
      "12659B2","s":"_ZN5mongo7dbtests10runDbTestsEiPPc"},{"b":"56436BB0C000","o":"EFFC7A","s":"_Z11dbtestsMainiPPcS0_"},{"b":"56436BB0C000","o":"E3F6F9","s":"main"},{"b":"7F405833C000","o":"23F33","s":"__libc_
      start_main"},{"b":"56436BB0C000","o":"ECFA7E","s":"_start"}],"processInfo":{ "mongodbVersion" : "0.0.0", "gitVersion" : "unknown", "compiledModules" : [ "ninja" ], "uname" : { "sysname" : "Linux", "releas
      e" : "5.0.17-300.fc30.x86_64", "version" : "#1 SMP Mon May 20 15:36:26 UTC 2019", "machine" : "x86_64" }, "somap" : [ { "b" : "56436BB0C000", "elfType" : 3, "buildId" : "E3760F22BDB1BF76ADA347A679F49CBDA4
      34FE6B" }, { "b" : "7FFDA7561000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "659677320AA51E757C172D51F4C5940C50033527" }, { "b" : "7F4058A25000", "path" : "/lib64/libcurl.so.4", "elfType" :
      3, "buildId" : "EEFAC1B6E705CDA0054307C582EA5420FF955E31" }, { "b" : "7F4058A0B000", "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "6581791D0775209CF5221EAB2E7581F50856A92A" }, { "b" : "7F4
      05872B000", "path" : "/lib64/libcrypto.so.1.1", "elfType" : 3, "buildId" : "29CC2810D62BFD1D4162FABB799617B9C40AD908" }, { "b" : "7F4058695000", "path" : "/lib64/libssl.so.1.1", "elfType" : 3, "buildId" :
       "760CC5EC97CAD301FEB1AD540FAB86EB08DB945C" }, { "b" : "7F405868F000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "455AC1EF7B3613463A5D2CCB079F069B64214B4D" }, { "b" : "7F4058685000", "path"
       : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "1AB99EED9E20D8B343101AAD30E37C62BFBFB9E2" }, { "b" : "7F405853D000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "5391DC97775A6F742348CA29E5
      0212DAC1520FD6" }, { "b" : "7F4058523000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "E660D4E30E163310ED48B0DEDD8170DECB96837F" }, { "b" : "7F4058502000", "path" : "/lib64/libpthread.so.
      0", "elfType" : 3, "buildId" : "AFDE9557F2AC2684D992480FFB95F8A804081E04" }, { "b" : "7F405833C000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "B03551F716875517BFE7E24DEC31147BBB139A2D" }, {
       "b" : "7F4058AD6000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "66AA62114E04652217638127C40838AA14061D03" }, { "b" : "7F4058313000", "path" : "/lib64/libnghttp2.so.14", "elfType
      " : 3, "buildId" : "9E281D0B92BF12A3F6B204F91EA44E225F6185C1" }, { "b" : "7F40582F2000", "path" : "/lib64/libidn2.so.0", "elfType" : 3, "buildId" : "52BF5D3BF040CE11B5B46A8A9A003BF10AA99D86" }, { "b" : "7
      F405826C000", "path" : "/lib64/libssh.so.4", "elfType" : 3, "buildId" : "62CD41C5FFC2E3A6D8984BDFDA57421A3CB80448" }, { "b" : "7F4058259000", "path" : "/lib64/libpsl.so.5", "elfType" : 3, "buildId" : "45D
      CAC9A16D764EE472EE581871711297AF2B384" }, { "b" : "7F4058207000", "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "AC8333442EB714A7F9EACB159575AFB0474E2486" }, { "b" : "7F4058116000", "p
      ath" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "4E9623C2CDEDE664D28AF49BCE9FA52E50A42E77" }, { "b" : "7F40580F8000", "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "6B1982D1F4D43
      DC3A8D0F6F116B4A27827180251" }, { "b" : "7F40580F1000", "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "3FA48FE745DC06050554B58B1D736892923378E8" }, { "b" : "7F405809E000", "path" : "/lib64
      /libldap-2.4.so.2", "elfType" : 3, "buildId" : "5C3A684974D95EE8FB3D3FD537ECD2470EAA47A8" }, { "b" : "7F405808D000", "path" : "/lib64/liblber-2.4.so.2", "elfType" : 3, "buildId" : "2A93D454978C708C83D128D
      CFB6228F0009082F7" }, { "b" : "7F405807E000", "path" : "/lib64/libbrotlidec.so.1", "elfType" : 3, "buildId" : "B0D72EB4632DFBABA5E26E698A2CC05A7F32005C" }, { "b" : "7F4058064000", "path" : "/lib64/libz.so
      .1", "elfType" : 3, "buildId" : "7F1ACE7DA03ED421EF30ACD5146D39EABF5D1939" }, { "b" : "7F4057EE0000", "path" : "/lib64/libunistring.so.2", "elfType" : 3, "buildId" : "EB429CC9CBF6113E388BB880F0C6C19582856
      54A" }, { "b" : "7F4057ECC000", "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "56A4A2D717F3797E39158D03A204ACE249CEDC4F" }, { "b" : "7F4057EC5000", "path" : "/lib64/libkeyutils.so.1",
      "elfType" : 3, "buildId" : "903841521EA1CA97EDC54D96D976820017EC0844" }, { "b" : "7F4057EA5000", "path" : "/lib64/libsasl2.so.3", "elfType" : 3, "buildId" : "E33A7E6E97C5083B17F5F7282737952030CC5290" }, {
       "b" : "7F4057E82000", "path" : "/lib64/libbrotlicommon.so.1", "elfType" : 3, "buildId" : "44D78980B06EB78CBBF847F7FCC243F00A5C085A" }, { "b" : "7F4057E55000", "path" : "/lib64/libselinux.so.1", "elfType"
       : 3, "buildId" : "A754E034C933B6BF9864CDCF1763741D0A7279D6" }, { "b" : "7F4057E18000", "path" : "/lib64/libcrypt.so.2", "elfType" : 3, "buildId" : "D9D2C4F69A65B91AD873C0B3C1545EAA304B8316" }, { "b" : "7
      F4057D8A000", "path" : "/lib64/libpcre2-8.so.0", "elfType" : 3, "buildId" : "B53B705D4480F566CC3E04692DDC87BEBB1C0EC4" } ] }}
       dbtest(_ZN5mongo15printStackTraceERSo+0x41) [0x56436e691e71]
      dbtest(_ZN5mongo15printStackTraceERSo+0x41) [0x56436e691e71]
       dbtest(+0x2B8384E) [0x56436e68f84e]
       dbtest(+0x2B838E6) [0x56436e68f8e6]
       libpthread.so.0(+0x12E70) [0x7f4058514e70]
       libc.so.6(gsignal+0x145) [0x7f4058373eb5]
       libc.so.6(abort+0x127) [0x7f405835e895]
       dbtest(_ZN5mongo22invariantFailedWithMsgEPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_j+0x0) [0x56436c93bb12]
       dbtest(+0xBA4E80) [0x56436c6b0e80]
       dbtest(_ZNK5mongo12DatabaseImpl14dropCollectionEPNS_16OperationContextENS_15NamespaceStringENS_4repl6OpTimeE+0x196) [0x56436cdb3336]
       dbtest(_ZN13RollbackTests14DropCollectionILb0ELb0ELb0EE3runEv+0x57E) [0x56436cc407de]
       dbtest(_ZNSt17_Function_handlerIFvvEZN5mongo8unittest5Suite3addIN13RollbackTests14DropCollectionILb0ELb0ELb0EEEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEUlvE_E9_M_invokeERKSt9_Any_data+0x
      20) [0x56436cc40e30]
       dbtest(_ZN5mongo8unittest5Suite3runERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0x382) [0x56436e59da12]
       dbtest(_ZN5mongo8unittest5Suite3runERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EERKS8_i+0x41D) [0x56436e59eb2d]
       dbtest(_ZN5mongo7dbtests10runDbTestsEiPPc+0x272) [0x56436cd719b2]
       dbtest(_Z11dbtestsMainiPPcS0_+0x4BA) [0x56436ca0bc7a]
       dbtest(main+0x9) [0x56436c94b6f9]
       libc.so.6(__libc_start_main+0xF3) [0x7f405835ff33]
       dbtest(_start+0x2E) [0x56436c9dba7e]
      -----  END BACKTRACE  -----
      [1]    3901 abort (core dumped)  ./dbtest |
             3902 done                 tee out.log
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: