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

ephemeralForTest can hit invariant in IndexBuildsCoordinator::_runIndexBuildInner due to WCE

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • ALL
    • Execution Team 2020-08-24

      jstests/parallel/basic.js is disabled for ephemeralForTest because this invariant is often hit:

      "Index build: collection scan done","attr":

      {"buildUUID":null,"totalRecords":1000,"durationMillis":0}

      "Index build failed","attr":{"buildUUID":{"uuid":{"$uuid":"102f5a83-f51c-4347-a34e-5ea8d3b63915"}},"namespace":"test.jstests_js3","uuid":{"uuid":{"$uuid":"2c06617a-3b3e-430e-a6e2-59dd20f4b16d"}},"error":{"code":112,"codeName":"WriteConflict","errmsg":"WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction."}}
      "Invariant failure","attr":

      {"expr":"status.isA<ErrorCategory::Interruption>() || status.isA<ErrorCategory::ShutdownError>()","msg":"Unexpected error code during index build cleanup: WriteConflict: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.","file":"src/mongo/db/index_builds_coordinator.cpp","line":2145}

      "\n\n***aborting after invariant() failure\n\n"
      "Writing fatal message","attr":

      {"message":"Got signal: 6 (Aborted).\n"}

      "Frame","attr":{"frame":{"a":"7F186DFBDD1A","b":"7F186AD46000","o":"3277D1A","s":"ZN5mongo18stack_trace_detail12_GLOBAL_N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE.constprop.627","s+":"1EA"}}
      "Frame","attr":{"frame":{"a":"7F186DFBF129","b":"7F186AD46000","o":"3279129","s":"_ZN5mongo15printStackTraceEv","s+":"29"}}
      "Frame","attr":{"frame":{"a":"7F186DFBBC76","b":"7F186AD46000","o":"3275C76","s":"ZN5mongo12_GLOBAL_N_116abruptQuitActionEiP7siginfoPv","s+":"66"}}
      "Frame","attr":{"frame":{"a":"7F186938E7E0","b":"7F186937F000","o":"F7E0","s":"_L_unlock_16","s+":"2D"}}
      "Frame","attr":{"frame":{"a":"7F186901D4F5","b":"7F1868FEB000","o":"324F5","s":"gsignal","s+":"35"}}
      "Frame","attr":{"frame":{"a":"7F186901ECD5","b":"7F1868FEB000","o":"33CD5","s":"abort","s+":"175"}}
      "Frame","attr":{"frame":{"a":"7F186BD395D2","b":"7F186AD46000","o":"FF35D2","s":"ZN5mongo22invariantFailedWithMsgEPKcRKNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_j","s+":"153"}}
      "Frame","attr":{"frame":{"a":"7F186BB46100","b":"7F186AD46000","o":"E00100","s":"_ZN5mongo22IndexBuildsCoordinator19_runIndexBuildInnerEPNS_16OperationContextESt10shared_ptrINS_19ReplIndexBuildStateEERKNS0_17IndexBuildOptionsE.cold.2235","s+":"13A"}}
      ng","attr":{"buildUUID":{"uuid":{"$uuid":"557ff22e-5490-43ec-8d8f-5e7816471aa0"}},"namespace":"test.index_many2","collectionUUID":{"uuid":{"$uuid":"d49e9883-8831-484e-8ff0-23757616220a"}},"indexes":1,"firstIndex":{"name":"x55_1"}}
      "Frame","attr":{"frame":{"a":"7F186CAE5C83","b":"7F186AD46000","o":"1D9FC83","s":"_ZN5mongo22IndexBuildsCoordinator14_runIndexBuildEPNS_16OperationContextERKNS_4UUIDERKNS0_17IndexBuildOptionsE","s+":"2D3"}}
      "Frame","attr":{"frame":{"a":"7F186C86090B","b":"7F186AD46000","o":"1B1A90B","s":"ZZN5mongo28IndexBuildsCoordinatorMongod15startIndexBuildEPNS_16OperationContextENSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_4UUIDERKSt6vectorINS_7BSONObjESaISB_EERKS9_NS_18IndexBuildProtocolENS_22IndexBuildsCoordinator17IndexBuildOptionsEENUlT_E3_clINS_6StatusEEEDaSL","s+":"33B"}}
      "Frame","attr":{"frame":{"a":"7F186C860B43","b":"7F186AD46000","o":"1B1AB43","s":"ZZN5mongo15unique_functionIFvNS_6StatusEEE8makeImplIZNS_28IndexBuildsCoordinatorMongod15startIndexBuildEPNS_16OperationContextENSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_4UUIDERKSt6vectorINS_7BSONObjESaISG_EERKSE_NS_18IndexBuildProtocolENS_22IndexBuildsCoordinator17IndexBuildOptionsEEUlT_E3_EEDaOSQ_EN12SpecificImpl4callEOS1","s+":"33"}}
      "Frame","attr":{"frame":{"a":"7F186DDEC6C2","b":"7F186AD46000","o":"30A66C2","s":"_ZN5mongo10ThreadPool10_doOneTaskEPSt11unique_lockINS_12latch_detail5LatchEE","s+":"132"}}
      "Frame","attr":{"frame":{"a":"7F186DDEE256","b":"7F186AD46000","o":"30A8256","s":"_ZN5mongo10ThreadPool13_consumeTasksEv","s+":"86"}}
      "Frame","attr":{"frame":{"a":"7F186DDEED91","b":"7F186AD46000","o":"30A8D91","s":"ZN5mongo10ThreadPool17_workerThreadBodyEPS0_RKNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEE","s+":"E1"}}
      "Frame","attr":{"frame":{"a":"7F186DDEF180","b":"7F186AD46000","o":"30A9180","s":"_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN5mongo4stdx6threadC4IZNS3_10ThreadPool25_startWorkerThread_inlockEvEUlvE2_JELi0EEET_DpOT0_EUlvE_EEEEE6_M_runEv","s+":"60"}}
      "Frame","attr":{"frame":{"a":"7F186E16BE1F","b":"7F186AD46000","o":"3425E1F","s":"execute_native_thread_routine","s+":"F"}}
      "Frame","attr":{"frame":{"a":"7F1869386AA1","b":"7F186937F000","o":"7AA1","s":"start_thread","s+":"D1"}}
      "Frame","attr":{"frame":{"a":"7F18690D3C4D","b":"7F1868FEB000","o":"E8C4D","s":"clone","s+":"6D"}}

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: