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

Cancelled index builds due to secondary signal have generic error message

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-04-03, Execution Team 2023-04-17, Execution Team 2023-05-01, Execution Team 2023-05-15

    Description

      The user command is waiting on the thread, and a secondary aborting an index build causes the abort reason to be set as operation interrupted on the primary, because the opCtx running the build is killed. The 'voteAbortIndexBuild' command includes the error msg, which is also replicated in the 'abortIndexBuild' oplog entry. The user command should also receive a more informative error message.

      {
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"ok" : 0,
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"errmsg" : "Index build failed: 721d0b99-d62f-4c30-be23-b6422d5459a8: Collection test.test ( 1d40c7b5-2863-4a59-b4db-9204005bbec2 ) :: caused by :: operation was interrupted",
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"code" : 276,
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"codeName" : "IndexBuildAborted",
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"$clusterTime" : {
      [js_test:index_secondary_signal_primary_abort] sh17320| 		"clusterTime" : Timestamp(1676990007, 1),
      [js_test:index_secondary_signal_primary_abort] sh17320| 		"signature" : {
      [js_test:index_secondary_signal_primary_abort] sh17320| 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:index_secondary_signal_primary_abort] sh17320| 			"keyId" : NumberLong(0)
      [js_test:index_secondary_signal_primary_abort] sh17320| 		}
      [js_test:index_secondary_signal_primary_abort] sh17320| 	},
      [js_test:index_secondary_signal_primary_abort] sh17320| 	"operationTime" : Timestamp(1676990006, 4)
      [js_test:index_secondary_signal_primary_abort] sh17320| }
      

      Attachments

        Activity

          People

            josef.ahmad@mongodb.com Josef Ahmad
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: