Commit fa24ad1
authored
[improve](log) Add segment file info when bitshuffle page corruption detected (#60547)
When bitshuffle page header corruption is detected, the current error
message only shows the corrupted values without any context about which
segment file is affected. This makes debugging very difficult.
This PR adds:
1. File path, page offset, page size, and page index to the error log in
FileColumnIterator::_read_data_page()
2. Enhanced error message in parse_bit_shuffle_header() to include
expected_padding, compressed_size, size_of_element, and data_size
3. Similar logging in IndexedColumnIterator for completeness
Example output after this change:
W20260130 16:40:19 column_reader.cpp:1517] failed to create ParsedPage,
file=/path/to/data/tablet_id/rowset_id.dat, page_offset=12345678,
page_size=65536, page_index=42, error=[INTERNAL_ERROR]num of element
information corrupted, _num_element_after_padding:1364882540,
_num_elements:1197762646, expected_padding:1197762648, ...1 parent 1cdd04c commit fa24ad1
File tree
3 files changed
+18
-6
lines changed- be/src/olap/rowset/segment_v2
3 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
288 | | - | |
289 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
290 | 293 | | |
291 | | - | |
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
1980 | | - | |
1981 | | - | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1982 | 1987 | | |
1983 | 1988 | | |
1984 | 1989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
0 commit comments