[SERVER-57064] Log create index and dropIndex(es) on mongos Created: 19/May/21  Updated: 29/Oct/23  Resolved: 30/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.14, 4.4.6, 4.0.25, 5.0.0-rc5
Fix Version/s: 4.4.7, 4.0.26, 4.2.16, 5.0.2, 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Adamo Tonete (Inactive) Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: neweng, sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2, v4.0
Sprint: Sharding EMEA 2021-06-28
Participants:
Case:

 Description   

Currently, if creating indexes in a sharded cluster the mongos is not recording the createIndex command and neither the dropIndex(es). The commands only get logged if it takes > 100ms.

On the other hand, those commands are always logged on the mongod log making it hard to trace back the origin of the commands in sharded environment.



 Comments   
Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-57064 Log create index and dropIndex(es) on mongos
Branch: v5.0
https://github.com/mongodb/mongo/commit/2c5a58f085c5376f97ae43be9c7a1011027f3347

Comment by Githook User [ 02/Jul/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-57064 Log create index and dropIndex(es) on mongos
Branch: v4.2
https://github.com/mongodb/mongo/commit/e449bf28ca66cc5754aa59df56e60a71d6811340

Comment by Githook User [ 02/Jul/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-57064 Log create index and dropIndex(es) on mongos
Branch: v4.4
https://github.com/mongodb/mongo/commit/3dc03d637b4ea5d88130dc8ee3271fdf310cf92c

Comment by Githook User [ 02/Jul/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-57064 Log create index and dropIndex(es) on mongos
Branch: v4.0
https://github.com/mongodb/mongo/commit/c44149642e9d98624c8d705b97fe23ce20427953

Comment by Githook User [ 30/Jun/21 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-57064 Log create index and dropIndex(es) on mongos
Branch: master
https://github.com/mongodb/mongo/commit/4788b66cf27b890cfaad1942ca104b6a24e59374

Comment by Antonio Fuschetto [ 29/Jun/21 ]

tommaso.tocci, I confirm that both the createIndexes and dropIndexes commands are not logged at router level in all supported branches.

Comment by Tommaso Tocci [ 27/May/21 ]

We need to double check if this affect also versions after 4.4

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