Having issue integrating bloom filter support using JedisPooled #4028
Replies: 5 comments
-
@Ranjeet116966 Provide a short code that reproduces the issue and add the full stacktrace. |
Beta Was this translation helpful? Give feedback.
-
Here is the full stack trace, will provide the code snippet in sometime, Actually i am integrating bloom filter in some gem, that we consume on some other repo, all the config that we need to initialise the connection pool would be passed from consumer end, so will have to create a short code file to replicate the same behaviour
|
Beta Was this translation helpful? Give feedback.
-
Here is the basic code snippet you can refer to, this is how i have also implemented, and i am getting the above error after deploying this code to prod
|
Beta Was this translation helpful? Give feedback.
-
@Ranjeet116966 Couldn't reproduce your issue. Can't even guess what could go wrong within localhost.
|
Beta Was this translation helpful? Give feedback.
-
Reproducing the error is difficult because it's not very frequent, some of the request are passing and some request are failing so error is very inconsistent in my testing env as well.
Will try increasing the |
Beta Was this translation helpful? Give feedback.
-
I am currently working on integrating Bloom filter support into one of our features. For this, I’m using JedisPooled for the Bloom filter-related operations, as I believe Jedis itself doesn’t support these methods. After deploying these changes to production, I'm encountering an error
("Unexpected end of stream" / JedisConnectionException)
on every second request, causing those requests to fail. I’m unsure whether this issue is due to the size of the connection pool or because the timeouts are set too low for Jedis.I am using JedisPooled in the same way it’s mentioned in the README file, where I create an instance of JedisPooled like this and pass the custom config I have:
JedisPooled jedis = new JedisPooled("localhost", 6379);
Then, I issue commands on this
jedis
instance.Here is my current Jedis configuration:
Can someone please take a look and help me understand if i am missing something, and if somehow i can get rid of these errors TIA...
Beta Was this translation helpful? Give feedback.
All reactions