Comments (2)
Here's also a log from our larger system where its difficult to share the code, but you can see what happens. First you get the parser error from the atomic pipeline including timeseries, then you have a broken pipe when r2d2 tries to reuse the connection in a different thread.
2023-11-08T14:51:36.105726Z WARN nucleus::datastore::redis::ts: Problem in timeseries: parse error - ResponseError: Parse error at 34
expected 3 more elements
at lib/nucleus/src/datastore/redis/ts.rs:90 on main-workers ThreadId(27)
2023-11-08T14:51:36.105930Z ERROR r2d2: broken pipe
at /Users/ts/.cargo/registry/src/index.crates.io-6f17d22bba15001f/r2d2-0.8.10/src/lib.rs:121 on main-workers ThreadId(5)
from redis-rs.
Hi @tsmt-iris,
AFAIS parsing errors will always mean that the connection is unusable - the stream from the server contains garbage, and so the parser cannot know when the garbage message ends and where does the next, hopefully correct, message begins. Do you know whether the message from the server actually is malformed, and if so - why? Can this be reproduced with local tests?
Additionally, the issue seems to be at least partially that the connection pool reuses faulty connections. Might this be an issue for the r2d2 crate?
from redis-rs.
Related Issues (20)
- (Async) Cluster: `get_random_connection` can panic HOT 5
- Async Cluster: Connection errors are hard to discover HOT 3
- Async Cluster: AWS Failover takes a long time to recover HOT 6
- `TlsConnParams` is opaque: Intentional? HOT 4
- add sentinel support in readme HOT 2
- Read timeouts on ConnectionManager in aio.rs HOT 6
- Possibly incorrect command ordering for XREADGROUP
- Async PubSub subscription to multiple channels doesn't work HOT 2
- Version 0.25 checklist HOT 1
- Error handling results of con.keys("meta_data:*") command HOT 1
- Pubsub util for rediscluster with async connection in Rust HOT 1
- Slow Redis client after build with release profile under qemu
- Setting and getting raw bytes HOT 4
- Does Client struct support TLS? HOT 4
- StreamReadReply silently discards data HOT 4
- Timeout parameter in .brpop changed from usize to f64 (or similar) HOT 3
- Issues with bytes-based APIs that don't allow iterating over commands
- Get nodes from cluster client HOT 3
- redis 0.23.4 contains a breaking change HOT 4
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 redis-rs.