8000 db: Open fails with 'open : no such file or directory' · Issue #3842 · cockroachdb/pebble · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Closed
jbowens opened this issue Aug 12, 2024 · 2 comments
Closed

db: Open fails with 'open : no such file or directory' #3842

jbowens opened this issue Aug 12, 2024 · 2 comments
Labels
A-storage C-bug Something isn't working P-3 Issues/test failures with no fix SLA T-storage

Comments

@jbowens
Copy link
Collaborator
jbowens commented Aug 12, 2024

If you pass a relative path to Open as "foo", for example, using the pebble command:

./pebble bench ycsb --workload=A --num-ops 1 --initial-keys 1000000000 foo

it fails with:

error opening database at "foo": open : no such file or directory

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

@jbowens jbowens added C-bug Something isn't working T-storage A-storage P-3 Issues/test failures with no fix SLA labels Aug 12, 2024
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.
@RaduBerinde
Copy link
Member

Is #3509 related?

@itsbilal
Copy link
Contributor

Duplicate of #3509.

@itsbilal itsbilal closed this as not planned Won't fix, can't repro, duplicate, stale Aug 13, 2024
@github-project-automation github-project-automation bot moved this from Incoming to Done in [Deprecated] Storage Aug 13, 2024
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
Labels
A-storage C-bug Something isn't working P-3 Issues/test failures with no fix SLA T-storage
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants
0