Questions tagged [redisson]

Redisson - distributed Java objects and services (Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, CountDownLatch, Publish / Subscribe, Bloom filter, Remote service, Spring cache, Executor service, Live Object service, Scheduler service) on top of Redis server

370 questions
1
vote
1 answer

How to mock elasticcache(redis) server in Karate using FeatureServer

I am having redis hosted on AWS using Elastic Cache. I am using Redisson library as a client to access the redis. I am using apis like getAll() etc to query the cache. I am using endpoint like below in the client. My doubt is how do I test this in…
ghostrider
  • 2,046
  • 3
  • 23
  • 46
1
vote
1 answer

Unexpected error occurred in scheduled task, None of slaves were synced - Java/Spring/Redis

Applying locks on kafka events using redis so that same kafka event will not process by multiple pods. java.lang.IllegalStateException: None of slaves were synced …
1
vote
1 answer

IllegalMonitorStateException - Attempt to unlock read lock, not locked by current thread, but I don't know why

RLock lock = lockService.getLock(TOPICNAME_LOCK_PREFIX + topicPrefix); if (lock.tryLock(5, TimeUnit.SECONDS)) { try { // Process business CODE } catch (Exception e) { throw new…
ShawnChen
  • 31
  • 2
1
vote
1 answer

Not able to add the objects to redisson map of queue

I recently started exploring redisson for one of the use-case, where the map should hold string & queue of pojo objects. I tried to add the objects to queue for a particular key but when I'm retrieving it's values, it is giving empty results. …
Rajeev
  • 183
  • 2
  • 10
1
vote
1 answer

RuntimeException: class not found CLASSNAME while using parallel stream on EKS and reading data from redis cache using redisson

I am trying to run parallel stream and each block of code under one execution makes hundreds of call to redis cluster (AWS Elasticache), but it's failing with below error on EKS cluster whereas same code works well on Windows…
Sunil Chauraha
  • 525
  • 1
  • 7
  • 21
1
vote
0 answers

Unable to write command into connection Redisson

We are using Redisson verson 3.14.1, and we are getting 30k messages per second. While doing so, we get the error with the trace Caused by: org.redisson.client.WriteRedisConnectionException: Unable to write command into connection! Node source:…
shivam oberoi
  • 237
  • 4
  • 8
1
vote
0 answers

Redisson not supporting multiple shards in community version

We are using redisson client for Redis. But it doesn’t support multiple shards in community version . The support is there in pro version. Now I am stuck as all the data is going to one shard ultimately causing memory issue. Please suggest if Any…
NeetaS_72
  • 75
  • 6
1
vote
0 answers

Redisson - Is it possible to index arrays in Redisson Live Object based on member elements?

I have objects that looks like @REntity class Product { @RId String name; @RIndex String[] tags; // ["foo", "bar", ...] ... } How can I query all objects having foo as one of the tags using Redisson Live Object Service?
1
vote
0 answers

ReadWriteLock downgrading not working as expected

I am new to Redisson and tried to implement a ReadWriteLock downgrade but after doing the release of the writeLock, Redisson is not renewing the lock even when there is still a readlock and after 30 seconds the readlock is gone. I created a simple…
1
vote
1 answer

org.redisson.client.handler.PingConnectionHandler$1.run(PingConnectionHandler.java:79)

I am using redisson api 'org.redisson:redisson:3.13.6' to consume redis(redis 6.2.5) stream in my java project. After running for months. shows error: [02:45:28:123] [ERROR] -…
Dolphin
  • 29,069
  • 61
  • 260
  • 539
1
vote
0 answers

Delete keys from RLocalCachedMap by pattern without unmarshalling values

I have two services, A and B. Service A is a service that exposes an API users can use to configure the system and service B processes records according to configuration from service A. Service B uses a RLocalCachedMap to cache various aspects of…
1
vote
0 answers

How to mock a parameter which is not passed to constructor but derived?

I am trying to unit test my redis map cache, the class has the following implementation: public class ProductCacheTemplate extends CacheTemplate { private RMapReactive map; public…
1
vote
0 answers

Redis Cache (Redisson Client) not getting updated with DB (Mysql, Hibernate) updates

I am able to cache the DB entity, but when I update it and do a get call to the same entity, I receive the stale the entity in response. Am I missing come configuration here? BTW I am trying to implement L2 cache to be used by hibernate for…
1
vote
0 answers

Redisson RLocalCachedMap doesnt sync

I use redisson RLocalCachedMap with syncStrategy(LocalCachedMapOptions.SyncStrategy.UPDATE) in my application. I have 3 instances of application running in 3 container's. I was expecting the RLocalCachedMap count to match in all container but the…
eprabab
  • 101
  • 6
1
vote
1 answer

Is it possible to store Objects in redis against Lock key while Acquiring redisson Distributed Locks

We are using redisson's distributed locks in order to avoid concurrency issue in our distributed environment but while acquiring the lock I also want to save some meta data like userId (random UUID) to know who acquired the lock, but the contingency…
AMAN GUPTA
  • 11
  • 1