PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 8th of September, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[08:26:17] <pagios> morning, i have a question please about concurrency and nodejs, say i have a variable that is being read from mongo and that is being manipulated/changed via an api call. This api call changes the value and update it in DB. I would like this variable to stay as consistent in concrreutn api requests. which means what happens if 2 requests for example come at the exact righ time, read that value and each update? I would end up with the latest one
[08:26:18] <pagios> overwriting the previous update and have an inconsistency. How do i approach this? Thank you
[22:17:59] <dengi> File "/home/xxx/xxx/nsmmongo.py", line 401, in mongoScan
[22:17:59] <dengi> conn = pymongo.MongoClient(ip,port,connectTimeoutMS=4000,socketTimeoutMS=4000)
[22:17:59] <dengi> File "build/bdist.linux-x86_64/egg/pymongo/mongo_client.py", line 369, in __init__
[22:17:59] <dengi> pymongo.errors.ConnectionFailure: timed out
[22:18:10] <dengi> means it can not connect to local mongodb?