pyeve / eve

REST API framework designed for human beings
https://python-eve.org
Other
6.7k stars 748 forks source link

The question is - why Eve dosn`t check database operation results #1084

Closed AndrewKhodyakov closed 6 years ago

AndrewKhodyakov commented 6 years ago

I write RESTfull service with Eve. When I run Eve by gunicorn with several workers count and modify different fields of the same document with PATCH method, I have a side effect - Eve returns status code 200 but document in mongodb doesn't change. (It probably related with blocked item on mongodb side, when one of threads do update operation)

In module eve.io.mongo.mongo.py in line 482 database operation result don`t check, but it return from PyMongo (http://api.mongodb.com/python/current/api/pymongo/results.html)

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.