-
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.
85907: sql: fix log spam during idx recommendation if txn was closed r=maryliag a=maryliag 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 85921: sql: use the correct txn when creating external connection r=benbardin a=adityamaru We need to use the planners' txn when creating an external connection. Using a DB().Txn here was an oversight. Release note: None Co-authored-by: Marylia Gutierrez <[email protected]> Co-authored-by: Aditya Maru <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
56 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
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