Closed kpawar-sap closed 4 months ago
Imho this is not just about performance, but it is also a bug in the functionality that is fixed here. The commit message should include this aspect, please. I.e. no more orphans due to deferred deletions on the wrong host (which assumed the backend share had already gone, because it was not found - but it was not found because the job looked on the wrong backend)
edit: Goutham came up with a good wording at https://review.opendev.org/c/openstack/manila/+/917960/2/releasenotes/notes/optimize-deferred-deletion-get-share-instance-query-b6366b7c3b0a64db.yaml#6
Since share instance get call runs in periodic task which run in each manila-share service instance, we better optimize query to consider only current host. This will improve performance.