Comment 11 for bug 1389985

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (stable/juno)

Reviewed: https://review.openstack.org/140223
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=529b4aaf50d34881ce0869b74688200adf462ea0
Submitter: Jenkins
Branch: stable/juno

commit 529b4aaf50d34881ce0869b74688200adf462ea0
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
    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)