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

improve index build invariant message for system error ENOSPC "28: No space left on device"

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v5.0, v4.4
    • Sprint:
      Execution Team 2021-05-31

      Description

      Currently we print this error in the log:

      {"t":{"$date":"2021-04-23T20:15:36.232+00:00"},"s":"E",  "c":"-",        "id":23077,   "ctx":"IndexBuildsCoordinatorMongod-1214","msg":"Assertion","attr":{"error":"Location16821: error writing to file \"/srv/mongodb/redacted_host_name/_tmp/extsort-index.1227\": errno:28 No space left on device","file":"src/mongo/db/sorter/sorter.cpp","line":1039}}
      {"t":{"$date":"2021-04-23T20:15:36.239+00:00"},"s":"I",  "c":"STORAGE",  "id":20649,   "ctx":"IndexBuildsCoordinatorMongod-1214","msg":"Index build failed","attr":{"buildUUID":{"uuid":{"$uuid":"c75a6c95-84ea-4b92-9932-1431e4c4795c"}},"namespace":"redacted_namespace","uuid":{"uuid":{"$uuid":"c37b027a-3026-41ce-ade7-0113bf5dc57d"}},"error":{"code":16821,"codeName":"Location16821","errmsg":"error writing to file \"/srv/mongodb/redacted_host_name/_tmp/extsort-index.1227\": errno:28 No space left on device"}}}
      {"t":{"$date":"2021-04-23T20:15:36.239+00:00"},"s":"F",  "c":"-",        "id":23081,   "ctx":"IndexBuildsCoordinatorMongod-1214","msg":"Invariant failure","attr":{"expr":"status.isA<ErrorCategory::Interruption>() || status.isA<ErrorCategory::ShutdownError>()","msg":"Unnexpected error code during index build cleanup: Locat
      

      But if we know that the cause was "No space left on device", can we replace the "Unnexpected error code during index build cleanup: Locat" with "No space left on device"?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              dmitry.agranat Dmitry Agranat
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: