-
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.
92481: backupccl: don't disable leases in test r=adityamaru a=stevendanna 399e56b introduced a bounded staleness read into the migration machinery. When `lease.TestingDisableTableLeases()` has been set, this bounded staleness read encounters an error: testcluster.go:384: migration-job-find-already-completed: cannot set fixed timestamp, txn "sql txn" meta={id=f4142488 key=/Min pri=0.01688073 epo=0 ts=1669334862.467371575,0 min=1669334862.467371575,0 seq=0} lock=false stat=PENDING rts=1669334862.467371575,0 wto=false gul=1669334862.967371575,0 already performed reads I believe that the read that was already performed in this case was the descriptor lookup. Then, when we go to execute the select, we attempt to SetFixedTimestamp in txn.NegotiateAndSend. When the testing isn't in use, on its face it looks like we don't hit this case because we don't allow a fallback to a store lookup: https://github.com/cockroachdb/cockroach/blob/b5be006bedd7d3cedc3fb3d2248df168e3d64be2/pkg/sql/catalog/descs/leased_descriptors.go#L143-L159 But, when TestingDisableTableLeases is set, we skip right to the store lookup: https://github.com/cockroachdb/cockroach/blob/b5be006bedd7d3cedc3fb3d2248df168e3d64be2/pkg/sql/catalog/descs/descriptor.go#L489-L491 I haven't looked into why lease.TestingDisableTableLeases() was in place in the past, but it is no longer used in any other backup tests and isn't likely needed here. Fixes #92432 Fixes #92433 Fixes #92434 Fixes #92435 Release note: None 92571: ui: add seconds, milliseconds to insights timestamps in console r=ericharmeling a=ericharmeling This commit adds seconds and milliseconds to the timestamp values on the Insights pages in the DB Console. Fixes #91936. Loom: https://www.loom.com/share/1aa7e5ca81984b1190f67a1748506aae Release note (ui change): The Insights pages in the DB Console now show the seconds and milliseconds for all timestamp values. Co-authored-by: Steven Danna <[email protected]> Co-authored-by: Eric Harmeling <[email protected]>
- Loading branch information
Showing
10 changed files
with
42 additions
and
29 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
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
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