提问者:小点点

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


我们运行本机客户端,我注意到客户端启动时缓存服务器日志中的无法将endpoint添加到池错误。

我使用以下方式设置日志:

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,但是这个错误似乎对客户端没有任何影响,我们可以看到它确实建立了连接。虽然服务器endpoint似乎没有被添加到处于error状态的池中,但我们可以在说恢复endpoint上的订阅之后几乎立即看到精细消息,并且它是同一个endpoint。


共1个答案

匿名用户

此代码中存在长期bug,导致它在成功时在此处记录失败,反之亦然,这很可能是您正在命中的。这已作为2020年4月6日GEODE-7930PR#588的一部分修复。请查看您的本地存储库中是否有此修复程序,如果您有此修复程序,请回复,并且仍在遇到此问题。