提交 1c06fd6a authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 8df6a20e
......@@ -66,7 +66,7 @@ public class TestKillRestartMulti extends TestBase {
p.destroy();
break;
} else if (s.startsWith("#Info")) {
// System.out.println(s);
// System.out.println("info: " + s);
} else if (s.startsWith("#Fail")) {
System.err.println(s);
while (true) {
......@@ -82,9 +82,22 @@ public class TestKillRestartMulti extends TestBase {
String backup = baseDir + "/killRestartMulti-" + System.currentTimeMillis() + ".zip";
try {
Backup.execute(backup, baseDir, "killRestartMulti", true);
Connection conn = openConnection();
testConsistent(conn);
Statement stat = conn.createStatement();
Connection conn = null;
for (int j = 0;; j++) {
try {
conn = openConnection();
break;
} catch (SQLException e2) {
if (e2.getErrorCode() == ErrorCode.DATABASE_ALREADY_OPEN_1
&& j < 3) {
Thread.sleep(100);
} else {
throw e2;
}
}
}
testConsistent(conn);
Statement stat = conn.createStatement();
stat.execute("DROP ALL OBJECTS");
conn.close();
conn = openConnection();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论