Commit Graph

26911 Commits

Author SHA1 Message Date
Aaron Son 8df274314b go: sqle/statspro: Rework the way stats manages its session in order to make it safe to continue collecting stats during a GC run.
Previously GC, even with the session-aware safepoint controller, such as is used with Auto GC, would cancel any ongoing stats work and would restart it at the end of the run. Because Auto GC can run quite frequently and because stats can take a while to run to completion, this meant that on some workloads stats would never successfully populate.

This PR changes stats so that it more correctly integrates with the session-safe GC safepoint controller. That allows GC to ensure that the stuff stats is currently working on gets carried over to the collected view of database, and stats itself has a chance to run to completion regardless of what GC work is going on.

This PR leaves the cancel-stats-on-collect behavior enabled for the kill-connections safepoint controller, where that behavior is still the correct one.
2025-06-27 14:29:53 -07:00
Tim Sehn 7c3542a8ca Merge pull request #9361 from dolthub/tim/history-tables-dolt-schemas
Implemented `dolt_history_dolt_schemas` and `dolt_diff_dolt_schemas`
2025-06-25 10:52:35 -07:00
timsehn 2510316f95 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 17:15:07 +00:00
Elian e43ad09636 Merge pull request #9393 from dolthub/elianddb/fix-483-unable-to-checkout-table-branch
Fixes #483
Removed extra bats test
2025-06-25 10:14:50 -07:00
Tim Sehn 6cae5ef853 Merge branch 'tim/history-tables-dolt-schemas' of github.com:dolthub/dolt into tim/history-tables-dolt-schemas 2025-06-25 10:06:52 -07:00
Tim Sehn 186dc75c23 Addressed constants feedback. Made a number of new constants and used them 2025-06-25 10:06:42 -07:00
Elian 05843c704c rm already covered bats 2025-06-25 09:47:17 -07:00
Elian af8a3f728a Merge pull request #9371 from dolthub/elianddb/fix-483-unable-to-checkout-table-branch
Fixes: #483
Local/remote refs take priority in Do What I Mean (DWIM) scenarios where dolt has to interpret ambiguous input in checkout.
If a table and tracking branch share the same name, but local does not exist an error will occur.
-- can now be used to clear up ambiguity.
case 1: dolt checkout <ref> -- [<tables>]
<ref> must be a singular valid tree, everything else after '--' must be a table.
case 2: dolt checkout -- [<tables>]
This is case 1 but without <ref>.
case 3: git checkout <something> [--]
(a) If is a commit switch to branch.
(b) If isn’t a commit, and either "--" is present or isn’t a table, no -t or -b is given, and there’s a tracking branch named on exactly one remote (or on the specified remote), then this acts as shorthand to fork local from that remote-tracking branch.
(c) Otherwise, if "--" is present, treat it like case 1.
(d) Otherwise, if a ref treat it like case 1. If a table treat like case 2. If neither fail.
case 4: git checkout <something> <tables>
The first argument must not be ambiguous. If a <ref> follow case 1, if a table follow case 2. Otherwise, fail.
2025-06-25 09:06:01 -07:00
elianddb 852f6523a5 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-06-25 15:25:27 +00:00
Elian cd81f2f2fc mv query test to dolt_queries.go, add conditional for harness UseLocalFileSystem() 2025-06-24 14:07:33 -07:00
Elian 2786c2a224 add mkdir tmp 2025-06-24 14:07:33 -07:00
Elian b585448447 add ambiguity test inside of test func 2025-06-24 14:07:33 -07:00
Elian 71fa8d6faa use file:/// for doltgres 2025-06-24 14:07:33 -07:00
Elian 53595f405a add local file system flag 2025-06-24 14:07:33 -07:00
Elian 16998d615b fix err msg on missing table(s) 2025-06-24 14:07:33 -07:00
Elian 554e12f0a0 restore tablesFromHead func 2025-06-24 14:07:33 -07:00
Elian 98412e13f5 rm loose string 2025-06-24 14:07:33 -07:00
Elian 9fb02aa861 clarify existence bools 2025-06-24 14:07:33 -07:00
Elian b244dfe7ac fix err check and multi remote branch test 2025-06-24 14:07:33 -07:00
Elian 631de0075e rm isBranch check in checkout func for existing with fallback 2025-06-24 14:07:33 -07:00
Elian 0a6ce282ff add test for multiple matching branch names 2025-06-24 14:07:33 -07:00
Elian 174b693507 amend rsc to ptr type 2025-06-24 14:07:33 -07:00
Elian 895fae3c4f rm use of ResetHard when firstArg = '.' to rm transaction implications 2025-06-24 14:07:33 -07:00
Elian 0392dbd60b amend validate detached head func 2025-06-24 14:07:33 -07:00
Elian 215fa309e6 add dolt queries test 2025-06-24 14:07:33 -07:00
Elian 7492650c4a rm debug echo 2025-06-24 14:07:32 -07:00
Elian dc514c3fe4 rm branch deletion (branch never existed) 2025-06-24 14:07:32 -07:00
Elian 89c109c40f amend to mark valid remoteRefs >= 1 2025-06-24 14:07:32 -07:00
Elian 6d03674dfc fix non-regex cmp 2025-06-24 14:07:32 -07:00
Elian db81cea3b0 fix remotes bats test 2025-06-24 14:07:32 -07:00
Elian d7c513d916 fix <tag> [<tables>] scenario 2025-06-24 14:07:32 -07:00
Elian 3551bf15e1 amend empty-repo check with new tablespec errout 2025-06-24 14:07:32 -07:00
Elian f63c2e5507 add implicit local branch checkout bats and rm DWIM prefix 2025-06-24 14:07:32 -07:00
Elian 2bb8c43e2e add central detached head check 2025-06-24 14:07:32 -07:00
Elian 9a867168c1 fix working set not being taken into consideration during switch 2025-06-24 14:07:32 -07:00
Elian 6404995479 amend order exe 2025-06-24 14:07:32 -07:00
Elian 716c0f3fc9 rm debug prints 2025-06-24 14:07:32 -07:00
Elian 3604761820 add bats tests 2025-06-24 14:07:32 -07:00
Elian a84a82e264 add tag check 2025-06-24 14:07:32 -07:00
Elian aff9006ab7 fix table resolved as branch err and off-by-one err 2025-06-24 14:07:32 -07:00
Elian 39c79cab28 add only table cond 2025-06-24 14:07:32 -07:00
Elian 878058f792 rm unused isBranch 2025-06-24 14:07:32 -07:00
Elian e53a08521c fix branch db err and tablespec 2025-06-24 14:07:32 -07:00
Elian a4e10d589d add success msgs 2025-06-24 14:07:32 -07:00
Elian 27a0d5f556 mv working set fallback 2025-06-24 14:07:32 -07:00
Elian 88ed2d16e9 add case 3, 4 in DWIM git checkout 2025-06-24 14:07:32 -07:00
Elian 2ccab5efde add case 1..3 impl for checkout <ref> -- <table(s)> 2025-06-24 14:07:32 -07:00
James Cor 8ab572b767 [no-release-notes] backtick tests (#9380) 2025-06-24 12:56:17 -07:00
Neil Macneale IV 4747133314 Merge pull request #9388 from dolthub/macneale4/stats-err
Ensure error checking is performed when generating statistics template
2025-06-24 12:45:02 -07:00
Neil Macneale IV d86cffbfdb Now with more error checking 2025-06-24 11:38:33 -07:00