Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mbs/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ def __init__(self, return_code=None, error_log_line=None, last_namespace=None):
class InvalidBSONObjSizeError(RetriableDumpError):
pass

###############################################################################
class UnauthorizedToDumpCollectionError(DumpError):
pass

###############################################################################
class CorruptionError(InvalidBSONObjSizeError):
pass
Expand Down Expand Up @@ -1002,6 +1006,8 @@ def raise_dump_error(returncode, error_log_line, last_namespace=None):
error_type = OplogOverflowError
elif "mongoctl error" in error_log_line and "Unable to find a compatible 'mongodump'" in error_log_line:
error_type = NoCompatibleMongodumpExeFoundError
elif "config.system.sessions: not authorized on config to execute command" in error_log_line:
error_type = UnauthorizedToDumpCollectionError
elif returncode == 245: # segmentation fault
error_type = MongodumpSegmentationFaultError
# Generic retriable errors
Expand Down