[SERVER-46621] Empty "ns" field in currentOp for index builds Created: 04/Mar/20  Updated: 29/Oct/23  Resolved: 30/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.3.4
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-39218 Simultaneous index builds improvement... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-06
Participants:

 Description   

> db.currentOp();
...
               {
                        "type" : "op",
                        "host" : "hot-potato:20020",
                        "desc" : "IndexBuildsCoordinatorMongod-0",
                        "active" : true,
                        "currentOpTime" : "2020-03-04T15:06:51.107-0500",
                        "opid" : 51,
                        "secs_running" : NumberLong(21),
                        "microsecs_running" : NumberLong(21991057),
                        "op" : "command",
                        "ns" : "",
                        "command" : {
                                "createIndexes" : "test",
                                "indexes" : [
                                        {
                                                "v" : 2,
                                                "key" : {
                                                        "a" : 1
                                                },
                                                "name" : "a_1",
                                                "background" : true
                                        }
                                ],
                                "lsid" : {
                                        "id" : UUID("7ee7f65b-d9fa-4009-84b0-5561b7f25744")
                                },
                                "$db" : "test"
                        },
...



 Comments   
Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46621 set ns field in currentOp for index builds

(cherry picked from commit 86daed7acfc1a2adf97bf7d7b2ae009d7b52df24)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e803d1e30247106dac6c846e81b4fb9a76fbdbcf

Comment by Githook User [ 31/Mar/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-46621 add test for ns field for index build db.currentOp() entry
Branch: v4.4
https://github.com/mongodb/mongo/commit/794f99e5e177c7bce8b2b1de8ec89eead5abd8e5

Comment by Githook User [ 27/Mar/20 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-46621 set ns field in currentOp for index builds
Branch: master
https://github.com/mongodb/mongo/commit/86daed7acfc1a2adf97bf7d7b2ae009d7b52df24

Comment by Githook User [ 27/Mar/20 ]

Author:

{'email': 'benety@mongodb.com', 'name': 'Benety Goh', 'username': 'benety'}

Message: SERVER-46621 add test for ns field for index build db.currentOp() entry
Branch: master
https://github.com/mongodb/mongo/commit/f73a9645f68107d856bc882ad9e3fcdb0ee2f2ed

Generated at Thu Feb 08 05:11:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.