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

Crash during concurrent ordered bulk insert into timeseries collection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-03-08

      I wrote an FSM workload to do bulk inserts on a time-series collection and hit a segfault:

      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:50.770+0000 | 2021-03-03T17:11:50.764+00:00 F  CONTROL  4757800 [conn2601] "Writing fatal message","attr":{"message":"Invalid access at address: 0"}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.932+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21924284C2","b":"7F2192239000","o":"1EF4C2","s":"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE.constprop.630","s+":"212"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.932+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2192429ED9","b":"7F2192239000","o":"1F0ED9","s":"_ZN5mongo15printStackTraceEv","s+":"29"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.932+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21924255F3","b":"7F2192239000","o":"1EC5F3","s":"abruptQuitWithAddrSignal","s+":"F3"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.932+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2186ABD6B6","b":"7F218603C000","o":"A816B6","s":"_ZL16WasmFaultHandleriP9siginfo_tPv","s+":"B6"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F219084AD80","b":"7F2190838000","o":"12D80","s":"funlockfile","s+":"50"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21923C36A3","b":"7F2192239000","o":"18A6A3","s":"_ZN5mongo15BSONObjIteratorC2ERKNS_7BSONObjE","s+":"3"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21923BF8E6","b":"7F2192239000","o":"1868E6","s":"_ZNK5mongo7BSONObj8getFieldENS_10StringDataE","s+":"36"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2189A9268A","b":"7F2189A77000","o":"1B68A","s":"_ZN5mongo13BucketCatalog6insertEPNS_16OperationContextERKNS_15NamespaceStringERKNS_7BSONObjE","s+":"99A"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2187422C1C","b":"7F2187316000","o":"10CC1C","s":"_ZZNK5mongo12_GLOBAL__N_19CmdInsert10Invocation33_performUnorderedTimeseriesWritesEPNS_16OperationContextEmmPSt6vectorINS_7BSONObjESaIS6_EEPN5boost8optionalINS_4repl6OpTimeEEEPNSB_INS_3OIDEEERKNSB_IS5_ImSaImEEEEENKUlmE_clEm","s+":"9C"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F218742382C","b":"7F2187316000","o":"10D82C","s":"_ZNK5mongo12_GLOBAL__N_19CmdInsert10Invocation33_performUnorderedTimeseriesWritesEPNS_16OperationContextEmmPSt6vectorINS_7BSONObjESaIS6_EEPN5boost8optionalINS_4repl6OpTimeEEEPNSB_INS_3OIDEEERKNSB_IS5_ImSaImEEEE","s+":"16C"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2187426608","b":"7F2187316000","o":"110608","s":"_ZNK5mongo12_GLOBAL__N_19CmdInsert10Invocation30_performTimeseriesWritesSubsetEPNS_16OperationContextEmmPSt6vectorINS_7BSONObjESaIS6_EEPN5boost8optionalINS_4repl6OpTimeEEEPNSB_INS_3OIDEEE","s+":"188"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F2187426E10","b":"7F2187316000","o":"110E10","s":"_ZN5mongo12_GLOBAL__N_19CmdInsert10Invocation8typedRunEPNS_16OperationContextE","s+":"5D0"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21874275AB","b":"7F2187316000","o":"1115AB","s":"_ZN5mongo12TypedCommandINS_12_GLOBAL__N_19CmdInsertEE14InvocationBase3runEPNS_16OperationContextEPNS_3rpc21ReplyBuilderInterfaceE","s+":"3B"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F218B9D5D7F","b":"7F218B999000","o":"3CD7F","s":"_ZN5mongo14CommandHelpers20runCommandInvocationEPNS_16OperationContextERKNS_12OpMsgRequestEPNS_17CommandInvocationEPNS_3rpc21ReplyBuilderInterfaceE","s+":"7F"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F218B9DB1EE","b":"7F218B999000","o":"421EE","s":"_ZN5mongo14CommandHelpers20runCommandInvocationESt10shared_ptrINS_23RequestExecutionContextEES1_INS_17CommandInvocationEENS_9transport15ServiceExecutor14ThreadingModelE","s+":"1BE"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21899CA515","b":"7F218999C000","o":"2E515","s":"_ZN5mongo12_GLOBAL__N_120runCommandInvocationESt10shared_ptrINS_23RequestExecutionContextEES1_INS_17CommandInvocationEE","s+":"A5"}}
      [ReplicaSetFixture:job0:primary] 2021-03-03T17:11:51.933+0000 | 2021-03-03T17:11:51.932+00:00 I  CONTROL  31445   [conn2601] "Frame","attr":{"frame":{"a":"7F21899D97B1","b":"7F218999C000","o":"3D7B1","s":"_ZN5mongo12_GLOBAL__N_114RunCommandImpl11_runCommandEv","s+":"161"}}
      

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: