Commit Graph

1373 Commits

Author SHA1 Message Date
Aaron Son
995e3818cd go: sqle: remotesrv: Successfully replicate CREATE DATABASE commands by instantiating new databases on the standby on demand. 2022-10-05 12:37:39 -07:00
jennifersp
3cbd40c618 wrap spatial type string in single quotes when exporting (#4461) 2022-10-05 12:06:31 -07:00
Aaron Son
1e7abe5ef4 Merge pull request #4449 from dolthub/aaron/sqlserver-yaml-tests
integration-tests/go-sql-server-driver: Proof of concept a declarative approach to integration tests for sql-server interactions.
2022-10-05 11:28:48 -07:00
Aaron Son
ec2fabf3c3 .github/workflows/ci-sql-server-integration-tests.yaml: Disable windows for now. 2022-10-04 14:34:34 -07:00
Aaron Son
89a6807336 .github/workflows: ci-sql-server-integration-tests.yaml: More iteration, try a GracefulStop for Windows. 2022-10-04 13:54:31 -07:00
Aaron Son
61831cf91e .github/workflows: ci-sql-server-integration-tests.yaml: More iteration. 2022-10-04 13:16:43 -07:00
Aaron Son
cc82355269 integration-tests/go-sql-server-driver: Fix JSON test for LD_1. 2022-10-04 11:49:11 -07:00
jennifersp
0746e55d7d update bats test 2022-10-04 11:04:40 -07:00
Aaron Son
c56b0630a9 integration-tests/go-sql-server-driver: Finish transitioning the rest of the sql-server-cluster tests. 2022-10-04 10:22:38 -07:00
Aaron Son
fa7db054ad integration-tests/go-sql-server-driver: Convert some more sql-server-cluster.bats tests. 2022-10-03 17:23:53 -07:00
Aaron Son
0f39022a7a Merge remote-tracking branch 'origin/main' into aaron/sqlserver-yaml-tests 2022-10-03 16:37:28 -07:00
Aaron Son
dd7b5b5bec integration-tests/go-sql-server-driver: Move over some more tests. 2022-10-03 16:37:24 -07:00
Aaron Son
72579d4972 integration-tests/go-sql-server-driver: Cleanup how we write files a bit. 2022-10-03 15:37:40 -07:00
Aaron Son
364024f7a2 integration-tests/go-sql-server-driver: Make a new connection pool per connection assertion, instead of trying to reuse them.
Simpler.

Much better structure for lots of tests which test things like connection
strings, users and passwords provided at connection time, etc.
2022-10-03 15:26:48 -07:00
Aaron Son
b3dc25fc57 integration-tests/go-sql-server-driver: Move some magic numbers/strings to constants. 2022-10-03 15:19:59 -07:00
Aaron Son
04947a44a0 integration-tests/go-sql-server-driver: Some cleanup to finalization and sql.Rows handling. 2022-10-03 15:14:37 -07:00
Aaron Son
bf7480eb1b integration-tests/go-sql-server-driver: sql-server-cluster.yaml: Fix dolt_assume_cluster_role tests for new behavior of not breaking connection when role does not change. 2022-10-03 15:02:40 -07:00
Aaron Son
91087027b8 Merge remote-tracking branch 'origin/main' into aaron/sql-cluster-transitions-kill-connections 2022-10-03 14:10:50 -07:00
Aaron Son
153ea002e4 integration-tests/go-sql-server-driver: Start migrating over some simple tests from sql-server.bats. 2022-10-03 14:00:56 -07:00
Aaron Son
a2f1e06b75 integration-tests/go-sql-server-driver: Factor out test.Run. 2022-10-03 12:50:07 -07:00
Aaron Son
7ebc1bb45f integration-tests/go-sql-server-driver: Move Server definitions to TestRepo/MultiRepo, instead of a separate top-level field. 2022-10-03 12:04:35 -07:00
Aaron Son
87de2bb7d9 integration-tests/go-sql-server-driver: Add retry_attempts functionality, drop sleep_millis. Add some documentation. 2022-10-03 11:38:01 -07:00
Aaron Son
cf639c3585 integration-tests/go-sql-server-driver: Start converting some sql-server bats tests. 2022-10-03 10:01:47 -07:00
Aaron Son
1857806d2d integration-tests/go-sql-server-driver: Proof of concept a declarative approach to integration tests for sql-server interactions.
Converts bats/sql-server-config.bats to use a new approach.
2022-10-01 15:42:22 -07:00
Aaron Son
60f1e45f49 bats: cluster: Add a test for a couple failovers and the new primary having all writes. 2022-09-30 14:32:14 -07:00
Dhruv Sringari
272ca591cf Walk artifacts ref (#4438)
* Walk artifacts ref

* pr comment
2022-09-30 14:18:42 -07:00
Aaron Son
58d33c7152 Merge branch 'aaron/sql-cluster-interceptors-transition-role' into aaron/sql-cluster-graceful-transition 2022-09-30 14:12:23 -07:00
Aaron Son
599d75ca3b Merge branch 'aaron/sql-cluster-standby-is-read-only' into aaron/sql-cluster-interceptors-transition-role 2022-09-30 13:55:54 -07:00
Aaron Son
670e57ec5f Merge branch 'aaron/sql-cluster-transitions-kill-connections' into aaron/sql-cluster-standby-is-read-only 2022-09-30 13:49:47 -07:00
Aaron Son
8d5bc367cc Merge remote-tracking branch 'origin/main' into aaron/sql-cluster-transitions-kill-connections 2022-09-30 13:43:23 -07:00
Aaron Son
0b719f0b24 go: sqle: cluster: Add a role, detected_broken_config, to use when we see two primaries at the same epoch. 2022-09-30 12:28:53 -07:00
Aaron Son
e477a0a3be go: sqle: cluster: client and server interceptors are able to transition server cluster role when they see a newer primary. 2022-09-30 12:28:53 -07:00
Aaron Son
b766895511 go: sqle: cluster: Dolt databases on a standby are read only. They accept writes when the server transitions to primary. 2022-09-30 12:28:53 -07:00
Aaron Son
635bbd46c8 go: sqle: cluster: Add a mechanism to kill inflight queries and connections when transition server role. 2022-09-30 12:28:53 -07:00
Aaron Son
4160bda8ac go: sqle: cluster: Add a mechanism to kill inflight queries and connections when transition server role. 2022-09-30 12:20:09 -07:00
Aaron Son
2b53d66772 go: sqle: cluster: Have call dolt_assume_cluster_role() transition gracefully when going primary -> standby. Fail if it cannot true-up the peer. 2022-09-30 12:07:17 -07:00
AndyA
82ff7f1c53 Merge pull request #4431 from dolthub/andy/flip-format
Make NomsBinFormat `__DOLT__` the default format
2022-09-30 10:15:10 -07:00
Andy Arthur
b79a10985c update bats for format flip 2022-09-30 08:42:12 -07:00
Aaron Son
39a9dcee47 go: sqle: cluster: Add a role, detected_broken_config, to use when we see two primaries at the same epoch. 2022-09-29 17:17:12 -07:00
Aaron Son
34db06eb68 go: sqle: cluster: client and server interceptors are able to transition server cluster role when they see a newer primary. 2022-09-29 17:01:30 -07:00
Andy Arthur
1c51085324 update init.bats, sysbench runner 2022-09-29 16:09:20 -07:00
Aaron Son
b5271155c2 go: sqle: cluster: Dolt databases on a standby are read only. They accept writes when the server transitions to primary. 2022-09-29 15:40:30 -07:00
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