Commit Graph

8590 Commits

Author SHA1 Message Date
Neil Macneale IV eeb3fffc17 Fix lint errors 2024-02-13 12:19:12 -08:00
Neil Macneale IV 832de8f229 Revive the 'url contains no Dolt data' message 2024-02-13 12:03:54 -08:00
Neil Macneale IV e13b963593 More testing, less bugs and TODOs 2024-02-12 17:27:22 -08:00
Neil Macneale IV 4fdf404e39 Add runtime failure message for impossible situations 2024-02-12 17:15:08 -08:00
Neil Macneale IV 49f7dc4390 Small refactor to make fetchRefSpecsWithDepth a little shorter 2024-02-12 17:13:54 -08:00
Neil Macneale IV 3a5f52f62f clone.go refactor to make sane 2024-02-12 17:12:20 -08:00
Neil Macneale IV 9754e73588 Add more shallow clone specific tests
Get golang tests working again
2024-02-12 17:11:08 -08:00
Neil Macneale IV f7bc1ac68f Shallow clone for sindle depth clone in place
All existing tests pass
2024-02-12 17:09:14 -08:00
Neil Macneale IV c2b64227c2 Refactor for OptionalCommit compiles. 2024-02-12 17:07:37 -08:00
Aaron Son f77d4c494a go: sqle/cluster: When in standby mode, take the epoch of the primary. When in detected_broken_config, become standby if we see a higher numbered primary. 2024-02-09 14:32:06 -08:00
James Cor 8d0499d035 merge with main 2024-02-08 16:40:37 -08:00
James Cor 21411db1ee adding test 2024-02-08 16:28:58 -08:00
Maximilian Hoffman c3a8ac2b53 [no-release-notes] Fix stats race (#7474)
* [no-release-notes] Fix stats race

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

---------

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2024-02-08 13:00:58 -08:00
Maximilian Hoffman d019cce6f7 Stats auto refresh (#7424)
* Stats auto refresh prototype

* fix bugs

* test stats update

* add tests, fix bugs

* fix test

* fmt

* delete test

* more tests

* delete table test

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* add and delete stats hooks

* fmt

* concurrency improvements

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* write bug

* more tests and stats functions

* working dolt_stat funcs

* test fixes

* bump

* fmt

* fix wg panic

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* nick comments

---------

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2024-02-07 18:19:56 -08:00
Aaron Son 0c5dc78af2 Merge pull request #7468 from dolthub/aaron/emit-metrics-while-running
go/libraries/events: Restructure events collection so that we can send events while the dolt process is running.
2024-02-07 11:56:31 -08:00
reltuk 82a20f26cd [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2024-02-07 18:22:07 +00:00
Aaron Son e4fe0404b1 go/libraries/events: More PR feedback: smaller batch size. 2024-02-07 10:14:57 -08:00
Daylon Wilkins 36efa2c8b5 Added storage capabilities for GMS Extended Types 2024-02-07 05:35:35 -08:00
Aaron Son 3902282a2e go/libraries/events: Fix up a bug in timer handler for new sendingThread. 2024-02-06 16:33:53 -08:00
Aaron Son 9a3ceefdae go/libraries/events: Restructure events collection so that we can send events while the dolt process is running.
We make the GlobalCollector mutable.

We give the Collector a sendingThread which can have an Emitter. When the
Collector collects enough events, it forwards a batch of them to the
sendingThread. If the sendingThread has an Emitter, it attempts to send its
current batch on that Emitter.

On shutdown, contexts get canceled, background threads get waited on, and then
an accumulated un-emitted events are returned from the Collector, same as
previously.
2024-02-06 15:46:31 -08:00
Jason Fulghum a72b772585 Adding a multi branch test for dropping a primary key constraint on an auto_increment col 2024-02-06 15:26:28 -08:00
Jason Fulghum 61d92457f1 Restoring the auto_increment value since truncate cleared it 2024-02-06 11:54:02 -08:00
Jason Fulghum de098637a4 Using the new sql.ValidatePrimaryKeyDrop function to validate dropping a PK 2024-02-06 10:07:47 -08:00
Neil Macneale IV b3c800f585 Bring back the check since many tests broke. Use the correct DB though. 2024-02-01 15:00:09 -08:00
Neil Macneale IV f147d60947 Ignore the local tracking branch when pushing 2024-02-01 15:00:09 -08:00
Jason Fulghum 72c0d38b0f Merge branch 'main' into fulghum/table-comments 2024-02-01 14:03:55 -08:00
Jason Fulghum cc7e9fc970 Fixing position of comment offset creation 2024-01-31 15:56:38 -08:00
Stephanie You 62f03b23d7 add disable version check warning 2024-01-31 15:44:23 -08:00
Jason Fulghum 7894356e5a Only serialize schema comment if it's not empty 2024-01-31 15:14:27 -08:00
Jason Fulghum 6b3de365eb Moved to new sql.CommentedTable interface 2024-01-31 14:32:46 -08:00
Jason Fulghum 4b656cef71 Tests working 2024-01-31 14:32:36 -08:00
Jason Fulghum d53023bd0a First messy pass at table comment support 2024-01-31 14:29:23 -08:00
Neil Macneale IV 52a32ffcad Add comment about missing remoteParams 2024-01-30 16:55:54 -08:00
macneale4 9aae715fd3 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2024-01-30 22:39:50 +00:00
Neil Macneale IV 16345568b9 Note to future readers 2024-01-30 14:29:59 -08:00
Neil Macneale IV 31685c3d8f Enable gRPC basic auth with the --user flag in dolt_clone procedure 2024-01-30 14:29:59 -08:00
James Cor a62f902fff fix sqllogictest harness to use float rounding (#7426) 2024-01-30 13:33:04 -08:00
Nick Tobey 2daa6755ab Merge pull request #7390 from dolthub/nicktobey/conflict
Concurrent table deletion and schema modification should be reported as a schema conflict.
2024-01-26 16:34:49 -08:00
Nick Tobey 7e5f0ea740 Improve specificity of merge bats test output. 2024-01-26 14:42:40 -08:00
Jason Fulghum 7dfd043344 Add support for @@dolt_transaction_commit_message to allow customers to control the messages in commits created by @@dolt_transaction_commit 2024-01-26 13:13:29 -08:00
Nick Tobey 1912d10f79 Add additional schema merge tests. 2024-01-25 23:20:22 -08:00
Nick Tobey d0b0676c26 Distinguish between Delete-Modify conflict and Delete-SchemaModify conflict. 2024-01-25 23:20:07 -08:00
Maximilian Hoffman 6aa32c31e3 [no-release-notes] fix stats errors (#7399)
* [no-release-notes] fix stats errors

* bump

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* bump

---------

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2024-01-25 16:52:39 -08:00
Nick Tobey 9cf73b5dbb Allow schema merge tests to indicate that the table does not exist on one branch. 2024-01-25 15:45:48 -08:00
Nick Tobey ee5ede17cb Merge pull request #7412 from dolthub/nicktobey/abort
When aborting a merge/cherry-pick, avoid resetting ignored tables.
2024-01-25 11:38:21 -08:00
James Cor e2fe5c5df4 Prevent panic when sorting by commit_hash in various dolt system tables (#7410) 2024-01-25 01:59:38 -08:00
Nick Tobey 1f12466076 Unstage everything by making Staged match Head 2024-01-24 22:10:35 -08:00
Nick Tobey d1d1670492 Exclude ignored tables from being reset during cherry-pick abort. 2024-01-24 22:10:35 -08:00
Nick Tobey 9b36b78c6b Add test for dolt_ignore with aborted merge. 2024-01-24 22:10:35 -08:00
Jason Fulghum 41ed61f557 Adding a ScriptTest to assert that we can create multiple FKS on a table that reference the same foreign column, when FKs are unresolved (i.e. @@foreign_key_checks is disabled) 2024-01-24 16:22:13 -08:00