Re: MDS crash - FAILED assert(omap_num_objs <= MAX_OBJECTS)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, Oct 21, 2019 at 7:58 PM Stefan Kooman <stefan@xxxxxx> wrote:
>
> Quoting Yan, Zheng (ukernel@xxxxxxxxx):
>
> > I double checked the code, but didn't find any clue. Can you compile
> > mds with a debug patch?
>
> Sure, I'll try to do my best to get a properly packaged Ceph Mimic
> 13.2.6 with the debug patch in it (and / or get help to get it build).
> Do you already have the patch (on github) somewhere?
>

please apply following patch, thanks.

diff --git a/src/mds/OpenFileTable.cc b/src/mds/OpenFileTable.cc
index c0f72d581d..2ca737470d 100644
--- a/src/mds/OpenFileTable.cc
+++ b/src/mds/OpenFileTable.cc
@@ -470,7 +470,11 @@ void OpenFileTable::commit(MDSInternalContextBase *c, uint64_t log_seq, int op_p
  }
  if (omap_idx < 0) {
    ++omap_num_objs;
-   assert(omap_num_objs <= MAX_OBJECTS);
+   if (omap_num_objs > MAX_OBJECTS) {
+     dout(1) << "omap_num_objs " << omap_num_objs << dendl;
+     dout(1) << "anchor_map size " << anchor_map.size() << dendl;
+     assert(omap_num_objs <= MAX_OBJECTS);
+   }
    omap_num_items.resize(omap_num_objs);
    omap_updates.resize(omap_num_objs);
    omap_updates.back().clear = true;


> Thanks,
>
> Stefan
>
> --
> | BIT BV  https://www.bit.nl/        Kamer van Koophandel 09090351
> | GPG: 0xD14839C6                   +31 318 648 688 / info@xxxxxx
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux