Skip to content

Commit efb5f85

Browse files
author
Alena Prokharchyk
committed
CS-16594: when request is cancelled by the remote peer, in addition to cancelling the request, unblock the agent queue if the request is the current request
1 parent a507796 commit efb5f85

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,12 @@ protected void doTask(final Task task) throws Exception {
581581
logD(data, "Cancel request received");
582582
}
583583
agent.cancel(cancel.getSequence());
584+
final Long current = agent._currentSequence;
585+
//if the request is the current request, always have to trigger sending next request in sequence,
586+
//otherwise the agent queue will be blocked
587+
if (req.executeInSequence() && (current != null && current == Request.getSequence(data))) {
588+
agent.sendNext(Request.getSequence(data));
589+
}
584590
return;
585591
}
586592

0 commit comments

Comments
 (0)