Skip to contentSkip to conversation

cephe-tier forward mode hang in luminous

DISCUSSION TYLin 1 participant 1 message Jan 30, 2018

lore
Share & tools
lore

TYLin

author
#0 lore raw

Hi all,

We found that cache-tier forward mode is hanging in luminous 12.2.1. It seems that the client is keep sending request to cache-tier's osd and the osd always replied redirect to client. This seems due to this patch:

https://github.com/ceph/ceph/commit/9adb68f5e206c167b97ec89935cbdaeb462173d8#diff-847b3447bebb2f031678eef0a2aea60d

I added “CEPH_OSD_FLAG_IGNORE_OVERLAY” to the op to force it skips cache-tier when client got redirect reply and it seems to work. Is there any potential issue of adding this flag here?

in src/osdc/Objecter.cc
void Objecter::handle_osd_op_reply(MOSDOpReply *m) {
…
…

  if (m->is_redirect_reply()) {
    …
    op->target.flags |= (CEPH_OSD_FLAG_REDIRECTED | CEPH_OSD_FLAG_IGNORE_OVERLAY);
    ...

}
}

Thanks,
TY Lin