Commit Graph

323 Commits

Author SHA1 Message Date
Damandeep Singh 5ce7ea7aa0 chore: added test case for log_format 2025-02-27 21:23:51 +05:30
Damandeep Singh bd70972cdf configured logger for logFormat 2025-02-26 12:27:49 +05:30
Aaron Son 9b53d20c7c go: cmd: sqlserver: Fix nil SIGSEGV on AutoGCBehavior read in init. 2025-02-10 20:55:21 -08:00
Aaron Son dc4b94d68d sql-server: Add behavior: auto_gc_behavior: enable.
When Auto GC is enabled, the running sql-server will periodically
collect a Dolt database that is growing in size. This behavior
is currently experimental. Tuning the behavior around how often to collect is
ongoing work.
2025-02-10 19:54:44 -08:00
Jason Fulghum d7662062a8 Merge pull request #8800 from dolthub/fulghum/rm-sql-server-user
Remove `user` and `password` options for sql-server
2025-02-05 09:09:38 -08:00
Jason Fulghum 9dd401c286 Deprecate user and pass options for sql-server 2025-02-03 13:21:07 -08:00
Nick Tobey 2911085fc0 Merge remote-tracking branch 'origin/main' into nicktobey/lazy-load 2025-02-03 12:45:10 -08:00
Aaron Son 52b625f3f2 Merge remote-tracking branch 'origin/main' into aaron/dsess-lifecycle 2025-02-03 10:01:27 -08:00
Aaron Son 13c9ddf104 go: sqlserver,binlogreplication: Clean up session usage a little to have more principled lifecycle. Starting replication never uses the replcation execution context. 2025-01-28 16:58:38 -08:00
Aaron Son a6b1a269c9 go: sqle,remotesrv: Implement sql.Session lifecycle callbacks for sql.Contexts used in remotesrv RPCs.
This PR changes each RPC invocation against the gRPC and HTTP servers
implementing remotesapi and cluster replication to create a sql.Context
which lives the duration of the call. The Session for that call gets
SessionCommand{Begin,End} and SessionEnd lifecycle callbacks so that it
can participate in GC safepoint rendezvous appropriately.

