Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence ECONNRESET on stop #900

Open
hasezoey opened this issue Nov 19, 2024 · 1 comment
Open

Silence ECONNRESET on stop #900

hasezoey opened this issue Nov 19, 2024 · 1 comment

Comments

@hasezoey
Copy link
Member

It seems like on .stop after the shutdown command it may be possible that a ECONNRESET Error happens instead of the connection being closed, similar to the already ignored connection 1 to 127.0.0.1:41485 closed message pre mongodb 4.2.

This has been originally reported on discord, where the user notes that this might only happen on replset members, but not single instances.

Example Error:

Error: read ECONNRESET
        at TCP.onStreamRead (node:internal/stream_base_commons:216:20) {
      errno: -4077,
      code: 'ECONNRESET',
      syscall: 'read'
    }

      at node_modules/mongodb-memory-server-core/src/util/MongoInstance.ts:469:23
      at MongoMemoryServer.stop (node_modules/mongodb-memory-server-core/src/MongoMemoryServer.ts:593:5)
          at async Promise.all (index 0)
      at MongoMemoryReplSet.stop (node_modules/mongodb-memory-server-core/src/MongoMemoryReplSet.ts:546:33)

(MMS 10.1.2, binary 7.0.14, windows)

@nichiporenko
Copy link

nichiporenko commented Feb 10, 2025

The same issue happens for me as well
(MMS 10.1.3, binary 7.0.14, Windows)

Error: read ECONNRESET
        at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
      errno: -4077,
      code: 'ECONNRESET',
      syscall: 'read'
    }

at node_modules/mongodb-memory-server-core/src/util/MongoInstance.ts:469:23
      at MongoMemoryServer.stop (node_modules/mongodb-memory-server-core/src/MongoMemoryServer.ts:593:5)
          at async Promise.all (index 0)
      at MongoMemoryReplSet.stop (node_modules/mongodb-memory-server-core/src/MongoMemoryReplSet.ts:546:33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants