Repository navigation
LogMonitor: set no_reply for forward MLog commands - #61933
SrinivasaBharath merged 1 commit into
Conversation
On streach mod clusters we can see slow ops when removing and adding osds with --zap --force when osds connected to peon monitor and forwarding the MLog to leader. the no_reply is set only when we are connected to the leader, this fix will add also the other option - so no_reply set anyway. Fixes: https://tracker.ceph.com/issues/54489 Signed-off-by: Nitzan Mordechai <[email protected]>
rzarzynski
left a comment
There was a problem hiding this comment.
LGTM with just a nit on indentation.
| done: | ||
| mon.no_reply(op); | ||
| return true; | ||
| done: |
There was a problem hiding this comment.
nit: let's keep the indentation as it was previously.
| return true; | ||
| done: | ||
| mon.no_reply(op); | ||
| return (!num_new); |
There was a problem hiding this comment.
ACK, for the nothing new case (num_new == 0), the function returns true.
| goto done; | ||
| } | ||
|
|
||
| return false; |
There was a problem hiding this comment.
(Just writing down my understanding)
For this case the preprocess_log() can be executed twice: once by a peon, once by leader. This is directed by the PaxosService:
// preprocess
if (preprocess_query(op))
return true; // easy!
// leader?
if (!mon.is_leader()) {
mon.forward_request_leader(op);
return true;
} Monitor::no_reply() doesn't do much on peons, but on leader it generates the MRoute which absence is the crux of the bug.
void Monitor::no_reply(MonOpRequestRef op)
{
MonSession *session = op->get_session();
Message *req = op->get_req();
if (session->proxy_con) {
dout(10) << "no_reply to " << req->get_source_inst()
<< " via " << session->proxy_con->get_peer_addr()
<< " for request " << *req << dendl;
session->proxy_con->send_message(new MRoute(session->proxy_tid, NULL));
op->mark_event("no_reply: send routed request");
} else {
dout(10) << "no_reply to " << req->get_source_inst()
<< " " << *req << dendl;
op->mark_event("no_reply");
}
} OK!
|
jenkins test api |
|
This change causes daemons connected to a peon to never receive an MLogAck |
On streach mod clusters we can see slow ops when
removing and adding osds with --zap --force when osds connected to peon monitor and forwarding the MLog to leader. the no_reply is set only when we are connected to the leader, this fix will add also the other option - so no_reply set anyway.
Fixes: https://tracker.ceph.com/issues/54489
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e