boulder/sa
Phil Porada 0fc9de63ee
SA: Enforce microsecond granularity for long_query_time and max_statement_time (#7224)
In MariaDB, `long_query_time`[1] and `max_statement_time`[2] have up to
microsecond granularity (6 digits to the right of the decimal).

Fixes an issue detected by proxysql in staging.
```
MySQL_Session.cpp:6567:handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_QUERY_qpo(): [ERROR] Unable to parse query. If correct, report it as a bug: SET long_query_time=3.9200000000000004
```

1. https://mariadb.com/kb/en/server-system-variables/#long_query_time
2. https://mariadb.com/kb/en/server-system-variables/#max_statement_time

---------

Co-authored-by: Aaron Gable <aaron@letsencrypt.org>
2023-12-21 13:06:30 -05:00
..
db Deprecate LeaseCRLShards feature (#7009) 2023-08-07 15:17:00 -07:00
db-next SA: Add and use revokedCertificates table (#7095) 2023-10-02 10:21:14 -07:00
db-users SA: Add and use revokedCertificates table (#7095) 2023-10-02 10:21:14 -07:00
proto Finish migration from int64 durations to durationpb (#7147) 2023-11-28 12:51:11 -05:00
satest Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
testdata Support writing OCSP to Redis on revocation (#6012) 2022-04-01 13:59:56 -06:00
database.go SA: Enforce microsecond granularity for long_query_time and max_statement_time (#7224) 2023-12-21 13:06:30 -05:00
database_test.go SA: Enforce microsecond granularity for long_query_time and max_statement_time (#7224) 2023-12-21 13:06:30 -05:00
ip_range_test.go Remove all stray copyright headers and appends the initial line to LICENSE.txt (#1853) 2016-05-31 12:32:04 -07:00
metrics.go sa: refactor db initialization (#6930) 2023-06-13 10:15:40 -07:00
migrations.sh test: Support multiple database schemas (#6344) 2022-09-07 14:59:08 -07:00
model.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
model_test.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
rate_limits.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
rate_limits_test.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
sa.go Reduce logging from inflight validation collisions (#7209) 2023-12-15 09:58:34 -08:00
sa_test.go Remove static test certs from SA unittests (#7217) 2023-12-15 07:36:59 -08:00
saro.go Finish migration from int64 timestamps to timestamppb (#7142) 2023-11-27 13:37:31 -08:00
sysvars.go SA: Check MariaDB system variables at startup (#6791) 2023-04-18 11:02:33 -04:00
sysvars_test.go SA: Check MariaDB system variables at startup (#6791) 2023-04-18 11:02:33 -04:00
type-converter.go It's borpin' time! (#6982) 2023-07-17 14:38:29 -07:00
type-converter_test.go Remove redundant jose import alias (#6887) 2023-05-15 09:45:58 -07:00