-
Notifications
You must be signed in to change notification settings - Fork 492
db: Open fails with 'open : no such file or directory' #3842
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
Comments
jbowens
added a commit
to jbowens/pebble
that referenced
this issue
Aug 12, 2024
Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path. Fix cockroachdb#3842.
Is #3509 related? |
Duplicate of #3509. |
jbowens
added a commit
to jbowens/pebble
that referenced
this issue
Aug 13, 2024
Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path. Fix cockroachdb#3842.
jbowens
added a commit
that referenced
this issue
Aug 13, 2024
Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path. Fix #3842.
RaduBerinde
pushed a commit
to RaduBerinde/pebble
that referenced
this issue
Jan 21, 2025
Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path. Fix cockroachdb#3842.
RaduBerinde
pushed a commit
that referenced
this issue
Jan 22, 2025
Previously Open with a relative path containing a single element would fail on real filesystems, because Open would attempt to open the empty path. Fix #3842.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If you pass a relative path to Open as "foo", for example, using the pebble command:
it fails with:
This is because mkdirAllAndSyncParents will attempt to open the empty directory.
I think we should actually be syncing the "." or "/", depending on whether the path was relative or absolute, and the MemFS should tolerate it. Currently the MemFS is particular about paths and does not tolerate paths relative to ".".
Jira issue: PEBBLE-238
The text was updated successfully, but these errors were encountered: