You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "刘珍 (Jira)" <ji...@apache.org> on 2022/04/26 05:59:00 UTC

[jira] [Created] (IOTDB-3009) [ alter timeseries ] Iotdb hang

刘珍 created IOTDB-3009:
-------------------------

             Summary: [ alter timeseries ] Iotdb hang
                 Key: IOTDB-3009
                 URL: https://issues.apache.org/jira/browse/IOTDB-3009
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Schema Manager
            Reporter: 刘珍
         Attachments: config.properties, iotdb-engine.properties, iotdb-env.sh, log-all-20220425.0.log.gz, log_all.log

master_0425_907c06e
问题描述:
1亿普通序列,insert + alter timeseries , 出现写不进iotdb(第1现象),和 iotdb hang住(第2现象)。

测试流程:
1. 机器信息
192.168.10.68  iotdb/bm  72C256G
MAX_HEAP_SIZE="192G"
MAX_DIRECT_MEMORY_SIZE="32G"
schema_engine_mode=Schema_File
iotdb的配置见附件
2.启动bm启动
配置文件见附件
2022-04-25 15:01:07,028   开始注册存储组,创建序列。
2022-04-25 15:27  1亿序列注册完成。
之后benchmark准备insert的数据,然后insert。

3.alter ts
2022-04-25 16:04:11,804调用脚本执行 alter timeseries
这个脚本的内容是:10个用户并发,每个用户串行执行
"ALTER timeseries ${line} UPSERT ALIAS=alias_${i} TAGS(tag1=tag1_${i}, tag2=tag2_${i}) ATTRIBUTES(attr1=attr1_${i}, attr2=attr2_${i});"
每个用户执行200万条语句,预期共对2000万个序列增加alias,tags,attributes。
在2022-04-25 20:27的时候,insert被hang住(查看wal文件的最后更新时间获知)。
在2022-04-26 05:45:54,整个数据库hang住。共有3324个的alter 语句执行成功。

alter ts的脚本如下:
cat alter_ts.sh
#!/bin/bash
function execute()
{
        i=0
        in_file=$1
        cat ${in_file} | while read line      # cat 命令的输出作为read命令的输入,read读到>的值放在line中
        do
            ./sbin/start-cli.sh -e "ALTER timeseries ${line} UPSERT ALIAS=alias_${i} TAGS(tag1=tag1_${i}, tag2=tag2_${i}) ATTRIBUTES(attr1=attr1_${i}, attr2=attr2_${i});"
           let i++
        done
}

execute xaa  &
execute xab  &
execute xac  &
execute xad  &
execute xae  &
execute xaf  &
execute xag  &
execute xah  &
execute xai  &
execute xaj  &

wait




--
This message was sent by Atlassian Jira
(v8.20.7#820007)