Giter Club home page Giter Club logo

Comments (8)

martindurant avatar martindurant commented on June 12, 2024

Until #57 is ready, ls on the bucket is fetching the full listing of all keys and their details (98k files), which might take longer than some FUSE timeout.
@asford , are you planning on working on file listing?

from gcsfs.

martindurant avatar martindurant commented on June 12, 2024

I am adding more logging in #67 and any further improvements. In this case, I don't think it would tell you more than that the directly listing had started.

from gcsfs.

asford avatar asford commented on June 12, 2024

#57 includes optimization of the directory listing codepath, so the ls time should be proportional to the number of files in the directory.

@mrocklin I've rebased that pull against the release revision. Would it be possible for you to quickly test git+https://github.com/asford/gcsfs@per_dir_cache in that install to see if it resolves your issue?

from gcsfs.

mrocklin avatar mrocklin commented on June 12, 2024

Sure. Here is an attempt from that branch

mrocklin@carbon:~/workspace/gcsfs$ git checkout per_dir_cache 
Branch per_dir_cache set up to track remote branch per_dir_cache from asford.
Switched to a new branch 'per_dir_cache'

mrocklin@carbon:~/workspace/gcsfs$ python gcsfs/cli/gcsfuse.py pangeo-data gcs
Mounting bucket pangeo-data to directory gcs
Traceback (most recent call last):
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 495, in _wrapper
    return func(*args, **kwargs) or 0
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 693, in readdir
    fip.contents.fh):
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 800, in __call__
    return getattr(self, op)(*args)
  File "/home/mrocklin/workspace/gcsfs/gcsfs/gcsfuse.py", line 57, in readdir
    files = [f.rstrip('/').rsplit('/', 1)[1] for f in files]
  File "/home/mrocklin/workspace/gcsfs/gcsfs/gcsfuse.py", line 57, in <listcomp>
    files = [f.rstrip('/').rsplit('/', 1)[1] for f in files]
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 495, in _wrapper
    return func(*args, **kwargs) or 0
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 693, in readdir
    fip.contents.fh):
  File "/home/mrocklin/Software/anaconda/lib/python3.6/site-packages/fuse.py", line 800, in __call__
    return getattr(self, op)(*args)
  File "/home/mrocklin/workspace/gcsfs/gcsfs/gcsfuse.py", line 57, in readdir
    files = [f.rstrip('/').rsplit('/', 1)[1] for f in files]
  File "/home/mrocklin/workspace/gcsfs/gcsfs/gcsfuse.py", line 57, in <listcomp>
    files = [f.rstrip('/').rsplit('/', 1)[1] for f in files]
IndexError: list index out of range

Also, fwiw that bucket is publicly readable. You should be able to do the same thing locally if you're interested.

from gcsfs.

asford avatar asford commented on June 12, 2024

Great, thanks. This is likely due to a mismatch in how objects & prefixes are matched to files & directories in that patch.

Is there any intention to lift the gcsfuse implementation into a generic interface support s3fs?

from gcsfs.

martindurant avatar martindurant commented on June 12, 2024

@asford , we certainly could implement the same model of fuse for s3fs, and this idea has been mentioned; but there are already several projects around that do that for s3, which may be good enough.

from gcsfs.

martindurant avatar martindurant commented on June 12, 2024

This should now work better

from gcsfs.

martindurant avatar martindurant commented on June 12, 2024

Likely fixed in #67 , #57

from gcsfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.