vert.x redis关于indexoutofboundsexception的问题

k97glaaz  于 2021-06-07  发布在  Redis
关注(0)|答案(0)|浏览(306)

我在使用vert.x的redis客户端时遇到了一个问题,我会在并发性很高的时候频繁更新redis,但是报告了一个异常

java.lang.IndexOutOfBoundsException: null
    at io.vertx.redis.client.impl.ArrayQueue.offer(ArrayQueue.java:56) 
    at io.vertx.redis.client.impl.RedisClient.lambda$send$10(RedisClient.java:257) 
    at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
    at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) 
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) 
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) 
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497) 
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) 
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

我使用的版本是vertx redis client:3.8.5,我的代码是:

redisApi.hset(getList("key724762801283102234",sn,status) ,result ->{
      if(result.succeeded()){
        logger.info("success);
      }else {
        logger.error("failed");
      }
    });

有什么问题吗?非常感谢你

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题