Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
edbaf756
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
edbaf756
编写于
3月 14, 2021
作者:
A
alexey-milovidov
提交者:
GitHub
3月 14, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21696 from azat/stress-tests-fixes
Tests fixes (that was found by stress tests)
上级
c9f14052
833dbf12
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
27 addition
and
24 deletion
+27
-24
tests/queries/0_stateless/00966_live_view_watch_events_http.py
.../queries/0_stateless/00966_live_view_watch_events_http.py
+10
-9
tests/queries/0_stateless/00967_live_view_watch_http.py
tests/queries/0_stateless/00967_live_view_watch_http.py
+10
-10
tests/queries/0_stateless/01035_lc_empty_part_bug.sh
tests/queries/0_stateless/01035_lc_empty_part_bug.sh
+1
-1
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables_long.reference
...ncurrent_recreate_reattach_and_show_tables_long.reference
+0
-0
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables_long.sh
...base_concurrent_recreate_reattach_and_show_tables_long.sh
+3
-1
tests/queries/query_test.py
tests/queries/query_test.py
+1
-1
tests/queries/skip_list.json
tests/queries/skip_list.json
+2
-2
未找到文件。
tests/queries/0_stateless/00966_live_view_watch_events_http.py
浏览文件 @
edbaf756
...
...
@@ -28,13 +28,14 @@ with client(name='client1>', log=log) as client1:
client1
.
expect
(
prompt
)
with
http_client
({
'method'
:
'GET'
,
'url'
:
'/?allow_experimental_live_view=1&query=WATCH%20test.lv%20EVENTS'
},
name
=
'client2>'
,
log
=
log
)
as
client2
:
client2
.
expect
(
'.*1
\n
'
)
client1
.
send
(
'INSERT INTO test.mt VALUES (1),(2),(3)'
)
try
:
with
http_client
({
'method'
:
'GET'
,
'url'
:
'/?allow_experimental_live_view=1&query=WATCH%20test.lv%20EVENTS'
},
name
=
'client2>'
,
log
=
log
)
as
client2
:
client2
.
expect
(
'.*1
\n
'
)
client1
.
send
(
'INSERT INTO test.mt VALUES (1),(2),(3)'
)
client1
.
expect
(
prompt
)
client2
.
expect
(
'.*2
\n
'
)
finally
:
client1
.
send
(
'DROP TABLE test.lv'
)
client1
.
expect
(
prompt
)
client1
.
send
(
'DROP TABLE test.mt'
)
client1
.
expect
(
prompt
)
client2
.
expect
(
'.*2
\n
'
)
client1
.
send
(
'DROP TABLE test.lv'
)
client1
.
expect
(
prompt
)
client1
.
send
(
'DROP TABLE test.mt'
)
client1
.
expect
(
prompt
)
tests/queries/0_stateless/00967_live_view_watch_http.py
浏览文件 @
edbaf756
...
...
@@ -27,14 +27,14 @@ with client(name='client1>', log=log) as client1:
client1
.
send
(
'CREATE LIVE VIEW test.lv AS SELECT sum(a) FROM test.mt'
)
client1
.
expect
(
prompt
)
with
http_client
({
'method'
:
'GET'
,
'url'
:
'/?allow_experimental_live_view=1&query=WATCH%20test.lv'
},
name
=
'client2>'
,
log
=
log
)
as
client2
:
client2
.
expect
(
'.*0
\t
1
\n
'
)
client1
.
send
(
'INSERT INTO test.mt VALUES (1),(2),(3)'
)
try
:
with
http_client
({
'method'
:
'GET'
,
'url'
:
'/?allow_experimental_live_view=1&query=WATCH%20test.lv'
},
name
=
'client2>'
,
log
=
log
)
as
client2
:
client2
.
expect
(
'.*0
\t
1
\n
'
)
client1
.
send
(
'INSERT INTO test.mt VALUES (1),(2),(3)'
)
client1
.
expect
(
prompt
)
client2
.
expect
(
'.*6
\t
2
\n
'
)
finally
:
client1
.
send
(
'DROP TABLE test.lv'
)
client1
.
expect
(
prompt
)
client1
.
send
(
'DROP TABLE test.mt'
)
client1
.
expect
(
prompt
)
client2
.
expect
(
'.*6
\t
2
\n
'
)
client1
.
send
(
'DROP TABLE test.lv'
)
client1
.
expect
(
prompt
)
client1
.
send
(
'DROP TABLE test.mt'
)
client1
.
expect
(
prompt
)
tests/queries/0_stateless/01035_lc_empty_part_bug.sh
浏览文件 @
edbaf756
...
...
@@ -8,7 +8,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
${
CLICKHOUSE_CLIENT
}
--multiquery
--query
=
"
DROP TABLE IF EXISTS lc_empty_part_bug;
create table lc_empty_part_bug (id UInt64, s String) Engine=MergeTree ORDER BY id;
create table lc_empty_part_bug (id UInt64, s String) Engine=MergeTree ORDER BY id
SETTINGS number_of_free_entries_in_pool_to_execute_mutation=0
;
insert into lc_empty_part_bug select number as id, toString(rand()) from numbers(100);
alter table lc_empty_part_bug delete where id < 100;
"
--mutations_sync
=
1
...
...
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables.reference
→
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables
_long
.reference
浏览文件 @
edbaf756
文件已移动
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables.sh
→
tests/queries/0_stateless/01294_lazy_database_concurrent_recreate_reattach_and_show_tables
_long
.sh
浏览文件 @
edbaf756
...
...
@@ -70,8 +70,10 @@ function recreate_lazy_func4()
function
test_func
()
{
while
true
;
do
$CLICKHOUSE_CLIENT
-q
"SYSTEM STOP TTL MERGES"
;
for
table
in
log tlog slog tlog2
;
do
$CLICKHOUSE_CLIENT
-q
"SYSTEM STOP TTL MERGES
$CURR_DATABASE
.
$table
"
>
& /dev/null
done
done
}
...
...
tests/queries/query_test.py
浏览文件 @
edbaf756
...
...
@@ -46,7 +46,7 @@ SKIP_LIST = [
"01293_client_interactive_vertical_singleline"
,
# expect-test
"01293_system_distribution_queue"
,
# FLAKY
"01293_show_clusters"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables
_long
"
,
"01294_system_distributed_on_cluster"
,
"01300_client_save_history_when_terminated"
,
# expect-test
"01304_direct_io"
,
...
...
tests/queries/skip_list.json
浏览文件 @
edbaf756
...
...
@@ -396,7 +396,7 @@
"01293_pretty_max_value_width"
,
"01293_show_settings"
,
"01294_create_settings_profile"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables
_long
"
,
"01295_create_row_policy"
,
"01296_create_row_policy_in_current_database"
,
"01297_create_quota"
,
...
...
@@ -681,7 +681,7 @@
"01281_unsucceeded_insert_select_queries_counter"
,
"01293_system_distribution_queue"
,
"01294_lazy_database_concurrent"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables"
,
"01294_lazy_database_concurrent_recreate_reattach_and_show_tables
_long
"
,
"01294_system_distributed_on_cluster"
,
"01296_create_row_policy_in_current_database"
,
"01297_create_quota"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录