Giter Site home page Giter Site logo

Comments (2)

tsmt-iris avatar tsmt-iris commented on July 21, 2024

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.

nihohit avatar nihohit commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.