Code Monkey home page Code Monkey logo

Comments (10)

tishun avatar tishun commented on September 27, 2024

Hey @zafir-zhong ,
are you sure this issue does not belong to the spring-data-redis?
From the information you've provided it is hard to understand what is going wrong.
Could you provide a minimal sample so we can investigate further?

from lettuce.

zafir-zhong avatar zafir-zhong commented on September 27, 2024

I am unable to reproduce this issue stably, but it always occurs sporadically.And, in the exception stack, only the relevant information of Lettuce can be seen.
it happen when gateway listen a message {"apps":[“D3sX4"],"status": 2} from redis,and causing the service to be unable to read data from Redis

from lettuce.

zafir-zhong avatar zafir-zhong commented on September 27, 2024

Can you provide some suggestions on when Lettuce may throw this exception?
Now all I know is that the service malfunctioned after receiving a Redis message

from lettuce.

tishun avatar tishun commented on September 27, 2024

Can you provide some suggestions on when Lettuce may throw this exception? Now all I know is that the service malfunctioned after receiving a Redis message

This message means that the Lettuce driver is not set up to process the message that was returned. Each command has an implementation of the CommandOutput associated to it, to help parse the response from the server. In your case this is a ValueOutput. The ValueOutput does not handle long values and thus the processing fails.

Now why we are receiving the wrong value is a question I can't answer.

What type of serialization are you using for your ReactiveRedisTemplate?
Are messages of mixed type expected on this channel?
What is the purpose of this code?

from lettuce.

tishun avatar tishun commented on September 27, 2024

I am unable to reproduce this issue stably, but it always occurs sporadically.And, in the exception stack, only the relevant information of Lettuce can be seen. it happen when gateway listen a message {"apps":[“D3sX4"],"status": 2} from redis,and causing the service to be unable to read data from Redis

Have you asked your question in the spring-data-redis ?

from lettuce.

zafir-zhong avatar zafir-zhong commented on September 27, 2024

Can you provide some suggestions on when Lettuce may throw this exception? Now all I know is that the service malfunctioned after receiving a Redis message

This message means that the Lettuce driver is not set up to process the message that was returned. Each command has an implementation of the CommandOutput associated to it, to help parse the response from the server. In your case this is a ValueOutput. The ValueOutput does not handle long values and thus the processing fails.

Now why we are receiving the wrong value is a question I can't answer.

What type of serialization are you using for your ReactiveRedisTemplate? Are messages of mixed type expected on this channel? What is the purpose of this code?

use jason serialization
I didn't find any of my own code in the exception message, so I can't actually confirm which line of code caused it

from lettuce.

zafir-zhong avatar zafir-zhong commented on September 27, 2024

I am unable to reproduce this issue stably, but it always occurs sporadically.And, in the exception stack, only the relevant information of Lettuce can be seen. it happen when gateway listen a message {"apps":[“D3sX4"],"status": 2} from redis,and causing the service to be unable to read data from Redis

Have you asked your question in the spring-data-redis ?

i try it now.

from lettuce.

mp911de avatar mp911de commented on September 27, 2024

Looks like a variant of #2175

from lettuce.

tishun avatar tishun commented on September 27, 2024

Looks like a variant of #2175

Do you think it is more likely a problem of the driver or the way spring-data-redis uses it?
I am trying to see a pattern myselft, but I see we also have instances of this issue manifested when the driver is used standalone.

from lettuce.

mp911de avatar mp911de commented on September 27, 2024

Impossible to say without a reproducer. The listenToChannel(…) method effectively SUBSCRIBEs to a channel with a PubSubOutput. Given the exception above that mentions ValueOutput, there's a gap that only a reproducer can describe.

from lettuce.

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.