Files
dolt/integration-tests/go-sql-server-driver
Aaron Son a90a4bca07 go: sqle/statspro: prollyStats: FlushFromMem: Fix long-held lock when flushing stats to disk.
For sql-server instances with many databases, many branches or many tables
indexes, flushing stats could cause queries to block until stats were finished
flushing. StatsController attempted to rate limited how much I/O bandwidth
would be used to flush stats, but this is currently counter-productive because
all queries are blocked from analyzing successfully until stats are flushed.

This changes it back to flush stats to disk as quickly as possible when we need
to do it. Computing stats is already rate limited, so for large flushes this
should not happen to often.

We will continue to improve things here so that stats writes have less impact
on server resource utilization and do not block user-facing work as they
proceed.
2025-05-20 15:42:57 -07:00
..
2025-04-18 14:55:08 -07:00
2025-04-18 14:55:08 -07:00

go-sql-server-driver

This is a driver and a test suite for tests interacting with dolt sql-server. These tests describe a setup for the sql-server(s) which should be running, the interactions which should be run against the servers, and the assertions which should pass given those interactions.

This is meant to be more declarative and more robust than using bats for these integration tests.

Something belongs in this package if it primarily tests interactions with the exposed MySQL port on the sql-server.

Something belongs in bats if it primarily tests interactions with the dolt binary itself. One example for the dolt sql-server command itself would be testing config validation which results in exit codes or help text displayed.