Sunday, 22 December 2019

Query failed with error code 24 and error message 'Unable to acquire lock within a max lock request timeout of '5ms' milliseconds.'

 Query failed with error code 24 and error message 'Unable to acquire lock   within a max lock request timeout of '5ms' milliseconds.'

https://stackoverflow.com/questions/54327147/mongoerror-unable-to-acquire-lock

db.adminCommand( { setParameter: 1, maxTransactionLockRequestTimeoutMillis: 5000 })



information: https://docs.mongodb.com/manual/core/transactions-production-consideration/#acquiring-locks

how to change:
https://docs.mongodb.com/manual/reference/parameters/#param.maxTransactionLockRequestTimeoutMillis

No comments:

Post a comment