Spark-MongoDB
Spark-MongoDB copied to clipboard
Connections not closing
Using 0.12.0 with Spark streaming 2.0
Number of connections keeps building up...to a few thousand until MongoDB refuses to accept any new connections.
Is there any way to reuse the same connection? Or to force close the connection? Or to set a lifespan of the connections (i.e. 30seconds)? Thanks