Skip to content

Conversation

@bobbai00
Copy link
Contributor

This PR fixes the size retrieving when constructing the DatasetFileNode. As PhysicalFileNode already has the file size, this file size will be directly reused, instead of using file system's API to read the size.

The bug that, when deleting some files to create a new dataset version, the old version's file tree cannot retrieved correctly because the code tries to retrieve the file size using file system's API, but the file does not physically exist anymore.

@bobbai00 bobbai00 added bug fix refactor Refactor the code labels Oct 28, 2024
@bobbai00 bobbai00 requested a review from kunwp1 October 28, 2024 05:59
@bobbai00 bobbai00 self-assigned this Oct 28, 2024
Copy link
Contributor

@kunwp1 kunwp1 left a comment

Choose a reason for hiding this comment

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

Left a comment! Thanks!

@bobbai00 bobbai00 requested a review from kunwp1 October 28, 2024 14:20
Copy link
Contributor

@kunwp1 kunwp1 left a comment

Choose a reason for hiding this comment

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

Looks good!

@bobbai00 bobbai00 merged commit 5066d6e into master Oct 28, 2024
@bobbai00 bobbai00 deleted the jiadong-fix-file-size-fetching branch October 28, 2024 15:51
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
…he file system (#2974)

This PR fixes the size retrieving when constructing the DatasetFileNode.
As `PhysicalFileNode` already has the file size, this file size will be
directly reused, instead of using file system's API to read the size.

The bug that, when deleting some files to create a new dataset version,
the old version's file tree cannot retrieved correctly because the code
tries to retrieve the file size using file system's API, but the file
does not physically exist anymore.

---------

Co-authored-by: Chris <143021053+kunwp1@users.noreply.github.com>
@Yicong-Huang Yicong-Huang removed the bug label Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants