Comments (4)
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.
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.
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.
fixed in #11599
from nearcore.
Related Issues (20)
- Set up a GCP image with initial state for FT benchmark HOT 1
- test_features used for adversarial features
- Investigate why RPCs receive witnesses
- [state sync][bug] Cancel old state sync if node is started in the new epoch.
- Reduce used crates for public libraries
- Stateless Validation launch doomsday scenarios
- Idea: ponder making wasmtime the primary backend
- Testing for switching from memtries to disktries
- Export chunk validator endorsement information as prometheus metrics
- [Tracking issue] Measure performance improvements of stateless validation on FT benchmark HOT 1
- Add shard_id to the near_transaction_processed_total metric HOT 1
- Monthly issue metrics report
- [Forknet][BUG] state-dumper nodes cannot start when forknet is initialized with congestion control HOT 1
- Do not record the CONGESTION_RECEIPT_FORWARDING_UNUSED_CAPACITY_GAS metric to the same shard
- MissingTrieValue in memtries-to-disktries switch nayduck test HOT 1
- fix test_full_estimator HOT 2
- Unify transaction validation in chunk producer and chunk validator code paths
- Consider moving transaction signature verification to a different thread
- Migrate transaction API to send_tx in nayduck tests
- bps slow and cannot catch up the latest block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nearcore.