Redis连接的Vertx迁移(3.6.3-> 3.8.1)问题

时间:2019-10-22 06:05:12

标签: redis vert.x

以下conf适用于Vertx 3.6.3,但不适用于3.8.1。

{
  "masterName": "mymaster",
  "maxNestedArrays": 32,
  "maxWaitingHandlers": 2048,
  "netClientOptions": {
    "logActivity": false,
    "receiveBufferSize": -1,
    "reuseAddress": true,
    "reusePort": false,
    "sendBufferSize": -1,
    "trafficClass": -1,
    "crlPaths": [],
    "crlValues": [],
    "enabledCipherSuites": [],
    "enabledSecureTransportProtocols": [
      "TLSv1",
      "TLSv1.1",
      "TLSv1.2"
    ],
    "idleTimeout": 0,
    "idleTimeoutUnit": "SECONDS",
    "soLinger": -1,
    "ssl": false,
    "sslHandshakeTimeout": 10,
    "sslHandshakeTimeoutUnit": "SECONDS",
    "tcpCork": false,
    "tcpFastOpen": false,
    "tcpKeepAlive": true,
    "tcpNoDelay": true,
    "tcpQuickAck": false,
    "useAlpn": false,
    "usePooledBuffers": false,
    "connectTimeout": 60000,
    "metricsName": "",
    "trustAll": false
  },
  "role": "MASTER",
  "type": "STANDALONE",
  "useSlave": "NEVER"
}

在3.8.1中,将其用作RedisOptions时,会出现连接错误:

  | 2019-10-22 05:55:10,720 | ERROR | fleetmanager:RedisUtils.java@lambda$createRedisClient$0@81 | Could not create a redis connection | default | vert.x-eventloop-thread-0 | exstart [io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:6379 
 Caused by: java.net.ConnectException: Connection refused 
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) 
    at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:327) 
    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:336) 
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:685) 
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632) 
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549) 
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511) 
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) 
    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) 
 ] exend |  |EOF

是否缺少任何特定的键/值?

0 个答案:

没有答案