Coder Social home page Coder Social logo

Comments (4)

hasezoey avatar hasezoey commented on June 14, 2024

mongodb(the binary version): 6.0.9
logs-test.txt

why use a different mongodb version than in logs-full.txt?

I noticed though that GridFS streams seem to behave differently compared to a normal mongodb server.

does anything change if you use instance: { storageEngine: "wiredTiger" }? if yes, then it is a ephemeralForTest issue - which has been removed in mongodb 7.0.0

When I do that with mongodb-memory-server I cannot find the file unless I wait for 6ms.

at least in the case of a replset, maybe you need to use writeConcern: majority?

When using GridFS, the server closes unexpectedly.
Log:
connection 1 to 127.0.0.1:40865 closed
<further code block>

i have no clue why that error gets thrown, maybe try to upgrade your driver? at least it is not the instance / MMS shutting down (it is a client error, guessing by the logs)

from mongodb-memory-server.

framp avatar framp commented on June 14, 2024

Thanks for the response!

why use a different mongodb version than in logs-full.txt?

Oh my bad, bad copy-paste, it doesn't change the result though.

does anything change if you use instance: { storageEngine: "wiredTiger" }? if yes, then it is a ephemeralForTest issue - which has been removed in mongodb 7.0.0

Nope, it's still not finding the file right after the stream is processed.

Pretty strange error, this may be an issue upstream with mongo and it's just not visible for some weird timing reason.
Maybe mongodb-memory-server is much faster at returning a response and by the time normal mongo ends the stream the data has already been saved in GridFS.

from mongodb-memory-server.

hasezoey avatar hasezoey commented on June 14, 2024

Maybe mongodb-memory-server is much faster at returning a response and by the time normal mongo ends the stream the data has already been saved in GridFS.

what exactly do you mean with "normal mongo", do you mean atlas or a manually run binary or something else?

from mongodb-memory-server.

framp avatar framp commented on June 14, 2024

My bad, I was trying with a mongodb instance on Atlas

I tried with a local instance and the behaviour is consistent with mongodb-memory-server so definitely an upstream problem!

Thanks a lot!

from mongodb-memory-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.