zhouwenqing
zhouwenqing
The redisson-1.2.xsd sentinel-servers should remove the dns-monitoring attribute, because the SingleServerConfig had removed the dnsMonitoring properties for the commit (5c68c38c Nikita on 2018/4/30 at 23:12).
> Which JDK, OS and kernel do you use? #JDK java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)...
According the logs, I find the bug was when the watchdog connect successfully to the redis, but the org.redisson.client.handler.BaseConnectionHandler#channelActive send some init command(AUTH, SELETE, PING...) failed, the watchdog will not...
> @zhwq1216 > > Thanks for your PR. I suggest more easier way to fix that. Could you review it? [44ea59f](https://github.com/redisson/redisson/commit/44ea59f9f60ee0d2f586de7b0a5750c74783a33a) Yes, it's fine.
@mrniko I tested 3.12.5, try to dump the thread stacks, then I found the issue was caused by this commit 65e4d2c7 2021-05-18 00:08:19.685 [redisson-timer-4-1][] ERROR org.redisson.connection.SentinelConnectionManager - Can't execute SENTINEL...
临时解决方法: 评估锁等待数量,调整subscriptionConnectionPoolSize,subscriptionsPerConnection这两个参数,避免锁等待数量达到subscriptionConnectionPoolSize*subscriptionsPerConnection 修改方案1: 修改org.redisson.pubsub.PublishSubscribeService#connect这个类,判断订阅使用的连接数已经达到subscriptionConnectionPoolSize,则直接抛出异常,不再向连接池获取连接。 修改方案2: org.redisson.pubsub.PublishSubscribeService#unsubscribe(org.redisson.client.protocol.pubsub.PubSubType, org.redisson.client.ChannelName) 方法中判断对应的连接已经没有关联的订阅内容了,则把连接还给连接池,由连接池对连接做管理。
> 两种不同分片字段计算出的值是相等的吗 是否相等,这个由使用人自己保证就可以,正常应该是要相等的,写入的时候肯定是用第一个分片字段,一般是查询的时候没有提供第一个分片字段的时候才会用到第二个分片字段。
> https://github.com/MyCATApache/Mycat2 这个动态分片是你说的那种吗 mycat2中的动态分片应该是使用三个维度来确定一个分片信息,还不是我说的这种。比如mycat2例子中的address1表是通过addressname来计算database和table,如果addressname字段没有在查询条件中出现,database和table就无法计算出来了。我想达到的效果是,如果addressname字段没有出现可以通过条件中的其他备选字段,比如city_code来计算database和table信息(假定address1表有city_code字段)。
#2140 和这个功能类似
连接达梦数据库,遇到同样的问题,降级为0.6.71后正常。 连接失败:后端返回了错误。 Failed to read startup line from agent: end of stream. agent process exited with exit code: 1. recent stderr: 错误: 找不到或无法加载主类 com.dbx.agent.dameng.DamengAgent 原因: java.lang.ClassNotFoundException: com.dbx.agent.dameng.DamengAgent