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/07/14 02:35:00 UTC

[jira] [Commented] (IOTDB-3813) [ stop-server.sh & compaction ] [pool-8-IoTDB-Compaction-6] ERROR o.a.i.t.r.TsFileSequenceReader:1089 - Exception happened while reading chunk of xx ; java.nio.channels.ClosedByInterruptException: null

    [ https://issues.apache.org/jira/browse/IOTDB-3813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566588#comment-17566588 ] 

刘珍 commented on IOTDB-3813:
---------------------------

{color:red}对齐序列+ template {color},stop-server.sh,iotdb进程不退出:
1. benchmark运行附件中的脚本:insert_is_overflow.config.properties
2. benchmark写入完成,调用脚本停止数据库:
先执行flush
start-cli.sh -e "flush"
再调用,sleep 1秒,如果iotdb进程还存在,就kill -9 :
stop-server.sh
sleep 1
iotdb_pid=`jps|grep IoTDB |awk '{print $1}'`
if [ "${iotdb_pid}x" = "x" ];then
   echo "stop iotdb server successed."
else
   echo "stop iotdb server failed."
   echo "stop iotdb server failed." >> ${iotdb_dir}/logs/stop_iotdb.log
   kill -9 ${iotdb_pid}
fi


> [ stop-server.sh & compaction ] [pool-8-IoTDB-Compaction-6] ERROR o.a.i.t.r.TsFileSequenceReader:1089 - Exception happened while reading chunk of  xx ; java.nio.channels.ClosedByInterruptException: null
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IOTDB-3813
>                 URL: https://issues.apache.org/jira/browse/IOTDB-3813
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Compaction
>    Affects Versions: 0.13.1-SNAPSHOT
>            Reporter: 刘珍
>            Assignee: Liuxuxin
>            Priority: Major
>         Attachments: config.properties, insert_is_overflow.config.properties, iotdb_进程不退出_log_all.log, log_all.log
>
>
> rel/0.13 89d750ca2b2e9ece690e28cbb189be655c0a80e3
> 读写混合操作,写入顺序数据(对齐序列),正常停止iotdb 报错:
> 2022-07-13 11:24:52,009 [pool-8-IoTDB-Compaction-6] ERROR o.a.i.t.r.r.LocalTsFileInput:92 - Error happened while reading ./sbin/../data/data/sequence/root.test.g_7/0/0/1657682342332-63-0-0.tsfile from position 4420777
> 2022-07-13 11:24:52,011 [pool-8-IoTDB-Compaction-6] ERROR o.a.i.t.r.TsFileSequenceReader:1053 - Exception happened while reading chunk header of ./sbin/../data/data/sequence/root.test.g_7/0/0/1657682342332-63-0-0.tsfile
> java.nio.channels.ClosedByInterruptException: null
>         at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
>         at sun.nio.ch.FileChannelImpl.readInternal(FileChannelImpl.java:746)
>         at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:727)
>         at org.apache.iotdb.tsfile.read.reader.LocalTsFileInput.read(LocalTsFileInput.java:90)
>         at org.apache.iotdb.tsfile.file.header.ChunkHeader.deserializeFrom(ChunkHeader.java:177)
>         at org.apache.iotdb.tsfile.read.TsFileSequenceReader.readChunkHeader(TsFileSequenceReader.java:1051)
>         at org.apache.iotdb.tsfile.read.TsFileSequenceReader.readMemChunk(TsFileSequenceReader.java:1083)
>         at org.apache.iotdb.tsfile.read.TsFileAlignedSeriesReaderIterator.nextReader(TsFileAlignedSeriesReaderIterator.java:64)
>         at org.apache.iotdb.db.engine.compaction.inner.utils.AlignedSeriesCompactionExecutor.execute(AlignedSeriesCompactionExecutor.java:122)
>         at org.apache.iotdb.db.engine.compaction.inner.utils.InnerSpaceCompactionUtils.compactAlignedSeries(InnerSpaceCompactionUtils.java:147)
>         at org.apache.iotdb.db.engine.compaction.inner.utils.InnerSpaceCompactionUtils.compact(InnerSpaceCompactionUtils.java:80)
>         at org.apache.iotdb.db.engine.compaction.inner.sizetiered.SizeTieredCompactionTask.doCompaction(SizeTieredCompactionTask.java:122)
>         at org.apache.iotdb.db.engine.compaction.task.AbstractCompactionTask.call(AbstractCompactionTask.java:69)
>         at org.apache.iotdb.db.engine.compaction.task.AbstractCompactionTask.call(AbstractCompactionTask.java:39)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> 复现流程
> 1. 192.168.10.68 72C256G
> 数据库默认配置参数。
> 2. bm 运行附件中的脚本(对齐序列)
> 3. bm写入完成,正常停止数据库
> ./sbin/stop-server.sh
> 有error。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)