Colleagues, I'm using Mongo of v2.2 and java Mongo driver 2.9.0,
Some business logic creates approximately 25 threads and each thread creates 150 files on GridFS. Approximately 20 files per 1000 are not return correct getId()
so result is null. I think (correct me if I'm wrong) it is correct behavior in perspective of throughput. But I really need this id. For regular DBCollection I would set WriteConcern.FSYNC_SAFE
, but I cannot see if exist method setWriteConcern
for GridFS. Have you some ideas how to force files be flushed ?