Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: exception in OptimizeIndex #2499

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update debug info
yangzq50 committed Jan 27, 2025
commit 56f4e7ff88035c1b2cc81c28bbc22f613f7d003b
16 changes: 9 additions & 7 deletions src/storage/meta/entry/segment_index_entry.cpp
Original file line number Diff line number Diff line change
@@ -658,13 +658,15 @@ void SegmentIndexEntry::GetChunkIndexEntries(Vector<SharedPtr<ChunkIndexEntry>>
for (SizeT i = 0; i < num; i++) {
auto &chunk_index_entry = chunk_index_entries_[i];
bool add = chunk_index_entry->CheckVisible(txn);
LOG_INFO(fmt::format("GetChunkIndexEntries, CheckVisible ret: {}, chunk_id: {}, deprecate ts: {}, txn_id: {}, base_rowid: {}, row_count: {}",
add,
chunk_index_entry->chunk_id_,
chunk_index_entry->deprecate_ts_.load(),
txn_id_str,
chunk_index_entry->base_rowid_.ToString(),
chunk_index_entry->row_count_));
LOG_INFO(fmt::format(
"GetChunkIndexEntries, CheckVisible ret: {}, chunk_id: {}, deprecate ts: {}, txn_id: {}, commit_ts: {}, base_rowid: {}, row_count: {}",
add,
chunk_index_entry->chunk_id_,
chunk_index_entry->deprecate_ts_.load(),
chunk_index_entry->txn_id_,
chunk_index_entry->commit_ts_.load(),
chunk_index_entry->base_rowid_.ToString(),
chunk_index_entry->row_count_));
if (add) {
chunk_index_entries.push_back(chunk_index_entry);
}