File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -402,13 +402,7 @@ export class Server extends TypedEventEmitter<ServerEvents> {
402402 error instanceof MongoNetworkError && error . beforeHandshake ;
403403 const isAuthHandshakeError = error . hasErrorLabel ( MongoErrorLabel . HandshakeError ) ;
404404
405- // TODO: considering parse errors as SDAM unrecoverable errors seem
406- // questionable. What if the parse error only comes from an application connection,
407- // indicating some bytes were lost in transmission? It seems overkill to completely
408- // kill the server.
409- // Parse errors from monitoring connections are already handled because the
410- // error would be wrapped in a ServerHeartbeatFailedEvent, which would mark the
411- // server unknown and clear the pool. Can we remove this?
405+ // Perhaps questionable and divergent from the spec, but considering MongoParseErrors like state change errors was legacy behavior.
412406 if ( isStateChangeError ( error ) || error instanceof MongoParseError ) {
413407 const shouldClearPool = isNodeShuttingDownError ( error ) ;
414408
You can’t perform that action at this time.
0 commit comments