Skip to content
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

[Bug] lfu cache error in 0.31.0 #4741

Open
2 of 3 tasks
tsudmi opened this issue Jul 5, 2023 · 1 comment
Open
2 of 3 tasks

[Bug] lfu cache error in 0.31.0 #4741

tsudmi opened this issue Jul 5, 2023 · 1 comment
Labels
bug Something isn't working Stale

Comments

@tsudmi
Copy link

tsudmi commented Jul 5, 2023

Bug report

Getting lfu cache error in 0.31.0. The issue doesn't appear in 0.30.0.
I believe something in this PRs broke it:

Relevant log output

Jul 04 10:21:19.414 INFO Done processing trigger, gas_used: 178730037, data_source: Keeper, handler: handleRewardsUpdated, total_ms: 228, transaction: 0x5aa6…e4e6, address: 0xdbb2…5752, signature: RewardsUpdated(indexed address,indexed bytes32,uint256,uint64,uint64,string), sgd: 9, subgraph_id: QmYas9XFKX2TdUPAYg4TUWP6YzxgVnpnrCT1oBKAWZuMA6, component: SubgraphInstanceManager
thread 'QmYas9XFKX2TdUPAYg4TUWP6YzxgVnpnrCT1oBKAWZuMA6[9]' panicked at 'empty cache but total_weight > max_weight', graph/src/util/lfu_cache.rs:282:18
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic_display
   3: core::panicking::panic_str
   4: core::option::expect_failed
   5: graph::util::lfu_cache::LfuCache<K,V>::evict_and_stats
   6: graph::components::store::entity_cache::EntityCache::as_modifications
   7: graph_core::subgraph::runner::SubgraphRunner<C,T>::process_block::{{closure}}
   8: <graph_core::subgraph::runner::SubgraphRunner<C,T> as graph_core::subgraph::runner::StreamEventHandler<C>>::handle_process_block::{{closure}}
   9: <tokio::task::unconstrained::Unconstrained<F> as core::future::future::Future>::poll
  10: tokio::runtime::park::CachedParkThread::block_on
  11: tokio::runtime::handle::Handle::block_on
  12: graph::task_spawn::block_on
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

Linux

@tsudmi tsudmi added the bug Something isn't working label Jul 5, 2023
@tsudmi tsudmi changed the title [Bug] lru cache error in 0.31.0 [Bug] lfu cache error in 0.31.0 Jul 5, 2023
Copy link

github-actions bot commented Jan 9, 2024

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.

@github-actions github-actions bot added the Stale label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant