提交 8f948132 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 9d752889
......@@ -85,18 +85,14 @@ public class TestLob extends TestBase {
stat.execute("INSERT INTO TEST SELECT X, SPACE(10000) FROM SYSTEM_RANGE(1, 10)");
ArrayList list = FileLister.getDatabaseFiles(baseDir, "lob", true);
stat.execute("UPDATE TEST SET DATA = SPACE(5000)");
for (int i = 0; i < 3; i++) {
System.gc();
}
collectAndWait();
stat.execute("CHECKPOINT");
ArrayList list2 = FileLister.getDatabaseFiles(baseDir, "lob", true);
if (list2.size() >= list.size() + 5) {
fail("Expected not many more files, got " + list2.size() + " was " + list.size());
}
stat.execute("DELETE FROM TEST");
for (int i = 0; i < 3; i++) {
System.gc();
}
collectAndWait();
stat.execute("CHECKPOINT");
ArrayList list3 = FileLister.getDatabaseFiles(baseDir, "lob", true);
if (list3.size() >= list.size()) {
......@@ -104,6 +100,17 @@ public class TestLob extends TestBase {
}
conn.close();
}
private void collectAndWait() {
for (int i = 0; i < 3; i++) {
System.gc();
}
try {
Thread.sleep(50);
} catch (InterruptedException e) {
// ignore
}
}
private void testLobVariable() throws SQLException {
deleteDb("lob");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论