[SERVER-23986] Issue a single warning on 'the eval command is deprecated' instead of the same warning for each connection Created: 29/Apr/16  Updated: 16/Jun/16  Resolved: 16/Jun/16

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

Type: Improvement Priority: Minor - P4
Reporter: Marco Bonezzi Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

The eval command is deprecated and a warning message is shown per connection. As the mongo shell shows the warnings from the startup log, when opening a mongo shell it will show the same repeated warning message for each connection, taking all the window space:

2016-04-05T13:21:32.105+0000 W COMMAND  [conn712600] the eval command is deprecated
2016-04-07T03:21:30.126+0000 W COMMAND  [conn1010265] the eval command is deprecated

It might be useful to have just a single warning when using eval instead of one per connection just repeating the message.



 Comments   
Comment by Ramon Fernandez Marina [ 16/Jun/16 ]

It is unclear at this time how to address this ticket and still allow multiple clients to be tracked, so without any further information or suggestions I'm going to close this ticket for now. If a good proposal is made we can always reopen the ticket and discuss such proposal.

Regards,
Ramón.

Comment by Ramon Fernandez Marina [ 29/Apr/16 ]

A warning per connection seems useful, as it informs there are multiple clients using a deprecated feature. If these warnings are consolidated somehow it may make it harder to track down all clients using eval, so I think further discussion is needed.

If the impact is only use of screen space then perhaps the --quiet option for the mongo shell can be considered.

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