graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

[Bug] Load Related requests not determinsitc

Open incrypto32 opened this issue 9 months ago • 0 comments

Bug report

Summary When a subgraph uses store.loadRelated, the behavior appears to be non-deterministic. This issue was discovered while investigating a POI discrepancy for the subgraph QmY32QJUP63ePXrKJHb67gpTtTwvHRDoCCAi7NavYCfVDV.

Issue Details The number of entities retrieved from the database and the queue varies across different runs. The issue is difficult to pinpoint as it is not reproducible at the exact same block. Custom trace logs were added to diagnose the discrepancy (see attached diff), but the root cause remains unidentified.

Next Steps Further investigation is needed to determine the cause of this inconsistency. Since the behavior is not consistently reproducible, we may need to introduce additional logging or controlled test scenarios to capture more insights.

Image

Relevant log output

QmY32QJUP63ePXrKJHb67gpTtTwvHRDoCCAi7NavYCfVDV

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.
  • [x] I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

None

incrypto32 avatar Mar 04 '25 09:03 incrypto32