What happen to write operation if we are out of disk space in mongodb?

when we are out of disk space does mongodb rewrite the oldest document and replace it by a new one or we get an error like : there is no space left on the disk … ?

If this is an insertion, then exception. If more space is needed but an update but disk really full, exception.

1 Like