Apache Geode Native Client日志在启动本机客户端时显示连接池错误

问题描述

我们运行一个本机客户端,当客户端启动时,我注意到缓存服务器日志中出现Failed to add endpoint to pool错误。

我使用以下命令设置日志

CacheFactory cacheFactory = new CacheFactory();
return cacheFactory
    .Set("log-file","Geode.log")
    .Set("log-level","ALL")
    .Set("name","Dealer")
    .SetPdxReadSerialized(true)
    .Create();

Geode.log文件显示以下内容:

[info 2020/09/03 12:40:57.906591 GMT Daylight Time ARGO:15580 11876] ClientMetadataService started for pool MyPool2
[debug 2020/09/03 12:40:57.986018 GMT Daylight Time ARGO:15580 25428] SerializationRegistry::deserialize typeId = -1 dsCode =  1
[debug 2020/09/03 12:40:57.986095 GMT Daylight Time ARGO:15580 25428] closing the connection locator1
[debug 2020/09/03 12:40:57.986117 GMT Daylight Time ARGO:15580 25428] closing the connection locator
[fine 2020/09/03 12:40:57.986205 GMT Daylight Time ARGO:15580 25428] Created new endpoint 1.2.3.4:40404 for pool MyPool2
[error 2020/09/03 12:40:57.986256 GMT Daylight Time ARGO:15580 25428] Failed to add endpoint 1.2.3.4:40404 to pool MyPool2
[debug 2020/09/03 12:40:57.986285 GMT Daylight Time ARGO:15580 25428] ThinClientRedundancyManager::maintainRedundancyLevel(): checking redundant list,size = 0
[debug 2020/09/03 12:40:57.986303 GMT Daylight Time ARGO:15580 25428] ThinClientRedundancyManager::maintainRedundancyLevel(): finding nonredundant endpoints,size = 1
[fine 2020/09/03 12:40:57.986321 GMT Daylight Time ARGO:15580 25428] Recovering subscriptions on endpoint [1.2.3.4:40404] from pool MyPool2
[fine 2020/09/03 12:40:57.986339 GMT Daylight Time ARGO:15580 25428] TcrEndpoint::createNewConnection: connectTimeout = m_needToConnectInLock=59000000 appThreadRequest =0
[debug 2020/09/03 12:40:57.986361 GMT Daylight Time ARGO:15580 25428] Tcrconnection const isSecondary = 0 and isClientNotification = 0,this = 00000202EDBAD790,conn ref to endopint 1
[finest 2020/09/03 12:40:57.986438 GMT Daylight Time ARGO:15580 25428] Using socket send buffer size of 64240.
[finest 2020/09/03 12:40:57.986465 GMT Daylight Time ARGO:15580 25428] Using socket receive buffer size of 64240.
[debug 2020/09/03 12:40:57.986482 GMT Daylight Time ARGO:15580 25428] Creating plain socket stream

有人可以解释为什么我们在这里看到错误吗?执行的代码位于ThinClientPoolDM.cpp,但该错误似乎对客户端没有任何影响,我们可以看到确实建立了连接。尽管服务器端点似乎未以error状态添加到池中,但我们在说出fine后发现几乎是一条recovering subscriptions on endpoint消息,它是同一端点。

解决方法

此代码中存在一个长期存在的错误,导致该错误在此处记录失败,反之亦然,这很可能是您遇到的问题。该问题已于2020年4月6日作为GEODE-7930的PR#588的一部分进行了修复。请查看本地存储库中是否有此修复程序,如果有,请回复并仍在解决问题。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...