Comments (4)
I remember reproducing this when you posted it, but I can't reproduce it anymore. It's possible that it was fixed via #76. Can you test it again?
from mini-redis.
It still fails for me unfortunately.
I know there are reasons for the timer auto-advancing, but from the point of view of the test writer it's surprising. I would expect that once tokio::time::pause()
is called in the test, the test is then fully responsible for controlling the advancement of the timer and avoiding deadlocks. Maybe a tokio::time::pause_no_advance()
would be useful.
from mini-redis.
This is still happening. My toolchain
➜ mini-redis git:(master) ✗ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/tonyx/.rustup
installed toolchains
--------------------
stable-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin
active toolchain
----------------
stable-x86_64-apple-darwin (default)
rustc 1.58.0 (02072b482 2022-01-11)
I tried to debugged it a bit and found the code hangs in waiting to read the "world" back. Under further investigation I realized that the key in the DB is gone so the server returned -1
and that's why the read_exact call hangs (expecting more bytes).
stream.read_exact(&mut response).await.unwrap();
I was not able to come up with a solution but I would really appreciate if we can fix this. mini-redis is still the tutorial used by tokio official website. Newcomers would love to play around with it :) let's fix it!
from mini-redis.
For the record, this test works if executed alone. It still hangs with --test-threads=1
. So apparently tests within this file can affect each other.
from mini-redis.
Related Issues (20)
- The `chat` example is empty HOT 2
- Potential bug in read_frame if we receive 2 frames ready in the buffer? HOT 1
- Benches for mini-redis HOT 2
- why is `frame` serialized to string should be removed the first element?
- Using BTreeSet instead of BTreemap HOT 1
- The `Frame::Integer` should be signed 64-bit integer HOT 2
- panic in VSCode terminal HOT 1
- Fails when install mini-redis with the latest rustc version HOT 1
- theoretically bug in db.set method? HOT 2
- Why itparsing is set to fail when frame is not array?
- dtrace user stacks not generating HOT 1
- Release
- failed to load macro HOT 1
- how to config memory to be used? HOT 3
- Confusing use of `notify` HOT 4
- updates? HOT 6
- Question: `shutdown_complete_rx` never used in the `Listner` HOT 2
- Fails with Latest Rust HOT 1
- bug in implementation of display for frame
- Add (optional) OpenTelemetry + Xray integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini-redis.