commit 1924abff40341337bd00659ff01a14ea91701475
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Mon May 14 13:50:03 2018 -0700
Add unique constraint to service_statuses
In the current implementation, if for any reason a duplicate
service entry gets created, the call to update that service
will fail endlessly, and instead cause the service to create
new entries everytime update_service_status gets called. Causing
it to fill the database with duplicate entries.
This patch adds a unique constraint to the service_statuses
table based on the service_name and hostname, to ensure that
this cannot happen.
In addition we add a new test to the storage driver and further
expanded the central service test coverage.
Reviewed: https:/ /review. openstack. org/568372 /git.openstack. org/cgit/ openstack/ designate/ commit/ ?id=1924abff403 41337bd00659ff0 1a14ea91701475
Committed: https:/
Submitter: Zuul
Branch: master
commit 1924abff4034133 7bd00659ff01a14 ea91701475
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Mon May 14 13:50:03 2018 -0700
Add unique constraint to service_statuses
In the current implementation, if for any reason a duplicate service_ status gets called. Causing
service entry gets created, the call to update that service
will fail endlessly, and instead cause the service to create
new entries everytime update_
it to fill the database with duplicate entries.
This patch adds a unique constraint to the service_statuses
table based on the service_name and hostname, to ensure that
this cannot happen.
In addition we add a new test to the storage driver and further
expanded the central service test coverage.
Change-Id: I307a8f7dd8b8a8 3effa447a846db3 288efa32dba
Closes-Bug: #1768824