[SERVER-11882] Make QLog settable at runtime Created: 27/Nov/13  Updated: 11/Jul/16  Resolved: 02/Dec/13

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Improvement Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: David Storch
Resolution: Done Votes: 0
Labels: 26qa, nqf, query_triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Problem:
QLOG() provides some more detailed information of the new query optimizer. This info may be for debug/development only, but there may be important details that Support could use in customer cases.

It appears that this setting can only be set at Startup and not Runtime

qlog.cpp: 35 MONGO_EXPORT_SERVER_PARAMETER(verboseQueryLogging, bool, false);

The last boolean controls CHANGE_AT_RUNTIME

Solution:
Change QLOG so that CHANGE_AT_RUNTIME=True

Workaround:
Shutdown/Startup the mongod to set the parameter - but you loose context of the current kernel state, cached blocks etc.


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