[SERVER-46855] invalid ns string appears in slow query logs Created: 13/Mar/20  Updated: 15/Apr/20  Resolved: 15/Apr/20

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

Type: Bug Priority: Trivial - P5
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Sprint: Service arch 2020-04-20
Participants:
Linked BF Score: 23

 Description   

For example, this log entry while running addshard4.js show ns with "admin.addshard4/foobar":

2020-03-13T12:19:42.505+0100 s20525| {"t":{"$date":"2020-03-13T12:19:42.505+0100"},"s":"I", "c":"-",       "id":51803,"ctx":"conn10","msg":"slow query","attr":{"type":"command","ns":"admin.addshard4/foobar","appName":"MongoDB Shell","command":{"addshard":"addshard4/foobar","lsid":{"id":{"$uuid":"7bb5e443-cf05-4658-a365-da1e29be15dd"}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1584098355,"i":7}},"signature":{"hash":{"$binary":{"base64":"AAAAAAAAAAAAAAAAAAAAAAAAAAA=","subType":"0"}},"keyId":0}},"$db":"admin"},"numYields":0,"reslen":312,"protocol":"op_msg","durationMillis":20002}}



 Comments   
Comment by Randolph Tan [ 15/Apr/20 ]

Looks like it's an invalid input for addShard command and the generic command parser extracts the collection name from the first field of addShardCommand

Comment by Randolph Tan [ 13/Mar/20 ]

Note that slow log appears to get this from curOp. Should check if we are setting it correctly.

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