]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: crash on enospc
authorSage Weil <sage@redhat.com>
Tue, 3 Oct 2017 15:41:33 +0000 (10:41 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 14:14:16 +0000 (09:14 -0500)
We were passing this error back to rocksdb, which would then crash (much)
later with a corrupted SST file!  No good.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 569e924812bd7cc61e6e755f265890dbd5c95c31)

src/os/bluestore/BlueFS.cc

index a34dfc4c68136d4e6e9fa1e55c6801699835efc7..0f570893ba0a8df0ddb5e598630eea833db4b5d5 100644 (file)
@@ -1515,6 +1515,7 @@ int BlueFS::_flush_range(FileWriter *h, uint64_t offset, uint64_t length)
       derr << __func__ << " allocated: 0x" << std::hex << allocated
            << " offset: 0x" << offset << " length: 0x" << length << std::dec
            << dendl;
+      assert(0 == "bluefs enospc");
       return r;
     }
     h->file->fnode.recalc_allocated();