summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index 312be2202c5..ecfafbcf168 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -2122,6 +2122,12 @@ void IndexBuildsCoordinator::_runIndexBuildInner(OperationContext* opCtx,
// Index builds only check index constraints when committing. If an error occurs at that point,
// then the build is cleaned up while still holding the appropriate locks. The only errors that
// we cannot anticipate are user interrupts and shutdown errors.
+ if (status == ErrorCodes::OutOfDiskSpace) {
+ LOGV2_ERROR(5642401,
+ "Index build unable to proceed due to insufficient disk space",
+ "error"_attr = status);
+ fassertFailedNoTrace(5642402);
+ }
invariant(status.isA<ErrorCategory::Interruption>() ||
status.isA<ErrorCategory::ShutdownError>(),
str::stream() << "Unnexpected error code during index build cleanup: " << status);