apache / apache/iotdb

[Bug] 树模型和表模型存在相同的数据库名称,会导致树模型的数据无法写入磁盘

Open
#16,774 1 comment 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

树模型和表模型存在相同的数据库名称,好像会导致树模型的数据无法写入磁盘。通过last 查询最新一条数据是最新的,但是查询列表并不是最新数据。

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

1、在表模型创建root 数据库,在树模型中也创建root 数据库
2、通过sql 插入数据到树模型的root 数据库中
3、通过last 查询 和普通查询会发现数据不一致

### What did you expect to see?

期望看到 last 查询和查询列表的 数据是同一时间的

### What did you see instead?

last 查询 是最新的数据,普通列表查询的最新数据还是旧的数据

### 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 by reproducing the conflict between a tree-model and table-model database named root, inserting tree-model data through SQL, then comparing last and ordinary list queries. Trace the write path and the two query paths for this shared database name. Done means both query forms return the same latest data and the regression is covered by a test.

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.