-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrades dashmap dependency to v5.5.3 #33659
Conversation
Codecov Report
@@ Coverage Diff @@
## master #33659 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 806 806
Lines 217477 217477
=========================================
- Hits 178026 178003 -23
- Misses 39451 39474 +23 |
I've spun up a node with this PR to see how it fairs. I've added the following secondary index-related CLI args:
@CriesofCarrots Are these args sufficient to have triggered the old issue? |
Based on my foggy recollection, yes, but that kin address is a mint, not a program id. This combo would be more realistic:
Or you could pick one of the spl-token secondary indexes to run with excluding the kin mint. |
#33659 (comment). Ha this is probably the best way to do it. The set of changes they've made is extensive, but most of them are just introducing new APIs. The only big one of note is this one: xacrimon/dashmap#204, but seems to have been baking for a 1.5 years now so hopefully should be ok 🤞 |
Hmmm I believe it was a race condition that happened outside of index generation, but I can't say I 100% remember. Checked some discord messages and couldn't find anything either darn! I think it happened pretty fast though, otherwise I would not have been able to debug it :) We could revert back before my fix and try unpacking an old snapshot, but might not be worth the hassle :) |
This node has been running A-OK for 136 hours. I'm going to restart it with the args from #33659 (comment) and ensure it still runs fine. |
This node has now been running for 7 hours. I'll keep it running too. I'm going to mark this PR as ready for review. If anyone has additional tests they'd like me to run, or folks to review, please let me know. |
I've finally stopped this node (needed it for other dev work). It was running just fine for 168 hours. Here's some metrics over the last 7 days. Seemed pretty stable once hitting steady state. (Note the memory steps at epoch boundaries—that's a separate issue being debugged, and is unrelated to this change.) |
Problem
We use dashmap version 4.0.2, which was released January of 2021. There have been a lot of commits since then1. Some address bugs, some improve performance. Since we rely on dashmap in multiple places, it would be good to pull in those changes.
Equivalently, since dashmap is used in multiple places, we'd like to ensure there's adequate testing time to find any possible regressions. Since the v1.17 was just branched, bumping the version now gives the most testing/soak time.
Summary of Changes
Upgrade dashmap to v5.5.3
Footnotes
https://github.com/xacrimon/dashmap/compare/v4.0.1...v.5.5.3 (note, there's no v4.0.2 tag) ↩