[SERVER-84020] Add query settings fallback reason field to explain output Created: 08/Dec/23  Updated: 08/Dec/23

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

Type: Task Priority: Major - P3
Reporter: Catalin Sumanaru Assignee: Catalin Sumanaru
Resolution: Unresolved Votes: 0
Labels: M3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-79233 Ensure query settings $natural hints ... Closed
Participants:

 Description   

Introduce a query settings fallback reason field in the explain response, denoting why the fallback mechanism was engaged. This should only be visible if:

  • Query Settings are present on the given query.
  • The application of said settings caused an non-ok status, and the fallback mechanism was engaged.

This reason can be bubbled up from get_executor.cpp prepare() call. Also, considering that explain commands bypass the plan cache, it's safe to assume that each explain call will go through planning.

 


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