-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 2.2.33
-
Component/s: None
-
Empty show more show less
The issue occurs only when using the "mongos" topology. Removing the offending event listener on connection close seems to solve the issue:
db.s.topology.s.mongos.on('joined', (_, server) => { server.once('close', () => { server.removeAllListeners('serverDescriptionChanged'); }); });