[Bug] Deleted time series still listed by SHOW TIMESERIES for ~0.8 s after DELETE TIMESERIES returns (python client ITs fail)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- database, testing-qa
Hướng nghiên cứu
The failing checks are in iotdb-client/client-py/tests/integration/test_session.py (line 198) and test_aligned_timeseries.py (line 131), and the reproduction script shows the delay through check_time_series_exists. The cause lies on the server side, in the DELETE TIMESERIES procedure and schema reads on the DataNode, which the issue does not name. Starting point: reproduce the window with the probe, then decide whether to fix the server or make the tests poll with a timeout. Done means the deleted series is gone from SHOW TIMESERIES on the same session, or the tests are reliable under a documented delay.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Search before asking
- I searched in the issues and found nothing similar.
Version
master, dd450f7ede (2026-11-20), 1C1D docker image built with docker/src/main/Dockerfile-1c1d (same setup as the python job of the Multi-Language Client workflow).
Describe the bug and provide the minimal reproduce step
After delete_time_series (DELETE TIMESERIES) returns successfully, SHOW TIMESERIES <path> still returns the deleted series for about 0.8 seconds.
Three python client integration tests check for the deleted series right after deleting it, so they fail intermittently:
tests/integration/test_session.py::test_session(line 198)tests/integration/test_session.py::test_session_pool(line 198)tests/integration/test_aligned_timeseries.py::test_aligned_timeseries(line 131)
They fail with root.sg_test_01.d_0x.s_07 shouldn't exist.
The master CI doesn't show this, because the python job only runs when the root pom.xml, iotdb-client/client-py/ or Dockerfile-1c1d change. PRs that touch the root pom.xml hit it, for example #19350: the job failed 3 of 3 attempts there, and run 44704612573 on another branch failed the same way.
Reproduce:
mvn clean install -pl distribution,iotdb-client/client-py -am -DskipTests
docker build . -f docker/src/main/Dockerfile-1c1d -t iotdb:dev
cd iotdb-client/client-py && pip install -r requirements_dev.txt
pytest tests/integration/test_session.py tests/integration/test_aligned_timeseries.py
Locally (Apple Silicon, Docker 29.9.2), 3 runs against master: 6 of 9 test executions failed.
This probe measures the window directly. Run it from iotdb-client/client-py with tests/integration on the path:
import time
from iotdb_container import IoTDBContainer
from iotdb.Session import Session
from iotdb.utils.IoTDBConstants import TSDataType, TSEncoding, Compressor
with IoTDBContainer("iotdb:dev") as db:
s = Session(db.get_container_host_ip(), db.get_exposed_port(6667))
s.open(False)
for i in range(30):
sg = f"root.p{i}"
s.set_storage_group(sg)
paths = [f"{sg}.d.s{j}" for j in range(3)]
for p in paths:
s.create_time_series(p, TSDataType.INT64, TSEncoding.PLAIN, Compressor.SNAPPY)
s.delete_time_series(paths)
t0 = time.time()
while s.check_time_series_exists(paths[0]): # SHOW TIMESERIES <path>
time.sleep(0.05)
print(f"{sg}: visible for {time.time() - t0:.2f} s after delete returned")
s.close()
What did you expect to see?
Once DELETE TIMESERIES has returned, SHOW TIMESERIES (and other schema reads on the same session) no longer return the deleted series.
What did you see instead?
In 30 of 30 iterations, the deleted series was still listed right after the delete returned. It stayed visible for a median of about 0.8 s (0.69–0.95 s). Only the very first deletion in a fresh container was quick, at about 0.05 s.
Anything else?
I didn't look into where the delay comes from (for example, whether it's the asynchronous part of the deletion procedure or a cache on the DataNode).
Two possible directions:
- If read-after-delete consistency is intended, fix it on the server.
- If the delay is accepted behaviour, change the three tests to poll with a timeout instead of checking once. In that case it should probably be documented as well.
Are you willing to submit a PR?
- I'm willing to submit a PR!
- Ngôn ngữ chính
- Java
- Star
- 6.4k
- Fork
- 1.2k
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 284
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iotdb
-
[Bug] Python NumpyTablet silently drops trailing zero bytes from BLOB valuesCó thể đã có người làm @DaZuiZui đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] sbin/replace-conf-from-env.sh word-splits the whole environment and corrupts iotdb-system.propertiesCó thể đã có người làm @anishmehta24 đã nhận 69 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/iotdb#18655 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
IoTDB Edge: stop-edge.sh does not stop its own process when IOTDB_HOME is set, and reports successCó thể đã có người làm @PDGGK đã nhận 88 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 执行start-all.sh后无法启动集群问题Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] findColumn throws NullPointerException instead of SQLException for an unknown column nameCó thể đã có người làm @PDGGK đã nhận 130 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openhab/openhab-addons#22512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/maven-project-info-reports-plugin#704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/maven-ejb-plugin#261 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/maven-archetype#1086 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày