Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
1.1.0
-
None
-
None
Description
With minPoolSize, the driver just seems to hang for ever not respecting the connect/ping timeout.
docker run -e MONGODB_URI="mongodb://xxxx:xxx@xxx:27017,xxxx:27017,xxxx:27017/matchmaking-service?ssl=true&authSource=admin&maxPoolSize=100&minPoolSize=10" -e MONGODB_DATABASE=matchmaking-service -e S2S_TOKEN=ciccio -e MONGODB_CONNECT_TIMEOUT=10s -p 8081:8081 --cpus="1" --memory=100m 90aa968740fe {"app":"matchmaking-api","env":"test","message":"ciccio","severity":"INFO","timestamp":{"seconds":1567604480,"nanos":724255411},"version":"SNAPSHOT"} 2019/09/04 13:41:20 attempting to connect to mongo
|
It just hangs forever..
Without Pool Size:
docker run -e MONGODB_URI="mongodb://xxxx:xxx@xxx:27017,xxxx:27017,xxxx:27017/matchmaking-service?ssl=true&authSource=admin&maxPoolSize=100" -e MONGODB_DATABASE=matchmaking-service -e S2S_TOKEN=ciccio -e MONGODB_CONNECT_TIMEOUT=10s -p 8081:8081 --cpus="1" --memory=100m 90aa968740fe {"app":"matchmaking-api","env":"test","message":"ciccio","severity":"INFO","timestamp":{"seconds":1567604557,"nanos":285167813},"version":"SNAPSHOT"} 2019/09/04 13:42:37 attempting to connect to mongo 2019/09/04 13:42:37 successfully connected to mongo 2019/09/04 13:42:37 attempting ping {"app":"matchmaking-api","env":"test","message":"starting matchmaking-api-test at SNAPSHOT on 8081","severity":"INFO","timestamp":{"seconds":1567604557,"nanos":387613955},"version":"SNAPSHOT"}
|
Its worth pointing out that this issue can't be replicated on master.