Giter VIP home page Giter VIP logo

Comments (2)

Fraser999 avatar Fraser999 commented on August 30, 2024

I wonder if this could be down to the usage of tmp_path.persist here?

From the docs:

Note: Temporary files cannot be persisted across filesystems. Also neither the file contents nor the containing directory are synchronized, so the update may not yet have reached the disk when persist returns.

I haven't been able to replicate the error, but this would explain the test failure, where the test tries to read the file as soon as download_file has returned Ok.

It seems like there might be a couple of places in init_configs where there's an assumption the downloaded file is immediately available for reading too, so possibly download_file needs to be updated to fsync the folder somehow (not sure if that's viable) or persist changed for a more manual approach where the renamed file gets synced right away.

from nearcore.

nagisa avatar nagisa commented on August 30, 2024

Hm, as far as modern operating systems are concerned, the "may not have yet reached the disk" usually means that the page data may still be in page caches or a writeback queue of some sort. But the OS will consult with these structures when the data is read back to provide a consistent and sequentially ordered view of the file system(s). I believe this may refer to situations where operating system stops executing at all, whether it be a result of a crash or a power loss or a similar such scenario.

from nearcore.

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.