Giter Club home page Giter Club logo

Comments (4)

wacban avatar wacban commented on July 18, 2024

I would propose the following:

  • Introduce an invariant that TAIL <= flat head. This can be enforced by not allowing garbage collection to go beyond the flat head.
  • Lock the flat head for the duration of state snapshot (this is already done, no changes here)
  • Move the flat head to the final block, unless it is locked. This means that it should also be moved on empty chunks.
  • Add a warning if the tail is more than GC_PERIOD + 2 behind head.

from nearcore.

Longarithm avatar Longarithm commented on July 18, 2024

Move the flat head to the final block, unless it is locked

Strictly speaking, flat head can be moved too far before snapshotting is triggered. This is because arbitrary number of chunks in the end of epoch can be missing.

from nearcore.

wacban avatar wacban commented on July 18, 2024

Strictly speaking, flat head can be moved too far before snapshotting is triggered. This is because arbitrary number of chunks in the end of epoch can be missing.

Ah I see. What do we do about it today? Is this the reason why we don't move the flat head on empty chunks? Would it make sense to always move the flat head to the latest new chunk (barring the other invariants)?

from nearcore.

Longarithm avatar Longarithm commented on July 18, 2024

fixed in #11599

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.