Skip to content

fix: remove empty index segment when committing real segments#7141

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
wkalt:ticket/ent-1632/remove-empty-index-stub
Jun 8, 2026
Merged

fix: remove empty index segment when committing real segments#7141
Xuanwo merged 1 commit into
lance-format:mainfrom
wkalt:ticket/ent-1632/remove-empty-index-stub

Conversation

@wkalt

@wkalt wkalt commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

A 0-fragment index segment is disjoint from every incoming fragment set, so commit_existing_index_segments never removed it and it persisted next to the real segments. A leftover empty segment then breaks load_segment_details, whose index details can disagree with the real segments. Remove an empty existing segment once any real segment is committed.

A 0-fragment index segment is disjoint from every incoming fragment set,
so commit_existing_index_segments never removed it and it persisted next
to the real segments. A leftover empty segment then breaks
load_segment_details, whose index details can disagree with the real
segments. Remove an empty existing segment once any real segment is
committed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added the bug Something isn't working label Jun 7, 2026
@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.14815% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rust/lance/src/index.rs 98.14% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Xuanwo Xuanwo merged commit 0fa8ae6 into lance-format:main Jun 8, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants