You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by 南京大学软件学院薛恺丰 <82...@qq.com> on 2020/02/26 08:21:14 UTC
回复:[jira] [Created] (IOTDB-524) Sequence File's order isn't right
Hi~
I'm working on this issue and it will be fix soon. XD
------------------ 原始邮件 ------------------
发件人: "Yuan Tian (Jira)"<jira@apache.org>;
发送时间: 2020年2月26日(星期三) 下午4:20
收件人: "dev"<dev@iotdb.apache.org>;
主题: [jira] [Created] (IOTDB-524) Sequence File's order isn't right
Kaifeng Xue created IOTDB-524:
---------------------------------
Summary: Sequence File's order isn't right
Key: IOTDB-524
URL: https://issues.apache.org/jira/browse/IOTDB-524
Project: Apache IoTDB
Issue Type: Bug
Reporter: Kaifeng Xue
In StorageGroupProcessor, we order sequence file as this:
```
private TreeSet<TsFileResource> sequenceFileTreeSet = new TreeSet<>(
(o1, o2) -> {
int rangeCompare = o1.getFile().getParentFile().getName()
.compareTo(o2.getFile().getParentFile().getName());
return rangeCompare == 0 ? compareFileName(o1.getFile(), o2.getFile()) : rangeCompare;
});
```
We use string comparison rather than number comparison. That's will cause "10" is smaller than "9". Which is a bug
--
This message was sent by Atlassian Jira
(v8.3.4#803005)