Commit Graph

12321 Commits

Author SHA1 Message Date
Aaron Son 261b10c92b go: sqle: transactions,cluster: Move block-for-cluster-replication behavior to Dolt transaction logic and out of the commit hook. 2023-05-12 16:40:42 -07:00
Aaron Son af966fa9fd Add ReplicationStatusController out parameter to some DoltDB write methods. 2023-05-12 16:13:15 -07:00
Aaron Son dfdb4a4b2a go: sqle: cluster: Implement a first pass at dolt_cluster_ack_writes_timeout_secs.
Setting this system variable to a non-zero value on a primary replica in a
sql-server cluster will cause dolt to block a SQL client performing a commit
until that client's commit is fully replicated to the replicas.

If there is a timeout, currently a warning is logged in the logs.
2023-05-11 15:50:43 -07:00
Jason Fulghum f290614b3d Merge pull request #5922 from dolthub/fulghum/schema-merge
Changing schema equality to not consider tag when comparing columns
2023-05-11 12:58:00 -07:00
max-hoffman 1c1db7a62e [ga-bump-release] Update Dolt version to 1.0.1 and release v1.0.1 2023-05-11 17:29:10 +00:00
Aaron Son cdbd45864a Merge pull request #5921 from dolthub/aaron/parallelize-commit-hook-invocation
go: doltdb: hooksdatabase.go: Execute commit hooks in parallel so that synchronous commit hooks do not serialize on each other.
2023-05-11 10:28:01 -07:00
Aaron Son 4c0f974a28 Merge pull request #5919 from dolthub/aaron/sql-dolt_log_level-variable
sql-server: `dolt_log_level` system variable allows reading the current log level for the server and setting a new one.
2023-05-11 10:27:43 -07:00
Maximilian Hoffman c3660a1d0c bump gms (#5926) 2023-05-11 10:18:01 -07:00
Nick Tobey 865c08531a Delay format check used in dolt stash until after args parsing, in case --help is being passed. 2023-05-10 16:10:51 -07:00
Jason Fulghum 8f8e05c674 Changing schema equality to not consider tag when comparing columns 2023-05-10 16:04:52 -07:00
Aaron Son 05a5dcb5a4 go: doltdb: hooksdatabase.go: Execute commit hooks in parallel so that synchronous commit hooks do not serialize on each other. 2023-05-10 15:35:30 -07:00
reltuk 2bd393bcf9 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2023-05-10 21:56:25 +00:00
Aaron Son 2674c3cf2a sql-server: Allow dolt_log_level system variable to receive writes and dynamically update the log level. 2023-05-10 14:46:45 -07:00
Nick Tobey 59f9099082 Remove cry for help from dolt sql --help 2023-05-10 14:42:13 -07:00
Aaron Son 663d2e3181 sql-server: Expose the current server log level through the dolt_log_level system variable. 2023-05-10 14:25:41 -07:00
Aaron Son 1ecd688929 Merge pull request #5902 from dolthub/aaron/clone-works-better-with-chunk-journal
go/store/datas/pull/clone.go: Fix to clone to interact with sql-server remotes better.
2023-05-10 12:01:51 -07:00
Aaron Son f1ab87a118 Merge remote-tracking branch 'origin/main' into aaron/clone-works-better-with-chunk-journal 2023-05-10 10:10:46 -07:00
Aaron Son 0d024eb0a3 Merge remote-tracking branch 'origin/main' into aaron/dolt_gc-unavailable-on-standby-replica 2023-05-10 10:10:01 -07:00
Tim Sehn c719bc1c6c Merge pull request #5817 from dolthub/taylor/checkout-table-test
[no-release-notes] Add skipped enginetest for call dolt_checkout(table) on database revision bug
2023-05-10 10:04:33 -07:00
JCOR11599 cc5e331c25 [ga-bump-dep] Bump dependency in Dolt by JCOR11599 2023-05-10 05:02:52 +00:00
JCOR11599 11b395d562 [ga-bump-dep] Bump dependency in Dolt by JCOR11599 2023-05-09 22:47:50 +00:00
Aaron Son 6f646a7f01 go/store/datas/pull/clone.go: Fix to clone to interact with sql-server remotes better.
Before this fix, |dolt clone| against a sql-server remote can fail with a
confusing error message if the sql-server has a chunk journal. Adding the chunk
journal to our destination ChunkStore causes us to update the root hash, which
the Clone code was not expecting.

This change updates the Clone code to look for the possible update to the
destination's root hash and to not try to set the root hash on the ChunkStore
if it has already been done by the code handling the chunk journal.
2023-05-09 15:25:07 -07:00
Aaron Son acf99f1edf go: sqle: dolt_gc.go: Disable CALL dolt_gc() on a standby replica, where it is not currently safe. Shallow GC is still available. 2023-05-09 13:41:16 -07:00
James Cor f22818e44b bump 2023-05-09 11:49:34 -07:00
James Cor 3c62e2bee0 skipping this test 2023-05-09 10:45:12 -07:00
James Cor dc52c89f9b Merge branch 'main' into james/index 2023-05-09 09:39:13 -07:00
Neil Macneale IV cd1f8ca0b5 batsee --output dir support 2023-05-09 09:36:10 -07:00
jennifersp 537a651690 fix empty string import for ENUM and SET types (#5856) 2023-05-09 07:15:44 -07:00
JCOR11599 8358b906b4 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2023-05-09 05:25:41 +00:00
James Cor 50c3a9a811 bump again 2023-05-08 22:15:34 -07:00
James Cor f996051cd9 bump 2023-05-08 22:07:05 -07:00
James Cor 12b4d7a202 merge and bump 2023-05-08 22:03:05 -07:00
jennifersp 093e14a6be add support for ALTER EVENT (#5895) 2023-05-08 20:57:23 -07:00
Jason Fulghum 6f2caa5223 Merge pull request #5892 from dolthub/fulghum/binlog-replication
Fix binlog connection re-establishment when connection closes between messages
2023-05-08 17:43:38 -07:00
Neil Macneale IV 9575228ae5 Refactor SQLEngine instantiation into the Queryist interface
SQL Command arguments which pertain to instantiating a local SqlEngine instance are now global arguments which come before the sql subcommand. This is a breaking change for users of the sql command who pass in the following arguments:

--data-dir
--user
--doltcfg-dir
--privilege-file
--branch-control-file
All of the test changes pertain to moving those arguments, and nothing else. This is by design to ensure we don't have broader impact to the interface.

With this abstraction in place, we can put a different Queryist implementation in place - specifically one which talks to a remotes server - which is the end goal.

See: https://github.com/dolthub/dolt/issues/3922
2023-05-08 16:50:46 -07:00
Jason Fulghum c87de40bb6 Switching from fmt.Printf to t.Logf 2023-05-08 16:03:30 -07:00
Neil Macneale IV 962cd4b0df Print a better error for users who provide arguments in their legacy location 2023-05-08 15:12:19 -07:00
macneale4 44450e7bb2 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2023-05-08 21:30:54 +00:00
Aaron Son 724dee501c Merge pull request #5885 from dolthub/aaron/optimize-fetch
go/libraries/doltcore/env/actions: remotes.go: Have fetch pull all the branch heads at once.
2023-05-08 14:28:15 -07:00
Neil Macneale IV d6bc02571e Refactor DDL update path in sql command to work with a Queryist 2023-05-08 14:20:11 -07:00
Neil Macneale IV 860dd278fa better grammar
Co-authored-by: Jason Fulghum <jason@dolthub.com>
2023-05-08 14:18:20 -07:00
Neil Macneale IV dd5fd5979c fix typos
Co-authored-by: Jason Fulghum <jason@dolthub.com>
2023-05-08 14:17:08 -07:00
Jason Fulghum d8cc72cbbc Re-establishing connection on io.EOF (just like io.UnexpectedEOF) 2023-05-08 13:50:58 -07:00
Jason Fulghum 31f40578b4 Merge pull request #5893 from dolthub/fulghum-74ba62a3
[auto-bump] [no-release-notes] dependency by fulghum
2023-05-08 10:29:25 -07:00
Neil Macneale IV 3bdebe0819 Add --output option to batsee 2023-05-08 09:58:13 -07:00
Neil Macneale IV a66679be57 Move the arg parsing into a seperate function. 2023-05-08 09:58:13 -07:00
AndyA c203c10589 Merge pull request #5874 from dolthub/andy/merge-unresolved-fk-fix
go/doltcore/merge: use unresolved-aware fk matching method in Foreign…
2023-05-08 09:30:34 -07:00
fulghum 000205f8e9 [ga-bump-dep] Bump dependency in Dolt by fulghum 2023-05-08 16:00:00 +00:00
James Cor 3062c240b6 Merge pull request #5890 from dolthub/james/windows
normalize windows file paths better
2023-05-06 01:15:39 -07:00
Jason Fulghum e16d6a9896 Minor tweaks to TestBinlogReplicationAutoReconnect test 2023-05-05 16:21:07 -07:00