-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix log spam during idx recommendation if txn was closed
Previously, if a transaction (from planner.txn) was already closed, due to one-phase commit optimization or an error, we were still trying to generate a recommendation, causing log spam. This commit now checks if we have a transaction open that can be used, otherwise it won't try to generate recommendation. This commit also updates the cache, even if the recommendation generations fails, this way we won't keep trying constantly, and instead will wait for the next hour to try again. Fixes #85875 Release note: None
- Loading branch information
Showing
3 changed files
with
70 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters