Comments (4)
REDISSION VERSION : 3.26.0 @mrniko I saw similar thread with older version too. but the with latest too i am seeing
from redisson.
Unable to reproduce with the test below.
RRateLimiter rr = redisson.getRateLimiter("test");
assertThat(rr.trySetRate(RateType.OVERALL, 10, 1, RateIntervalUnit.SECONDS)).isTrue();
Queue<Long> queue = new ConcurrentLinkedQueue<Long>();
AtomicLong counter = new AtomicLong();
ExecutorService pool = Executors.newFixedThreadPool(8);
for (int i = 0; i < 8; i++) {
pool.execute(new Runnable() {
@Override
public void run() {
while (true) {
if (rr.tryAcquire(100, TimeUnit.SECONDS)) {
if (counter.incrementAndGet() > 500) {
break;
}
queue.add(System.currentTimeMillis());
}
try {
Thread.sleep(ThreadLocalRandom.current().nextInt(10));
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
});
}
pool.shutdown();
assertThat(pool.awaitTermination(1, TimeUnit.MINUTES)).isTrue();
int count = 0;
long start = 0;
for (Long value : queue) {
if (count % 10 == 0) {
if (start > 0) {
assertThat(value - start).isGreaterThan(940);
}
start = value;
}
count++;
}
What is missed?
from redisson.
Can you try attached version?
redisson-3.30.1-SNAPSHOT.jar.zip
from redisson.
Fixed
from redisson.
Related Issues (20)
- Support unlinkByPattern HOT 1
- Execute lua script on all nodes without providing key
- Remote service exception on shutdown
- Redis search get index info offset_bits_per_record_avg format exception HOT 1
- java.net.MalformedURLException: Invalid host: [[fd00:177:177:0:fea4:85b:8409:c4cc] HOT 1
- Not able to find how to do blocking group reads from Redis Streams
- RedissonKeys.getKeysByPattern method add 'type' parameter support
- Add RMapCacheNative implementation which uses Redis 7.4+ commands HOT 1
- Memory consumption is very high, possible memory leak with io.netty.channel.DefaultChannelHandlerContext HOT 5
- Connecting to a sentinel Redis 6.2.7 server fails with NOAUTH Authentication required.. channel HOT 1
- As for the outdated class RedissonRedLock , can I continue to use it, or what methods have I used to replace it?
- How to use QueryOptions of RSearch, no example to show how to fill options.params HOT 1
- 从3.17.0升级到3.28.0后,所有缓存的对象序列化都失败了 HOT 4
- Is there any way to pipeline the RPermitExpirableSemaphore.release() command?
- redission Unable to send command HOT 6
- Inconsistent Behavior of fastRemove with Uninitialized Local Caches
- When high concurrent requests may cause connection leak HOT 2
- The redis three-master and three-slave clusters often perform active/standby switchover. As a result, the redisson client may report an error (MOVED), which affects services HOT 1
- Connection RST causes "Command execution timeout for command: (CLUSTER NODES)"
- When I use new CompositeCodec(StringCodec.INSTANCE, new TypedJsonJacksonCodec(Member.class));how can the RMap get value be correctly converted to a Java object?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redisson.