MongoDB服务器在短时间内保持高负载后运行ChannelNotFound错误循环

时间:2017-11-07 12:10:12

标签: mongodb playframework reactivemongo play-reactivemongo

MongoDB服务器在短时间内保持高负载后,play-reactivemongo模块会遇到ChannelNotFound错误循环:

2017-10-09 13:16:17 +0800 [ERROR] from reactivemongo.api.Failover2 in ForkJoinPool-3-worker-1 - [Supervisor-1/Connection-2] Got an error, no more attempts to do. Completing with a failure... 
reactivemongo.core.actors.Exceptions$ChannelNotFound: MongoError['Channel not found from the primary node: 'host:port' { authenticated:0, connected:10, channels:10 } (Supervisor-1/Connection-2)']
Caused by: reactivemongo.core.actors.Exceptions$InternalState: null
    at reactivemongo.ConnectAll$IsMaster(562, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(562, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(561, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(561, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(560, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(560, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(559, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(559, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(558, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(558, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(557, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.IsMaster(557, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }}()
    at reactivemongo.RefreshAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll({{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()
    at reactivemongo.ConnectAll$IsMaster(556, {{NodeSet None Node[ host:port: Primary (10/10 available connections), latency=1], auth=Set() }})()

发生此错误后,Play应用程序的所有服务都已关闭。它在重新启动Play应用程序后正常工作。有谁知道如何解决这个错误?

0 个答案:

没有答案