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

Better error message for FileAllocator failure

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Diagnostics, Storage
    • Storage Execution

    Description

      In database_holder.cpp we have the following code:

              if (txn->lockState()->isWriteLocked() && FileAllocator::get()->hasFailed()) {
                  uassert(17507, "Can't take a write lock while out of disk space", false);
              }
      

      If FileAllocator may fail for other reasons (e.g.: the dbpath is on a network drive and there was a network problem) then this message is misleading.

      Something like "Can't take a write lock: FileAllocator failed" would be a better message; if we could provide more info about the failure somehow, that would be even better.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: