Implement rollback for gateway association failures during deployment
Open
@dushaniw is already working on this.
Since Jan 25, 2026.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Context
During API deployment, if the gateway association creation fails after the deployment record is persisted, the system currently logs a warning and returns success. This leaves the deployment in an inconsistent state where a deployment artifact exists without the corresponding gateway association.
Required Action
Implement proper rollback logic when ensureAPIGatewayAssociation fails in the DeployAPI method (platform-api/src/internal/service/deployment.go, lines 201-204) so that:
- The deployment transaction is rolled back if association fails
- Or the deployment status is marked appropriately to reflect the failure
- The error is propagated to the caller instead of being swallowed
Related
- PR: https://github.com/wso2/api-platform/pull/671
- Discussion: https://github.com/wso2/api-platform/pull/671#discussion_r2698117121
- Requested by: @dushaniw
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.