Skip to content

LanceLakeWriter#close does not clear allFragments#3333

Closed
vamossagar12 wants to merge 2 commits into
apache:mainfrom
vamossagar12:fluss-lancedb-stale-fragments
Closed

LanceLakeWriter#close does not clear allFragments#3333
vamossagar12 wants to merge 2 commits into
apache:mainfrom
vamossagar12:fluss-lancedb-stale-fragments

Conversation

@vamossagar12
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3332

In LanceLakeWriter.java#close(), allFragments still holds references to FragmentMetadata objects. If complete() is called after close(), it would return stale fragments. While the lifecycle should prevent this, clearing the list in close() is defensive best practice.

Brief change log

The fix is simple, clear allFramgments when close() is invoked in LanceLakeWriter.

Tests

Added a unit test

API and Format

Documentation

@vamossagar12
Copy link
Copy Markdown
Contributor Author

@polyzos can you PTAL at this small PR.

@vamossagar12
Copy link
Copy Markdown
Contributor Author

This looks like a non-issue. Closing for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LanceLakeWriter.close() does not clear allFragments

1 participant