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

index_many.js fails if run alone against a master slave deployment.

    • Fully Compatible

      index_many.js succeds if it is run as part of the larger small_oplog suite, but not if it is the only test being run. It fails with the following backtrace:

       0x10c07c9 0x97126c 0xcee825 0xcec0dc 0xcc7f9a 0xcc905c 0xccd964 0xcd1a83 0xcd20e1 0xcd31bf 0x11022d8 0x7f44dc1be182 0x7f44dbeeafbd
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"CC07C9"},{"b":"400000","o":"57126C"},{"b":"400000","o":"8EE825"},{"b":"400000","o":"8EC0DC"},{"b":"400000","o":"8C7F9A"},{"b":"400000","o":"8C905C"},{"b":"400000","o":"8CD964"},{"b":"400000","o":"8D1A83"},{"b":"400000","o":"8D20E1"},{"b":"400000","o":"8D31BF"},{"b":"400000","o":"D022D8"},{"b":"7F44DC1B6000","o":"8182"},{"b":"7F44DBDF0000","o":"FAFBD"}],"processInfo":{ "mongodbVersion" : "3.1.3-pre-", "gitVersion" : "692b193e9c2bcb851014a536d43366bd428fe159", "uname" : { "sysname" : "Linux", "release" : "3.13.0-37-generic", "version" : "#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "7FFF35EFE000", "elfType" : 3, "buildId" : "0074678E5FFFF79F46C476077E67057161772F37" }, { "b" : "7F44DCCFA000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "574C6350381DA194C00FF555E0C1784618C05569" }, { "b" : "7F44DCAF2000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "92FCF41EFE012D6186E31A59AD05BDBB487769AB" }, { "b" : "7F44DC8EE000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "C1AE4CB7195D337A77A3C689051DABAA3980CA0C" }, { "b" : "7F44DC5EA000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "19EFDDAB11B3BF5C71570078C59F91CF6592CE9E" }, { "b" : "7F44DC3D4000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "8D0AA71411580EE6C08809695C3984769F25725B" }, { "b" : "7F44DC1B6000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "FE662C4D7B14EE804E0C1902FB55218A106BC5CB" }, { "b" : "7F44DBDF0000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "B515361E474796AF29DE9992B76A97CFFB39B2A7" }, { "b" : "7F44DD000000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "9F00581AB3C73E3AEA35995A0C50D24D59A01D47" } ] }}
       mongod(_ZN5mongo15printStackTraceERSo+0x29) [0x10c07c9]
       mongod(_ZN5mongo16renameCollectionEPNS_16OperationContextERKNS_15NamespaceStringES4_bb+0xC6C) [0x97126c]
       mongod(+0x8EE825) [0xcee825]
       mongod(_ZN5mongo4repl21applyOperation_inlockEPNS_16OperationContextEPNS_8DatabaseERKNS_7BSONObjEb+0x2B0C) [0xcec0dc]
       mongod(_ZN5mongo4repl10ReplSource14applyOperationEPNS_16OperationContextEPNS_8DatabaseERKNS_7BSONObjE+0x2A) [0xcc7f9a]
       mongod(_ZN5mongo4repl10ReplSource30_sync_pullOpLog_applyOperationEPNS_16OperationContextERNS_7BSONObjEb+0xB6C) [0xcc905c]
       mongod(_ZN5mongo4repl10ReplSource15_sync_pullOpLogEPNS_16OperationContextERi+0x1FA4) [0xccd964]
       mongod(_ZN5mongo4repl10ReplSource4syncEPNS_16OperationContextERi+0x583) [0xcd1a83]
       mongod(_ZN5mongo4repl9_replMainEPNS_16OperationContextERSt6vectorIN5boost10shared_ptrINS0_10ReplSourceEEESaIS7_EERi+0x121) [0xcd20e1]
       mongod(+0x8D31BF) [0xcd31bf]
       mongod(+0xD022D8) [0x11022d8]
       libpthread.so.0(+0x8182) [0x7f44dc1be182]
       libc.so.6(clone+0x6D) [0x7f44dbeeafbd]
      -----  END BACKTRACE  -----
      

      The dbhash appears to be different after the test due to the following excerpt from the slave's logs:

      2015-04-29T16:23:22.351-0400 I INDEX    [replslave] restarting 0 background index build(s)
      2015-04-29T16:23:22.351-0400 E REPL     [replslave] Failed command { renameCollection: "test.many", to: "test.many2", stayTemp: false, dropTarget: false } on test with status NamespaceExists target namespace exists during oplog application
      

      Full output is attached.

        1. index_many_smoke.log
          83 kB
          Charlie Swanson

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: