Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d409012d
提交
d409012d
authored
6月 16, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove MVCC setting from some connection URLs in tests
上级
2a2a7b13
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
13 行增加
和
12 行删除
+13
-12
TestGeneralCommonTableQueries.java
...rc/test/org/h2/test/db/TestGeneralCommonTableQueries.java
+1
-1
TestMvcc1.java
h2/src/test/org/h2/test/mvcc/TestMvcc1.java
+2
-2
TestMvccMultiThreaded.java
h2/src/test/org/h2/test/mvcc/TestMvccMultiThreaded.java
+2
-3
TestMvccMultiThreaded2.java
h2/src/test/org/h2/test/mvcc/TestMvccMultiThreaded2.java
+1
-1
TestRowLocks.java
h2/src/test/org/h2/test/rowlock/TestRowLocks.java
+4
-2
TestMVTableEngine.java
h2/src/test/org/h2/test/store/TestMVTableEngine.java
+3
-3
没有找到文件。
h2/src/test/org/h2/test/db/TestGeneralCommonTableQueries.java
浏览文件 @
d409012d
...
@@ -529,7 +529,7 @@ public class TestGeneralCommonTableQueries extends AbstractBaseForCommonTableExp
...
@@ -529,7 +529,7 @@ public class TestGeneralCommonTableQueries extends AbstractBaseForCommonTableExp
try
{
try
{
// Test with settings: lazy mvStore memory mvcc multiThreaded
// Test with settings: lazy mvStore memory mvcc multiThreaded
// connection url is
// connection url is
// mem:script;MV_STORE=true;LOG=1;LOCK_TIMEOUT=50;
MVCC=TRUE;
// mem:script;MV_STORE=true;LOG=1;LOCK_TIMEOUT=50;
// MULTI_THREADED=TRUE;LAZY_QUERY_EXECUTION=1
// MULTI_THREADED=TRUE;LAZY_QUERY_EXECUTION=1
config
.
lazy
=
true
;
config
.
lazy
=
true
;
config
.
mvStore
=
true
;
config
.
mvStore
=
true
;
...
...
h2/src/test/org/h2/test/mvcc/TestMvcc1.java
浏览文件 @
d409012d
...
@@ -76,9 +76,9 @@ public class TestMvcc1 extends TestBase {
...
@@ -76,9 +76,9 @@ public class TestMvcc1 extends TestBase {
// selects new data (select * from test where id > ?) and deletes
// selects new data (select * from test where id > ?) and deletes
deleteDb
(
"mvcc1"
);
deleteDb
(
"mvcc1"
);
c1
=
getConnection
(
"mvcc1;
MVCC=TRUE;
LOCK_TIMEOUT=10"
);
c1
=
getConnection
(
"mvcc1;LOCK_TIMEOUT=10"
);
s1
=
c1
.
createStatement
();
s1
=
c1
.
createStatement
();
c2
=
getConnection
(
"mvcc1;
MVCC=TRUE;
LOCK_TIMEOUT=10"
);
c2
=
getConnection
(
"mvcc1;LOCK_TIMEOUT=10"
);
s2
=
c2
.
createStatement
();
s2
=
c2
.
createStatement
();
c1
.
setAutoCommit
(
false
);
c1
.
setAutoCommit
(
false
);
c2
.
setAutoCommit
(
false
);
c2
.
setAutoCommit
(
false
);
...
...
h2/src/test/org/h2/test/mvcc/TestMvccMultiThreaded.java
浏览文件 @
d409012d
...
@@ -92,7 +92,7 @@ public class TestMvccMultiThreaded extends TestBase {
...
@@ -92,7 +92,7 @@ public class TestMvccMultiThreaded extends TestBase {
final
Connection
[]
connList
=
new
Connection
[
len
];
final
Connection
[]
connList
=
new
Connection
[
len
];
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
Connection
conn
=
getConnection
(
Connection
conn
=
getConnection
(
getTestName
()
+
";
MVCC=TRUE;
LOCK_TIMEOUT=500"
);
getTestName
()
+
";LOCK_TIMEOUT=500"
);
connList
[
i
]
=
conn
;
connList
[
i
]
=
conn
;
}
}
Connection
conn
=
connList
[
0
];
Connection
conn
=
connList
[
0
];
...
@@ -129,8 +129,7 @@ public class TestMvccMultiThreaded extends TestBase {
...
@@ -129,8 +129,7 @@ public class TestMvccMultiThreaded extends TestBase {
int
len
=
2
;
int
len
=
2
;
final
Connection
[]
connList
=
new
Connection
[
len
];
final
Connection
[]
connList
=
new
Connection
[
len
];
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
connList
[
i
]
=
getConnection
(
connList
[
i
]
=
getConnection
(
getTestName
());
getTestName
()
+
";MVCC=TRUE"
);
}
}
Connection
conn
=
connList
[
0
];
Connection
conn
=
connList
[
0
];
conn
.
createStatement
().
execute
(
conn
.
createStatement
().
execute
(
...
...
h2/src/test/org/h2/test/mvcc/TestMvccMultiThreaded2.java
浏览文件 @
d409012d
...
@@ -24,7 +24,7 @@ public class TestMvccMultiThreaded2 extends TestBase {
...
@@ -24,7 +24,7 @@ public class TestMvccMultiThreaded2 extends TestBase {
private
static
final
int
TEST_TIME_SECONDS
=
60
;
private
static
final
int
TEST_TIME_SECONDS
=
60
;
private
static
final
boolean
DISPLAY_STATS
=
false
;
private
static
final
boolean
DISPLAY_STATS
=
false
;
private
static
final
String
URL
=
";
MVCC=TRUE;
LOCK_TIMEOUT=120000;MULTI_THREADED=TRUE"
;
private
static
final
String
URL
=
";LOCK_TIMEOUT=120000;MULTI_THREADED=TRUE"
;
/**
/**
* Run just this test.
* Run just this test.
...
...
h2/src/test/org/h2/test/rowlock/TestRowLocks.java
浏览文件 @
d409012d
...
@@ -38,7 +38,9 @@ public class TestRowLocks extends TestBase {
...
@@ -38,7 +38,9 @@ public class TestRowLocks extends TestBase {
@Override
@Override
public
void
test
()
throws
Exception
{
public
void
test
()
throws
Exception
{
testSetMode
();
testSetMode
();
testCases
();
if
(
config
.
mvStore
)
{
testCases
();
}
deleteDb
(
getTestName
());
deleteDb
(
getTestName
());
}
}
...
@@ -55,7 +57,7 @@ public class TestRowLocks extends TestBase {
...
@@ -55,7 +57,7 @@ public class TestRowLocks extends TestBase {
private
void
testCases
()
throws
Exception
{
private
void
testCases
()
throws
Exception
{
deleteDb
(
getTestName
());
deleteDb
(
getTestName
());
c1
=
getConnection
(
getTestName
()
+
";MVCC=TRUE"
);
c1
=
getConnection
(
getTestName
());
s1
=
c1
.
createStatement
();
s1
=
c1
.
createStatement
();
s1
.
execute
(
"SET LOCK_TIMEOUT 10000"
);
s1
.
execute
(
"SET LOCK_TIMEOUT 10000"
);
s1
.
execute
(
"CREATE TABLE TEST AS "
+
s1
.
execute
(
"CREATE TABLE TEST AS "
+
...
...
h2/src/test/org/h2/test/store/TestMVTableEngine.java
浏览文件 @
d409012d
...
@@ -506,7 +506,7 @@ public class TestMVTableEngine extends TestBase {
...
@@ -506,7 +506,7 @@ public class TestMVTableEngine extends TestBase {
Statement
stat
;
Statement
stat
;
Statement
stat2
;
Statement
stat2
;
deleteDb
(
getTestName
());
deleteDb
(
getTestName
());
String
url
=
getTestName
()
+
";MV_STORE=TRUE
;MVCC=TRUE
"
;
String
url
=
getTestName
()
+
";MV_STORE=TRUE"
;
url
=
getURL
(
url
,
true
);
url
=
getURL
(
url
,
true
);
conn
=
getConnection
(
url
);
conn
=
getConnection
(
url
);
stat
=
conn
.
createStatement
();
stat
=
conn
.
createStatement
();
...
@@ -563,7 +563,7 @@ public class TestMVTableEngine extends TestBase {
...
@@ -563,7 +563,7 @@ public class TestMVTableEngine extends TestBase {
Statement
stat
;
Statement
stat
;
Statement
stat2
;
Statement
stat2
;
deleteDb
(
getTestName
());
deleteDb
(
getTestName
());
String
url
=
getTestName
()
+
";MV_STORE=TRUE
;MVCC=TRUE
"
;
String
url
=
getTestName
()
+
";MV_STORE=TRUE"
;
url
=
getURL
(
url
,
true
);
url
=
getURL
(
url
,
true
);
conn
=
getConnection
(
url
);
conn
=
getConnection
(
url
);
stat
=
conn
.
createStatement
();
stat
=
conn
.
createStatement
();
...
@@ -593,7 +593,7 @@ public class TestMVTableEngine extends TestBase {
...
@@ -593,7 +593,7 @@ public class TestMVTableEngine extends TestBase {
Statement
stat
;
Statement
stat
;
Statement
stat2
;
Statement
stat2
;
deleteDb
(
getTestName
());
deleteDb
(
getTestName
());
String
url
=
getTestName
()
+
";MV_STORE=TRUE
;MVCC=TRUE
"
;
String
url
=
getTestName
()
+
";MV_STORE=TRUE"
;
url
=
getURL
(
url
,
true
);
url
=
getURL
(
url
,
true
);
conn
=
getConnection
(
url
);
conn
=
getConnection
(
url
);
stat
=
conn
.
createStatement
();
stat
=
conn
.
createStatement
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论