Issue:
------
Health check instance is getting access from asio and
DBtable task context causing race condition to access
object and delete it at the same time.
Fix:
----
- move operation for READ and EXIT to a new HealthCheck
task context which runs in exclusion with DBTable task
- move cleanup of instance from DBTable to HealthCheck
task context to put events in correct sequence
- instance holds reference to service object to assure
sanity of access till cleanup is complete
Reviewed: https:/ /review. opencontrail. org/16523 github. org/Juniper/ contrail- controller/ commit/ 4a4bb3d5b8af10b 15a2c4776ea0777 78c51284bb
Committed: http://
Submitter: Zuul
Branch: master
commit 4a4bb3d5b8af10b 15a2c4776ea0777 78c51284bb
Author: Prabhjot Singh Sethi <email address hidden>
Date: Tue Jan 26 23:51:34 2016 +0530
Fix Healtcheck instance parallel access & cleanup
Issue:
------
Health check instance is getting access from asio and
DBtable task context causing race condition to access
object and delete it at the same time.
Fix:
----
- move operation for READ and EXIT to a new HealthCheck
task context which runs in exclusion with DBTable task
- move cleanup of instance from DBTable to HealthCheck
task context to put events in correct sequence
- instance holds reference to service object to assure
sanity of access till cleanup is complete
Closes-Bug: 1533627 2bd6612067be5b6 7ba02c88fe8
Related-Bug: 1530539
Change-Id: I2880a2c21a8a64