apache / apache/iotdb

[v0.13.0]Tag recover bug after IoTDB server restart

Open
#6,025 4 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

1、create timeseries root.sg.d.s1 with datatype=FLOAT encoding=RLE compressor=SNAPPY
2、alter timeseries root.sg.d.s1 add tags description=oldValue this timeseries MeasurementMNode will changeOffset() and wirte mlog
3、restart server
4、this timeseries MeasurementMNode offset will recover by mlog,but the tagIndex is not recover

![DdvO0E5mJz](https://user-images.githubusercontent.com/14909970/170428126-ef55a079-b975-4869-bb4c-6a5633961efd.jpg)
IoTDB server restart
![he1WRDLi0B](https://user-images.githubusercontent.com/14909970/170428193-0aff29f9-12ee-4a67-b55e-bbbe6bc8f230.jpg)

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported sequence in IoTDB: create the FLOAT timeseries, add the description tag, restart the server, and inspect tag-index recovery. Trace how the MeasurementMNode offset and mlog replay restore state; done means the tag index is available after restart as shown before the restart.

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.