Add obsolete account test support to geyser#7714
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7714 +/- ##
=======================================
Coverage 83.0% 83.0%
=======================================
Files 812 812
Lines 357076 357088 +12
=======================================
+ Hits 296666 296698 +32
+ Misses 60410 60390 -20 🚀 New features to boost your workflow:
|
6a7e072 to
a25a145
Compare
a25a145 to
e55f2db
Compare
Wdym here, I'm not sure I follow? The test is w.r.t. geyser's account notification at startup from snapshot, so there is no foreground transaction replay nor rpc request handling yet running. |
Will post this here in case anyone is wondering in the future! What I mean to say is that this is simulating scans prior to the restart. It's forcing every slot to be fully flushed and not cleaned so multiple versions of the accounts are guaranteed to be present. In a non RPC validator, not all older version of accounts will be found during replay as they will be cleaned/shrunk etc... |
What do you mean here by "scans"?
Yeah, the test is making storage files for the test. But that's all just the setup, so we can change it to still end up with storages that have duplicates across slots.
I'm not sure I follow this part either. This test is exercising geyser account notifications for startup, which happens before replay begins. |
Modify geyser test to avoid flushing the write cache
Modify geyser test to avoid flushing the write cache
Problem
Geyser tests expect that clean hasn't been run, and it accomplishes this by flushing slots individually. With obsolete accounts, clean is still run in this scenario, leading to a test failure.
Summary of Changes
Fixes #