apache / apache/iotdb

TsFile对齐时间序列写入writeAligned(TSRecord record),当触发flushAllChunkGroups后加入新指标写入报错[Bug]

Open
#8,315 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

0.13.3

### Describe the bug and provide the minimal reproduce step

TsFile对齐时间序列写入writeAligned(TSRecord record),当触发flushAllChunkGroups后加入新指标写入报错。
我看到是有对时间序列的验证,为什么要加这个验证,如图
![image](https://user-images.githubusercontent.com/52025735/205428277-e3d0ac92-11fe-4a38-ba4f-a024c39199da.png)

### What did you expect to see?

正常插入

### What did you see instead?

![image](https://user-images.githubusercontent.com/52025735/205428235-9226d46a-838a-47d4-a6b1-fa1965769974.png)

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start at the TsFile writeAligned(TSRecord record) entry point and inspect the time-series validation involved after flushAllChunkGroups. Reproduce the reported sequence by flushing all chunk groups, then adding a new measurement, and compare the resulting error with the expected normal insertion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.