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

[Dataset] Resolving the 'Illegal seek' error #2509

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srdfjy
Copy link
Contributor

@srdfjy srdfjy commented Apr 30, 2024

When handling network resources, it is necessary to open tar files using the mode 'r|' instead of 'r:', as the former does not attempt seek operations and is suitable for sequential reading.

@xingchensong
Copy link
Member

when will illegal seek happen?

@xingchensong
Copy link
Member

seems there has a conflict #2301 (comment)

@srdfjy
Copy link
Contributor Author

srdfjy commented May 4, 2024

When using shard mode, an "illegal seek" error can occur.

@xingchensong
Copy link
Member

When using shard mode, an "illegal seek" error can occur.

I use shard for all my exps, and i never meet this issue

@srdfjy
Copy link
Contributor Author

srdfjy commented May 9, 2024

When using shard mode, an "illegal seek" error can occur.

I use shard for all my exps, and i never meet this issue

This error occurs when using HTTP+Shard during the reading of a tar file (tar_file_and_group -> tarfile.open).

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.

2 participants