fix: more wait time for sqlness start and better message (#7485)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2025-12-26 09:55:20 +08:00
committed by GitHub
parent 4f290111db
commit 0c9f58316d

View File

@@ -293,7 +293,7 @@ impl Env {
.write(true)
.truncate(truncate_log)
.append(!truncate_log)
.open(stdout_file_name)
.open(&stdout_file_name)
.unwrap();
let args = mode.get_args(&self.sqlness_home, self, db_ctx, id);
@@ -333,9 +333,13 @@ impl Env {
});
for check_ip_addr in &check_ip_addrs {
if !util::check_port(check_ip_addr.parse().unwrap(), Duration::from_secs(10)).await {
if !util::check_port(check_ip_addr.parse().unwrap(), Duration::from_secs(30)).await {
Env::stop_server(&mut process);
panic!("{} doesn't up in 10 seconds, quit.", mode.name())
panic!(
"{} doesn't up in 30 seconds, check {} for more details.",
mode.name(),
stdout_file_name
)
}
}