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

MongoDB failed to run test due to execute sharding_catalog_manager_test.exe

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Hide

      Reproduce steps:
      1. git clone -c core.autocrlf=true https://github.com/mongodb/mongo D:\MongoDB\src
      2. Open a VS 2017 x64 command prompt and browse to D:\MongoDB\src
      3. Download the attachments and apply all patches for MongoDB.
      4. pip.exe install -r .\buildscripts\requirements.txt
      5. set CL=/wd4756 /wd4056
      6. scons all -j4 CXXFLAGS="/wd4756 /wd4056"
      7. python.exe buildscripts/resmoke.py --suites=unittests --jobs=8

      Acutal result:
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 2018-10-30T22:41:16.144-0700 I -        [main] sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\xstring(2131)  std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >+0x31x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\xmemory0(880)  std::_Default_allocator_traits<std::allocator<mongo::ChunkType> >::construct<mongo::ChunkType,mongo::NamespaceString const &,mongo::ChunkRange,mongo::ChunkVersion &,mongo::ShardId const &>+0x65x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\vector(962)    std::vector<mongo::ChunkType,std::allocator<mongo::ChunkType> >::_Emplace_reallocate<mongo::NamespaceString const &,mongo::ChunkRange,mongo::ChunkVersion &,mongo::ShardId const &>+0x418x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy.cpp(59)                                                          mongo::appendChunk+0x204x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy.cpp(254)                                                         mongo::InitialSplitPolicy::generateShardCollectionInitialZonedChunks+0x781x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy_test.cpp(440)                                                    mongo::`anonymous namespace'::UnitTest_GenerateShardCollectionInitialZonedChunksTest_ZoneNotAssociatedWithAnyShardShouldFail::_doTest+0x3227x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(179)                                                                        mongo::unittest::Test::run+0x42x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.h(433)                                                                          <lambda_e6323115639f4db19f3c7780c20bb36f>::operator()+0x213x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(304)                                                                        mongo::unittest::Suite::run+0x3277x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(364)                                                                        mongo::unittest::Suite::run+0x2010x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest_main.cpp(112)                                                                   main+0x4728x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  d:\agent_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288)                                    __scrt_common_main_seh+0x268x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 KERNEL32.DLL                                                                                                                                       BaseThreadInitThunk+0x20x
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 2018-10-30T22:41:16.144-0700 I CONTROL  [main] writing minidump diagnostic file D:\MongoDB\src\build\opt\mongo\db\s\sharding_catalog_manager_test.2018-10-31T05-41-16.mdmp
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.376-0700 I -        [main] going to run suite: SystemError
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Category
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Conversions
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Equivalence
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   DONE running tests
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] **************************************************
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] SystemError                    | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.000
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] TOTALS                         | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.000
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] SUCCESS - All tests in all suites passed
      [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.390-0800 C++ unit test build\opt\mongo\base\system_error_test.exe finished.
      [executor:cpp_unit_test:job1] 2018-10-31T05:41:16.391-0800 system_error_test.exe ran in 1.75 seconds.
      [executor:cpp_unit_test:job1] 2018-10-31T05:41:16.391-0800 Running index_bounds_test.exe...
      build\opt\mongo\db\query\index_bounds_test.exe
      [cpp_unit_test:index_bounds_test] 2018-10-31T05:41:16.391-0800 Starting C++ unit test build\opt\mongo\db\query\index_bounds_test.exe...
      build\opt\mongo\db\query\index_bounds_test.exe
      [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.744-0800 2018-10-30T22:41:16.746-0700 F CONTROL  [main] *** immediate exit due to unhandled exception
      [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.763-0800 sharding_catalog_manager_test.exe ran in 10.47 seconds.
      [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.765-0800 C++ unit test build\opt\mongo\db\s\sharding_catalog_manager_test.exe failed, so stopping...
      [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.765-0800 Received a StopExecution exception: C++ unit test build\opt\mongo\db\s\sharding_catalog_manager_test.exe failed.
      [executor] 2018-10-31T05:41:38.381-0800 Summary: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)
          The following tests failed (with exit code):
              build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14)
      [resmoke] 2018-10-31T05:41:38.381-0800 ================================================================================
      [resmoke] 2018-10-31T05:41:38.381-0800 Summary of unittests suite: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)
      The following tests failed (with exit code):
          build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14)
      85 test(s) ran in 62.34 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)
          cpp_unit_tests: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)
              The following tests failed (with exit code):
                  build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14)
      [resmoke] 2018-10-31T05:41:38.381-0800 Exiting with code: 1
      [command took 63 seconds]

      Show
      Reproduce steps: 1. git clone -c core.autocrlf=true https://github.com/mongodb/mongo D:\MongoDB\src 2. Open a VS 2017 x64 command prompt and browse to D:\MongoDB\src 3. Download the attachments and apply all patches for MongoDB. 4. pip.exe install -r .\buildscripts\requirements.txt 5. set CL =/wd4756 /wd4056 6. scons all -j4 CXXFLAGS="/wd4756 /wd4056" 7. python.exe buildscripts/resmoke.py --suites=unittests --jobs=8 Acutal result: [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 2018-10-30T22:41:16.144-0700 I -        [main] sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\xstring(2131)  std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >+0x31x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\xmemory0(880)  std::_Default_allocator_traits<std::allocator<mongo::ChunkType> >::construct<mongo::ChunkType,mongo::NamespaceString const &,mongo::ChunkRange,mongo::ChunkVersion &,mongo::ShardId const &>+0x65x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.14.26428\include\vector(962)    std::vector<mongo::ChunkType,std::allocator<mongo::ChunkType> >::_Emplace_reallocate<mongo::NamespaceString const &,mongo::ChunkRange,mongo::ChunkVersion &,mongo::ShardId const &>+0x418x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy.cpp(59)                                                          mongo::appendChunk+0x204x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy.cpp(254)                                                         mongo::InitialSplitPolicy::generateShardCollectionInitialZonedChunks+0x781x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\db\s\config\initial_split_policy_test.cpp(440)                                                    mongo::`anonymous namespace'::UnitTest_ GenerateShardCollectionInitialZonedChunksTest _ZoneNotAssociatedWithAnyShardShouldFail::_doTest+0x3227x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(179)                                                                        mongo::unittest::Test::run+0x42x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.h(433)                                                                          <lambda_e6323115639f4db19f3c7780c20bb36f>::operator()+0x213x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(304)                                                                        mongo::unittest::Suite::run+0x3277x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest.cpp(364)                                                                        mongo::unittest::Suite::run+0x2010x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  ...\src\mongo\unittest\unittest_main.cpp(112)                                                                   main+0x4728x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 sharding_catalog_manager_test.exe  d:\agent_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288)                                    __scrt_common_main_seh+0x268x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 KERNEL32.DLL                                                                                                                                       BaseThreadInitThunk+0x20x [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.144-0800 2018-10-30T22:41:16.144-0700 I CONTROL  [main] writing minidump diagnostic file D:\MongoDB\src\build\opt\mongo\db\s\sharding_catalog_manager_test.2018-10-31T05-41-16.mdmp [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.376-0700 I -        [main] going to run suite: SystemError [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Category [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Conversions [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   going to run test: Equivalence [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main]   DONE running tests [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] ************************************************** [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] SystemError                    | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.000 [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] TOTALS                         | tests:    3 | fails:    0 | assert calls:          0 | time secs:  0.000 [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.378-0800 2018-10-30T22:41:16.378-0700 I -        [main] SUCCESS - All tests in all suites passed [cpp_unit_test:system_error_test] 2018-10-31T05:41:16.390-0800 C++ unit test build\opt\mongo\base\system_error_test.exe finished. [executor:cpp_unit_test:job1] 2018-10-31T05:41:16.391-0800 system_error_test.exe ran in 1.75 seconds. [executor:cpp_unit_test:job1] 2018-10-31T05:41:16.391-0800 Running index_bounds_test.exe... build\opt\mongo\db\query\index_bounds_test.exe [cpp_unit_test:index_bounds_test] 2018-10-31T05:41:16.391-0800 Starting C++ unit test build\opt\mongo\db\query\index_bounds_test.exe... build\opt\mongo\db\query\index_bounds_test.exe [cpp_unit_test:sharding_catalog_manager_test] 2018-10-31T05:41:16.744-0800 2018-10-30T22:41:16.746-0700 F CONTROL  [main] *** immediate exit due to unhandled exception [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.763-0800 sharding_catalog_manager_test.exe ran in 10.47 seconds. [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.765-0800 C++ unit test build\opt\mongo\db\s\sharding_catalog_manager_test.exe failed, so stopping... [executor:cpp_unit_test:job7] 2018-10-31T05:41:16.765-0800 Received a StopExecution exception: C++ unit test build\opt\mongo\db\s\sharding_catalog_manager_test.exe failed. [executor] 2018-10-31T05:41:38.381-0800 Summary: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)     The following tests failed (with exit code):         build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14) [resmoke] 2018-10-31T05:41:38.381-0800 ================================================================================ [resmoke] 2018-10-31T05:41:38.381-0800 Summary of unittests suite: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored) The following tests failed (with exit code):     build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14) 85 test(s) ran in 62.34 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)     cpp_unit_tests: 85 test(s) ran in 62.32 seconds (84 succeeded, 271 were skipped, 1 failed, 0 errored)         The following tests failed (with exit code):             build\opt\mongo\db\s\sharding_catalog_manager_test.exe (14) [resmoke] 2018-10-31T05:41:38.381-0800 Exiting with code: 1 [command took 63 seconds]

      **Environment: **
       VS 2017 + Windows Server 2016 + MongoDB/mongo master branch latest revision**

       

      MongoDB failed to run test due to execute sharding_catalog_manager_test.exe. Could you please help take a look at this? Thanks in advance!

       

      Note: Please apply all patches for mongodb in attachments, so building MongoDB with VS 2017 is supported and can build pass.

       

       

       

       

       

        1. log_x64_test_13.log
          2.02 MB
        2. mongodb_bug668740.patch
          0.6 kB
        3. mongodb_c2039,c3646.patch
          0.7 kB
        4. mongodb_c2039.patch
          0.6 kB
        5. mongodb_c3861.patch
          0.3 kB
        6. mongodb.patch
          2 kB

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            spacelg LinGao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: