[DOCS-15840] Manual: currentOp example for running index builds misses a case Created: 24/Jan/23  Updated: 22/Jan/24

Status: Backlog
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Jonathan Brill Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: backlog, query, request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 2 weeks, 1 day ago

 Description   

The doc for currentOp gives an example for getting the running index builds. If the command for building the indexes is too long, though, it will get $truncated and the query in the example will filter out the index building operation.

So for instance, the command for my index build was

      command: {
        '$truncated': '{ createIndexes: "tasks", indexes: [ { v: 2, key: { depends_on._id: 1 }, name: "depends_on._id_1", ns: "mci.tasks", weights: {} }, { v: 1, key: { status: 1.0, build_variant: 1.0, order: 1.0 }, name: "status_1_build_variant_1_order_1", ns: "mci.tasks" }, { v: 1, key: { branch: 1.0, build_variant: 1.0, status: 1.0, finish_time: 1.0 }, name: "branch_1_build_variant_1_status_1_finish_time_1", ns: "mci.tasks" }, { v: 1, key: { branch: 1, r: 1, status: 1 }, name: "branch_1_r_1_status_1", ns: "mci.tasks" }, { v: 2, key: { build_id: 1.0, _id: 1.0 }, name: "build_id_1__id_1", ns: "mci.tasks" }, { v: 1, key: { execution_tasks: 1 }, name: "execution_tasks_1", ns: "mci.tasks" }, { v: 1, key: { branch: 1, r: 1, build_variant: 1 }, name: "branch_1_r_1_build_variant_1", ns: "mci.tasks" }, { v: 2, key: { distro: 1.0, status: 1.0, activated: 1.0, priority: 1.0 }, name: "distro_1_status_1_activated_1_priority_1", ns: "mci.tasks" }, { v: 1, key: { _id: 1 }, name: "_id_", ns: "mci.tasks" }, { v: 2, key...'
      },

which didn't match either of the clauses of the $or in the $currentOp example.


Generated at Thu Feb 08 08:14:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.