-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pindexer: data loss in the dex_ex_batch_swap_traces
table
#5054
Comments
Good flag, I think that makes sense, because we added this table a couple weeks ago, so it would take a reindex to surface older data. If we confirm that's the approximate cause for the gap, then I think we can punt on it for now, and fix it later. |
The relevant logic was added in #4990, which (first) shipped in v0.81.1. Given the regressions we encountered in v1, liberal reindexing was required, the last of which was completed around 2025-01-24. Everything @VanishMax is expecting to see in the pindexer db is a reasonable assumption in my mind. Another reason data could be missing from pindexer is because it wasn't in the source cometbft data. That was actually the specific symptom we observed in #4999, but all signs point to that situation being resolved across our data sources. Today, I'll rerun a pindexer-only reindexing batch, using v1.0.1, which should take just a few hours. That's distinct from a full event reindex, which takes on the order of a day. |
I don't think it's important to do today vs. everything we have to do: LQT upgrade, Noble testing, etc. If it's really that small of a hanging fruit, go for it, but otherwise feel free to focus on something else. |
Done, and sadly, same behavior on the query that @VanishMax shared: I get no hits. Further debugging should inspect whether the raw cometbft database includes the necessary data for pindexer to construct the swap traces. If it doesn't, there's the problem in the data layer. If it does, perhaps the pindexer impl overlooks some edges cases. The former is more likely in my mind but we need to substantiate it either way. |
Describe the bug
Some old swaps are not stored in pindexer. In my personal mainnet account, I have a UM-USDC swap at height 2732174. However, pindexer has no swaps at heights between 2730000 and 2736000. The nearest swap in pindexer is at 2736015, 3838 blocks from my swap.
To Reproduce
Make a similar SQL query:
Expected behavior
Every swap, old or new, has a corresponding row in pindexer.
Additional context
Relates to penumbra-zone/dex-explorer#337
The text was updated successfully, but these errors were encountered: