[SERVER-70416] add legacy shell --quiet test Created: 10/Oct/22  Updated: 29/Oct/23  Resolved: 15/Nov/22

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-68548 mongo shell version 4.4.15 logging as... Closed
Related
is related to SERVER-59883 Have mongo shell message about using ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-11-14, Security 2022-11-28
Participants:

 Description   

Internally within MongoDB we have several scripts that make use of the legacy shell and parse its output. The scripts use the --quiet command line parameter to stop the shell from intermixing log output with the output from javascript execution.
The behavior of --quiet is fairly brittle and is easy to unintentionally break. To help mitigate this, it would be useful to add a simple Javascript test that runs the shell with --quiet and ensures that the output contains no extra log lines.



 Comments   
Comment by Githook User [ 15/Nov/22 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-70416 add legacy shell --quiet test
Branch: master
https://github.com/mongodb/mongo/commit/493b63c41b1f5c143d24470e21ae6c0714f3f650

Comment by Eric Milkie [ 17/Oct/22 ]

We cannot migrate to mongosh due to the problems with Okta MFA, its LDAP support, and its interaction with the node driver's connection pools. My hope is that this problem will presumably go away once we support OIDC and then we can consider migrating to mongosh.

Comment by Elizabeth Roytburd [ 17/Oct/22 ]

The legacy shell is not supported, migrate to mongosh.

Generated at Thu Feb 08 06:16:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.