cloudfoundry / cloud_controller_ng

Cloud Foundry Cloud Controller
Apache License 2.0
187 stars 356 forks source link

Wrong app instance state returned by process stats endpoint during graceful shutdown #3834

Closed kathap closed 1 month ago

kathap commented 1 month ago

This change solves issue #3780. After stopping an app, cloud controller immediately returns state DOWN when calling GET /v3/apps/:guid/processes/:type/stats even if the app is still in graceful shutdown period. The goal is to not simply to report DOWN for an app instance when the desired LRP is not found but it should request the actual LRP additionally to determine the instance state.