Skip to content

Commit

Permalink
fix(weave_query): Handle stale file handle os errors on table load
Browse files Browse the repository at this point in the history
  • Loading branch information
domphan-wandb committed Jan 14, 2025
1 parent 69e3194 commit 71ce847
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions weave_query/weave_query/ops_domain/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,13 @@ def file_table(file: artifact_fs.FilesystemArtifactFile) -> typing.Optional[Tabl
return Table(_get_table_like_awl_from_file(file).awl)
except FileNotFoundError as e:
return None
# Prevent a panel crash from stale file handle errors
# There are rare stale file handle errors that cause panel crashes as noted:
# https://wandb.atlassian.net/browse/WB-22355
except OSError as e:
import errno
if e.errno == errno.ESTALE:
return None


@op(name="file-partitionedTable")
Expand Down

0 comments on commit 71ce847

Please sign in to comment.