According to service broker API spec, the broker should return 410 (Gone) for bindings which are not existed. MASB currently returns 500.
The behavior is required for such a case: Unbinding timeout, CC supposes unbinding failed. But actually unbinding succeeded in MASB side. Then unbinding retries will fail forever.
Did an e2e test to validate the PR:
Create a service and bind
Manually delete the binding record in broker database
Unbind successfully
Did find 410 (Gone) with "cf logs meta-azure-service-broker --recent"
According to service broker API spec, the broker should return 410 (Gone) for bindings which are not existed. MASB currently returns 500.
The behavior is required for such a case: Unbinding timeout, CC supposes unbinding failed. But actually unbinding succeeded in MASB side. Then unbinding retries will fail forever.
Did an e2e test to validate the PR: