Commit Graph

1331 Commits

Author SHA1 Message Date
Aaron Son bc8f712274 Merge remote-tracking branch 'origin/main' into aaron/sql-cluster-status-procedure 2022-09-29 10:10:41 -07:00
Aaron Son fbdfa0a62a Merge pull request #4422 from dolthub/aaron/cluster-replication-hook
go/libraries/doltcore/sqle: Implement standby replication hook.
2022-09-29 10:08:54 -07:00
James Cor e0bb97d9c7 Merge pull request #4318 from dolthub/james/conflicts
implement `call dolt_conflicts_resolve()`
2022-09-29 09:59:40 -07:00
Aaron Son f2a43f1377 go: sqle: cluster: Add a dolt_cluster database, exposing a dolt_cluster_status table which queries replication status. 2022-09-28 16:01:22 -07:00
James Cor 9cc1d99b1a bad test 2022-09-28 15:54:07 -07:00
James Cor 786e892f1c fix tests again 2022-09-28 14:11:45 -07:00
James Cor 149720fcaa test fix 2022-09-28 13:50:34 -07:00
James Cor c555f0b16c one last test, probably 2022-09-28 13:23:41 -07:00
James Cor dc18ebb1f5 adding foreign key checks 2022-09-28 13:12:09 -07:00
Aaron Son 3c12698f09 Merge remote-tracking branch 'origin/main' into aaron/cluster-replication-hook 2022-09-28 10:49:39 -07:00
jennifersp 4565f37da2 turn off opt-in feature for unix socket (#4413) 2022-09-28 10:28:01 -07:00
Aaron Son d29c8f4512 Merge remote-tracking branch 'origin/main' into aaron/cluster-replication-hook 2022-09-27 17:02:09 -07:00
Aaron Son a85597c146 go: sqle: cluster: fix replication to work on working set updates. first bats test for end-to-end replication to the standby. 2022-09-27 17:01:21 -07:00
Aaron Son c0d0e143bb bats: sql-server-cluster: Add bats test for server failing to start if a local database is missing the standby remote. 2022-09-27 14:52:45 -07:00
Aaron Son 98f4321ec8 go: sqle: cluster: Add logging to our replication commit hook. Make the commit hook attempt to true-up standby on shutdown. 2022-09-27 14:46:38 -07:00
jennifersp a1e57989bb allow drop current database directory and fix drop db with '-' (#4400) 2022-09-27 11:45:07 -07:00
James Cor 6d51206676 more tests, and small keyless fix 2022-09-27 11:29:20 -07:00
James Cor d000d35f39 i wrote test bad 2022-09-27 10:04:20 -07:00
Aaron Son 4261b3692e go: sqle: cluster: First pass at install replicate-to-standby commit hooks on server start. 2022-09-27 09:53:34 -07:00
James Cor 9a33753130 test format 2022-09-26 10:29:45 -07:00
James Cor 76d9eec826 Merge branch 'main' into james/conflicts 2022-09-26 10:03:11 -07:00
jennifersp 691997b87a support dolt_diff_summary_table_function (#4363) 2022-09-26 09:48:58 -07:00
Aaron Son 64029df56b go: sqle: database_provider: In cluster mode, create the standby remote when we create a database. 2022-09-23 15:04:42 -07:00
James Cor c05244936a Merge pull request #4399 from dolthub/james/bindvars
adding prepared tests for dolt stored procedures
2022-09-23 12:35:41 -07:00
Aaron Son e01f7aa7d7 Merge pull request #4394 from dolthub/aaron/sql-variables-cluster-role-and-epoch
sql-server: Implement dolt_cluster_role, dolt_cluster_role_epoch variables, dolt_assume_cluster_role procedure.
2022-09-23 11:44:55 -07:00
James Cor fc2e07ed6b fixing test 2022-09-22 16:16:46 -07:00
James Cor 4a301966a6 there are lots of bugs, not ready 2022-09-22 13:06:32 -07:00
Aaron Son 09bed9471d sql-server: Add dolt_assume_cluster_role procedure.
Currently implements rules around epoch changes and updates the persisted and
global session variables.
2022-09-22 11:53:15 -07:00
Aaron Son 13e8cab325 sql-server: Add read-only handling for cluster role and role_epoch system variables. 2022-09-22 10:04:32 -07:00
Zach Musgrave aa521524a2 Merge pull request #4389 from dolthub/zachmu/dolt-commit-race
Fix race for concurrent dolt_commit calls
2022-09-22 09:23:50 -07:00
Zach Musgrave 2cde333fbd New node test for concurrent dolt_commit 2022-09-21 17:21:55 -07:00
Aaron Son 2a56d984c5 Merge pull request #4387 from dolthub/aaron/remotestorage-remotesrv-support-repo-path
remotestorage,remotesrv: Be less restrictive in repository paths for remotesapi repos that are not served through dolthub.
2022-09-21 16:41:30 -07:00
Aaron Son 9ce8016719 Merge pull request #4383 from dolthub/aaron/sql-server-read-repica-force-pull-setting
go/libraries/doltcore/sqle: ReadReplicaDatabase: Add variable for force pulling remote branches.
2022-09-21 16:37:20 -07:00
James Cor 23b5bdcf80 Merge branch 'main' into james/conflicts 2022-09-21 14:04:08 -07:00
Tim Sehn 29ba8f417f Merge branch 'main' into tim/fix-bats 2022-09-21 12:50:08 -07:00
Aaron Son 91a09258ec go: remotesrv: Use RepoPath when it is provided. 2022-09-21 11:55:58 -07:00
Dhruv Sringari 8c8f27d2ad Implement merge stats for the new format (#4384)
* Add prolly.MergeMapsWithStats

* don't use a callback to update merge stats

* thread merge stats through doltcore/merge
2022-09-21 10:55:49 -07:00
Tim Sehn 338f54ab4e Added missing closing backtick 2022-09-20 17:22:31 -07:00
Tim Sehn ec5f51040f Improved parquet tests and added docs on how to get them to work 2022-09-20 17:21:29 -07:00
Tim Sehn 49f07dc2b7 Updated bats README and a test to make it easier to get started 2022-09-20 15:56:32 -07:00
Aaron Son 7b777e921f go/libraries/doltcore/sqle: ReadReplicaDatabase: Add variable for force pulling remote branches. 2022-09-20 15:46:53 -07:00
James Cor 9ea196bcbd Merge branch 'main' into james/conflicts 2022-09-20 12:02:18 -07:00
jennifersp 51952b84a1 have TempTableFilesDir() return err if .dolt is not found (#4301) 2022-09-16 20:29:21 -07:00
Dhruv Sringari 7e0a66b68f Add -A (--ALL) to dolt commit and CALL DOLT_COMMIT (#4347)
* Add -A (--ALL) to dolt commit

-A adds all tables (including) new tables to the staged set before committing

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

* bump prepareds, PR comment

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-09-16 11:38:25 -07:00
Aaron Son 0f8a9f16fc Merge pull request #4345 from dolthub/aaron/sql-server-remotesapi-read-replication
[no-release-notes] bats: sql-server-remotesrv.bats: Add a bats test for sql-server read replica running against a sql-server --remotesapi-port remote.
2022-09-14 16:44:16 -07:00
Aaron Son 966f53a873 bats: sql-server-remotesrv.bats: Add a bats test for sql-server read replica running against a sql-server --remotesapi-port remote. 2022-09-14 11:38:09 -07:00
Aaron Son 30ca51423e Merge pull request #4336 from dolthub/aaron/sql-server-can-run-read-only-remotesrv
sql-server: Let sql-server expose a remotesapi service to allow cloning, fetching and read replication from its databases.
2022-09-14 11:10:08 -07:00
Zach Musgrave 43a41646f5 Merge pull request #4325 from dolthub/zachmu/kill-pipeline
[no-release-notes] Refactoring: killed off last lingering uses of pipeline package
2022-09-14 10:49:36 -07:00
Daylon Wilkins 9e9f9e65c2 Unskipped bats test 2022-09-14 07:48:31 -07:00
James Cor eda6e066b1 Merge pull request #4335 from dolthub/james/users
cmd user/password arguments always override yaml config
2022-09-13 18:33:34 -07:00