Retry to connect database when DB2 or mongodb is restarted
The patch https://review.openstack.org/#/c/122387 works fine
with operations with get, record and update functions.
But exception would still occured with the operation of
db.collection.find() function.
This patch can give some benefit to tolerate DB restart
with find() function.
This patch also removes "test_mongo_find" test case since
it doesn't raise AutoReconnect exception at all.
Closes-Bug: #1389985
Change-Id: Ia0474726960ce2b4b611fda0a1c304bb8ad96922
(cherry-picked from commit 8c6841d3c00931204eaba0e9058707629120c1da)
Reviewed: https:/ /review. openstack. org/140223 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=529b4aaf50d 34881ce0869b746 88200adf462ea0
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 529b4aaf50d3488 1ce0869b7468820 0adf462ea0
Author: lqslan <email address hidden>
Date: Tue Nov 18 15:38:51 2014 +0800
Retry to connect database when DB2 or mongodb is restarted
The patch https:/ /review. openstack. org/#/c/ 122387 works fine collection. find() function.
with operations with get, record and update functions.
But exception would still occured with the operation of
db.
This patch can give some benefit to tolerate DB restart
with find() function.
This patch also removes "test_mongo_find" test case since
it doesn't raise AutoReconnect exception at all.
Closes-Bug: #1389985 b4b611fda0a1c30 4bb8ad96922 04eaba0e9058707 629120c1da)
Change-Id: Ia0474726960ce2
(cherry-picked from commit 8c6841d3c009312