Moderate load on local replica (or emulator) lead to canister calls hanging indefinitely
Open
Nobody has claimed this yet.
blocked
bug
triaged
- Dominant language
- Rust
- Stars
- 204
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Install dfx 0.7.0-beta.2
DFX_VERSION=0.7.0-beta.2 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" - Start dfx (issue happens much more quickly when running emulator)
dxf start --emulator - Clone "open chat"
https://github.com/dfinity-lab/open-chat/commit/04162d2a6004221d5ca8ceafb50fb022f6954187 - Build and deploy "open chat" locally
3.1 cd into open-chat
3.2 npm install
3.3 dfx deploy - Open local "website" canister in browser, sign-in, and register a user name
- Repeat step 4 in another browser - say Chrome incognito
- Open chrome dev tools and watch the network tab (open chat polls for new messages)
- After a few minutes you should see the query calls hanging
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the hang with dfx 0.7.0-beta.2, the emulator, and open-chat commit 04162d2a6004221d5ca8ceafb50fb022f6954187; watch the browser network tab after two users register. Investigate why query calls hang under moderate local load, and consider the issue done when those calls remain responsive during the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100