TiFlash v8.5.8: MergeDelta repeatedly fails with “invalid field index” after a zero-length partial Page read, including after restart
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
- 35/100
Hướng nghiên cứu
Start with the reported read path: Segment::prepareMergeDelta through ColumnFileTiny::fillColumns to Page::getFieldData, then inspect the zero-length branch in BlobStore.cpp around line 891. Compare the persisted PageEntry field offsets with the ColumnFileTiny schema metadata for the referenced Page, using read-only diagnostics before recovery. The issue is resolved when the evidence distinguishes those causes and identifies which Page and schema metadata to preserve.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background MergeDelta repeatedly failed on the same Segment and Page on one TiFlash instance. We counted 2,260 failed attempts in approximately 30 minutes. The same Segment, Page and field-index error appeared again within seconds of a subsequent TiFlash restart.
Environment: TiFlash v8.5.8, engine Git hash reported at restart 3abdec8bff315647a056e6bf910abd4b59af2011, Linux x86-64.
Observed errors (identifiers redacted consistently):
BlobStore.cpp:891
Reading with fields but entry size is 0
page_id=<TABLE_A>.<PAGE_A>
fields=[1, 2]
PageEntry.size=365272
field_offsets begins with [0, 0, 0, 0, ...]
DeltaMergeStore_InternalBg.cpp:452
Execute task on segment failed, task=MergeDelta
segment_id=<SEGMENT_A>
Try to getFieldData with invalid field index
[page_id=<PAGE_A>] [valid=true] [field_index=2]
Failing read path (selected frames):
Segment::prepareMergeDelta
→ Segment::ensurePlace
→ ColumnFileSetReader::readPKVersion
→ ColumnFileTiny::fillColumns
→ Page::getFieldData(2)
The logged PageEntry had a nonzero total size. The zero-length warning occurred on the partial read for fields [1, 2]. In the corresponding BlobStore source, the zero-length branch returns a Page with empty data and no populated field offsets. This explains the subsequent lookup failure. We have not determined how the stored field offsets were produced.
Observed impact: Across three samples spanning about five and a half minutes, Delta rows on the affected Segment increased by 665, reaching approximately 673,000 rows and 463 MiB. The logical Delta ColumnFile count increased by 425, reaching approximately 226,000. The Segment epoch and Stable row count stayed constant across these samples.
Reproduction: The existing affected replica reproduced the error across a process restart. We do not have a procedure to create the original Page state on a fresh cluster.
What read-only diagnostics would help distinguish a problem in the persisted PageEntry field offsets from a mismatch between ColumnFileTiny schema metadata and the referenced Page? We would also appreciate guidance on which Page and schema metadata to preserve before attempting replica recovery.
- Ngôn ngữ chính
- C++
- Star
- 1k
- Fork
- 428
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 100
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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 pingcap/tiflash
-
component/compute type/bug
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Out-of-bounds read in MyDateTime formatting from unvalidated packed valuesCó thể đã có người làm @ChangRui-Ryan đã nhận hôm nay. Đang mởaffects-25.10 affects-26.3 affects-26.9 affects-7.5 affects-8.1 affects-8.5 severity/major type/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
component/storage severity/moderate type/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
pingcap/tiflash#11335 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing validation in JSON constructors, LEFT expressions, and CH-block decodingCó thể đã có người làm @windtalker đã nhận hôm nay. Đang mởtype/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[disagg] Query fails with Code: 11000 NoSuchKey when S3 GC (ScanThenDelete) removes a DMFile that a compute node still readsCó thể đã có người làm @JinheLin đã nhận 6 ngày trước. Đang mởmay-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/moderate type/bug
pingcap/tiflash#11291 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingcap/tiflash
Issue tương tự
-
Độ 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
-
useless statementĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
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 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
grizzlypeak3d/DJV#962 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày