[SERVER-17168] Spurious warning "received interrupt request for unknown op" logged when running killOp Created: 04/Feb/15  Updated: 03/Jun/19  Resolved: 03/Jun/19

Status: Closed
Project: Core Server
Component/s: Admin, JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: J Rassi Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

When a non-Javascript operation is killed with killOp, the killOp proceeds successfully but a spurious warning "received interrupt request for unknown op" is logged at log level 1. This warning is logged by the Javascript interrupt handler, which is called even when the operation does not have any associated Javascript execution scope.

Reproduce by starting mongod with "mongod -v --setParameter enableTestCommands=1", and running the following shell snippet:

startParallelShell("db.adminCommand({sleep: 5});");
sleep(1000);
db.killOp(db.currentOp({"query.sleep": 5}).inprog[0].opid);

Example output:

Tue Feb  3 19:48:08.510 [conn3] going to kill op: op: 43.0
Tue Feb  3 19:48:08.510 [conn3] received interrupt request for unknown op: 43

Reproduces on 2.4.12/2.6.7/3.0.0-rc7.


Generated at Thu Feb 08 03:43:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.