fix(metadata): bound cache maintenance and pool recovery

This commit is contained in:
miracle authored and GitHub committed 2026-08-19 11:10:12 +08:00
1 parent 21af5cf600
commit 8c2b232243
41 files changed
+2747 -350

No files matched your search

+4 -3
View File
@@ -704,9 +704,10 @@ async fn live_oceanbase_mysql_setup_applies_query_timeout() {
async fn live_mysql_query_cancel_kills_running_sleep() {
let url = std::env::var("DBX_LIVE_MYSQL_CANCEL_URL").expect("DBX_LIVE_MYSQL_CANCEL_URL");
let opts = mysql_async::OptsBuilder::from_opts(mysql_async::Opts::from_url(&url).unwrap())
.pool_opts(mysql_async::PoolOpts::new().with_constraints(mysql_async::PoolConstraints::new(1, 1).unwrap()));
let pool = mysql_async::Pool::new(opts);
let pool =
dbx_core::db::mysql::connect_bare_with_pool_limit_and_setup(&url, std::time::Duration::from_secs(10), 1, &[])
.await
.unwrap();
let mut conn = dbx_core::db::mysql::get_conn_with_health_check(&pool).await.unwrap();
let connection_id = mysql_async::Conn::id(&conn);
let kill_opts = conn.opts().clone();