Previously the remotesrv.DBCache and the user/password remotesapi
authentication implementation would simply create new sql.Contexts
whenever they needed them. There could be multiple sql.Contexts for the
single server call.
2025-01-28 14:28:44 -08:00
Aaron Son 5b55d324e3 go: sqlserver: Clean up how remotesrv gets a handle to the mrEnv.FileSystem, remove the confusing indirection through ctxFactory. 2025-01-28 13:30:47 -08:00
Nick Tobey d43ce7f159 Merge remote-tracking branch 'origin/main' into nicktobey/lazy-load 2025-01-23 12:47:34 -08:00
Nick Tobey 8dfadf90ee Propagate context. 2025-01-22 22:49:02 -08:00
Jason Fulghum 9fb0046d34 Allowing the root superuser host and password to be overridden via env vars 2025-01-14 17:52:32 -08:00
Jason Fulghum f14376d773 pr feedback: removing SkipRootUserInitialization from ServerConfig interface and from YAML config 2025-01-14 17:52:32 -08:00
Jason Fulghum eccaa4f56b Changing to persist a root superuser that gets created on first launch of sql-server when there are no existing privileges. 2025-01-14 17:50:13 -08:00
Neil Macneale IV 7d33631186 rename to bootstrapConfig and document 2025-01-02 09:22:45 -08:00
Neil Macneale IV 2b15957caf Pass through dataDirOverride 2025-01-02 09:22:45 -08:00
Neil Macneale IV b9281a74d5 Verify that datadir is passed through correctly in server.go 2025-01-02 09:22:45 -08:00
James Cor 7714f70d79 parse user vars as interface{} instead of always string (#8677) 2024-12-13 14:20:06 -08:00
Zach Musgrave 010c3253f9 Removed persitence behavior from config 2024-12-05 18:15:07 -08:00
Maximilian Hoffman 2d504243ad turn on stats collect by default (#8453)
* turn on stats collect by default

* better impl of default stats for server only

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

* fix deadlock

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

* split off branch delete interface

* fix more tests

* fix more tests

* add test for auto-on

* zach comments

---------

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2024-10-23 18:38:13 -07:00
James Cor 66b03de262 log server metrics heartbeat (#8450) 2024-10-14 15:49:25 -07:00
Neil Macneale IV 49e0cb67e7 Reverts to some changes in PR 2024-08-20 15:49:23 -07:00
Dylan Varga fed30c181d Fixed grammar typos re issue #8221 2024-08-09 22:24:19 -07:00
Jason Fulghum 7e5b1599eb Tidying up 2024-08-01 13:12:39 -07:00
Jason Fulghum de8605e3ce Various binlog replica changes:
* allow 'show replica status' before replication is started
* move DEBUG logging of binlog messages to TRACE level
* persisting replication running state and automatically restarting
* passing in SQL engine, instead of relying on GetRunningServer global function
2024-08-01 10:18:31 -07:00
Jason Fulghum 16d89aec15 Adding validation that @@log_bin_branch isn't set to a branch name containing a slash 2024-07-29 15:02:39 -07:00
Jason Fulghum 3733175555 Merge branch 'main' into fulghum/binlog_logfiles 2024-07-26 21:33:11 -07:00
Maximilian Hoffman de879ef20f [stats] limit stats boostrap to server start (#8124) 2024-07-26 15:59:32 -07:00
Jason Fulghum 6b9f1a7d47 Bug fixes and cleanup 2024-07-25 10:02:09 -07:00
Jason Fulghum 17a1627d1b Adding error checking and tests for edge cases with primary server configuration 2024-07-23 11:24:57 -07:00
Jason Fulghum 038c5a4cae First pass on log purging support 2024-07-23 11:20:35 -07:00
Jason Fulghum 97446fa41f Changing the log manager to be responsible for setting the correct next log position in events written to file 2024-07-23 11:20:35 -07:00
Jason Fulghum e28d5b66c5 First pass on buffering binlog events in a log file on disk 2024-07-23 11:20:35 -07:00
Jason Fulghum cd2209b8e7 Persisting non-deterministic system var defaults (i.e. server_uuid) 2024-06-10 16:20:28 -07:00
Jason Fulghum dca74d85b5 PR Feedback: adding methods to add init/drop database hooks
PR Feedback: Removing duplicate call to InitPersistedSystemVars

PR Feedback: Renaming writeWorkingSetAndNotifyListeners to writeWorkingSet

PR Feedback: Adding a note to the RegisterReplica method on the primary controller.

PR Feedback: omitting empty fields

PR Feedback: Adding a comment about DoltDB.databaseName only being populated for filesystem-based databases.

PR Feedback: Decreasing the time limit for waitForReplicaToHaveLatestGtid to 10s instead of 60s

PR Feedback: Adding a test that shows rolled back transactions aren't replicated

PR Feedback: Adding a TODO about additional error handling on streaming events to connected replicas

PR Feedback: Added a comment on the limitation of finding the database name from the URL
2024-06-10 12:19:00 -07:00
Jason Fulghum 79745f43f0 Tidying up 2024-05-29 14:35:33 -07:00
Jason Fulghum f484565549 Pulling out the binlogProducer type 2024-05-21 15:24:00 -07:00
Jason Fulghum 000663db68 Merge branch 'main' into fulghum/binlog_prototype 2024-05-15 14:20:50 -07:00
Brian Hendriks ea6144bf1d Merge pull request #7864 from dolthub/bh/move-sqlserver-config
move config
2024-05-15 13:54:03 -07:00
Brian Hendriks e2d2570da0 remove unneeded struct 2024-05-15 12:58:29 -07:00
Brian Hendriks 2df73a6aa0 extra debug info 2024-05-15 11:50:58 -07:00
Brian Hendriks 2e6b5a5452 formatting 2024-05-15 10:33:40 -07:00
Brian Hendriks b6cd726af3 move config 2024-05-15 10:27:16 -07:00
Jason Fulghum 51edd8decb Bug fix: dolt sql-server should initialize persisted global variables from its local config store 2024-05-14 16:52:17 -07:00
Jason Fulghum e3b57c7e50 Merge branch 'main' into fulghum/binlog_prototype 2024-04-15 10:04:04 -07:00
Aaron Son c487288938 go/libraries/doltcore/dbfactory, misc: Ensure we close a *grpc.ClientConn when we are done with it.
In the cluster commithook, we had a failure mode where we would leak a
*grpc.ClientConn without closing it. It turns out, if an outbound request has
made on a ClientConn, it will continue retrying the connection. And we would
leak one on a fixed interval, resulting in ever-increasing CPU utilization.
2024-04-07 15:14:48 -07:00
Jason Fulghum 68c8a5b1e8 Merge branch 'main' into fulghum/binlog_prototype 2024-03-25 15:46:21 -07:00
jennifersp 8a0c996ca2 use system variable interface (#7579) 2024-03-21 11:05:31 -07:00