Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live
↧

Spring Redisson Sentinel Error - At least two sentinels are required

I am using Sentinel mode for Redis. I am using Redisson Client version...

View Article


Redis WARNING Memory overcommit must be enabled

I'm running my redis server on a docker container hosted on my local windows machine, but i am unable to store data because of this warningWARNING Memory overcommit must be enabled! Without it, a...

View Article


How to use go-redis to read data which is stored by stringredistemplate in...

The data is stored and can be read by java Spring. But my go client cannot read it.enter image description hereI used redisdb.HGet().Bytes() it doesn't work.And I used raw, err := redisdb.HGet(,...

View Article

Implement Flink Async I/O with Redisson Redis client has caused an error...

I have my Flink app deployed to AWS Managed Flink, while trying to implement async I/O with Redisson (Redis client) to connect to AWS MemoryDB (a Redis Cluster), I got an error (see below). It isn't...

View Article

Image may be NSFW.
Clik here to view.

how to notify the main thread when Redisson failed to renew a lock?

In the implementation of the watchdog in Redisson, if the renewal fails, it will just release the lock and do nothing:That means the main thread doesn't know if it has lost the lock and will continue...

View Article


Sentinel Failed to resolve hostname redis

Dears,I tried to access remote redis cache services from redis sentinel services for high availability. But sentinel server couldnt resolve redis host name.java.net.UnknownHostException: No such host...

View Article

How do I get a brave.Tracing from a micrometer Tracer?

I want to add Redis tracing into Lettuce which only supports Brave from what I can tell.So I want to get this code@Bean(destroyMethod = "shutdown")fun lettuceClientResources(): ClientResources { return...

View Article

why redis client lettuce expire method accept parameter long, but convert to...

enter image description hereenter image description herewhen i use lettuce api expire mehthod, method accept long seconds,but this seconds will convert to int value with function: IntegerArgument.of(n)...

View Article


Using Redis with springboot to flush data in interval to MySQL

I am new to redis (learning now) and need some suggestion on how to better design & use it with springboot application to store messages receiving on every second and on a configured time interval...

View Article


Caching Redis in filter of Gateway service

I have gateway service, I need cached get requests from another service. Caching is doing into gateway filter. I can't resolve problem with caching redis. How I can get response body? Class...

View Article

Spring boot (Redis) LettuceConnectionFactory unable to recover if any node...

I have 4 node cluster machine3 Replica of Redis3 Replica of SentinelDeleting Redis master node LettuceConnectionFactory throws the following error and does not recover from this state and stops all...

View Article

Spring boot native image can not serialize protobuf object

I have a method @Cacheable(value = USER_IDENTITIES_PROTO_CACHE) public UserIdentitiesResponseOuterClass.UserIdentitiesResponse findUserIdentitiesProto(UUID userId) {where...

View Article

Is it right to call subscribe within async context?

I store encryption keys in a Redis database. I want to implement a fallback mechanism to generate keys unless they are already present.What confuses me with a solution I come up with is that I call...

View Article


Performing a task when servers processing is finished

I have different instances of same service running, which are consuming same message (unique message id is part of message) from the queue and updating its internal store. Now there is a requirement to...

View Article

Image may be NSFW.
Clik here to view.

Unable to set up a simple Redis + Spring project: "Java 8 date/time type...

and many thanks for your help in advance! I am trying to set up a simple Spring + Redis project, using IntelliJ, and sadly it just doesn't work.I have checked countless forum posts here, but sadly to...

View Article


the java send entity to redis stream convert to base64

When I tried to send object data to redis stream(Redis Version: 7.0.8) using java(java 11) like this:package com.dolphin.soa.post.common.mq;import com.dolphin.soa.post.model.custom.NicknameEdit;import...

View Article

Redisson ERR command is not allowed

While connecting to Redis using Redisson (3.23.4) getting following error:Caused by: org.redisson.client.RedisException: ERR command is not allowed. channel: [id: 0x7ecad0a8, L:/Redis_IP:51736 -...

View Article


Spring Boot Redis Subscription lost after one master Redis down and another...

I am facing an issue with the Subscription being lost after the Master node gets down and another slave node becomes a master that time it not getting Re-subscribed again.I have a cluster with 3 Redis...

View Article

Image may be NSFW.
Clik here to view.

How do I get the automatic instrumentation of opentelemetry to work with Redis?

I'm trying to get the Redis traces to appear in Jaeger with my Spring Boot that is instrumented withJAVA_TOOL_OPTIONS: "-javaagent:/opentelemetry-javaagent.jar"I'm using Redis with Spring Session in...

View Article

Auto failover handling in cluster mode disabled Redis ElastiCache

I want to understand the failover case from the perspective of node endpoints https://forums.aws.amazon.com/, IP addresses for the casesMaster failover and replica gets promotedReplica failoverThe...

View Article
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>