[
https://issues.apache.org/jira/browse/IOTDB-2500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
周沛辰 reassigned IOTDB-2500:
--------------------------
Sprint: 2022-1-Dragon
Assignee: 周沛辰
> [ query & cross-compaction ] cross-compaction stuck
> ---------------------------------------------------
>
> Key: IOTDB-2500
> URL: https://issues.apache.org/jira/browse/IOTDB-2500
> Project: Apache IoTDB
> Issue Type: Bug
> Components: Core/Server
> Affects Versions: 0.13.0-SNAPSHOT
> Reporter: 刘珍
> Assignee: 周沛辰
> Priority: Major
> Attachments: 1643261778656-936-3-34.cross.cross-compaction.log,
> screenshot-1.png, stack_comp_2.out
>
>
> 测试版本:
> https://github.com/apache/iotdb/pull/4983
> 问题描述:
> 查询(2个cli循环执行查询)和跨空间合并 ,并发,跨空间合并完成,没有删除对应的tsfile,合并卡住。
> stack见附件。
> 复现用例:
> 测试机器:私有云32g内存,8cpu。benchmark和iotdb在同一台机器。
> iotdb-env.sh :
> MAX_HEAP_SIZE="16G"
> MAX_DIRECT_MEMORY_SIZE="6G"
> 数据库engine参数默认:
> # enable_seq_space_compaction=true
> # enable_unseq_space_compaction=false
> # enable_cross_space_compaction=true
> 1. benchmark产生乱序数据,配置文件见附件。
> 2.benchmark执行完成后,接着在cli执行下面的4条SQL(整个复制粘贴)
> time ./sbin/start-cli.sh -e "flush "
> nohup sh -x query_unseq_2.sh > 2.log &
> time ./sbin/start-cli.sh -e "select s_0,s_1,s_2,s_3,s_4,s_5 into
> root.db.dev.s_0,root.db.dev.s_1,root.db.dev.s_2,root.db.dev.s_3,root.db.dev.s_4,root.db.dev.s_5
> from root.test.g_0.d_0; "
> time ./sbin/start-cli.sh -e "select count(*) from root.test.g_0.d_0; "
> time ./sbin/start-cli.sh -e "select count(*) from root.db.dev; "
> nohup sh -x query_unseq.sh > 1.log &
> 其中:
> query_unseq.sh为
> #!/bin/bash
> while true
> do
> res=`./sbin/start-cli.sh -e "select count(s_5) from root.test.g_0.d_0
> where s_5='oa6u';"|grep "| "|awk -F '|' '{print $2}'`
> if [ "$res" -ne "998779" ];then
> exit -1
> fi
> done
> query_unseq_2.sh为:
> #!/bin/bash
> while true
> do
> res=`./sbin/start-cli.sh -e "select count(s_5) from root.test.g_0.d_0
> where s_5='cyjC';"|grep "| "|awk -F '|' '{print $2}'`
> if [ "$res" -ne "999318" ];then
> exit -1
> fi
> done
> 1643261778656-936-3-33.tsfile文件没有被删除。
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)