Closed claustres closed 1 year ago
Add a createMongoCollection with a unique index rule then a callFeathersServiceMethod hook creating items with duplicated indices.
createMongoCollection
callFeathersServiceMethod
Data with duplicated indices should not be inserted.
Data with duplicated indices are inserted sometimes if write comes quickly after index creation.
Module versions (especially the part that's not working): 2.5
NodeJS version: 16
Operating System: Windows
Steps to reproduce
Add a
createMongoCollection
with a unique index rule then acallFeathersServiceMethod
hook creating items with duplicated indices.Expected behavior
Data with duplicated indices should not be inserted.
Actual behavior
Data with duplicated indices are inserted sometimes if write comes quickly after index creation.
System configuration
Module versions (especially the part that's not working): 2.5
NodeJS version: 16
Operating System: Windows