Skip to content

Commit

Permalink
fix(postgresql): no valid backups for read replica
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Jul 16, 2024
1 parent 59691fa commit b6e42e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

## [MAJOR.MINOR.PATCH] - YYYY-MM-DD

- Fix `PostgreSQL`: wait for a valid backup to create read replica
- Fix `ClickhouseGrant`: grant privileges for an unknown table (Clickhouse can do that)
- Fix `ClickhouseGrant`: track the state to revoke only known privileges

## v0.23.0 - 2024-07-12

- Ignore `http.StatusBadRequest` on `ClickhouseGrant` deletion
- Retry conflict error when k8s object saved to the storage
- Fix `ClickhouseGrant` invalid remote and local privileges comparison
- Fix `ClickhouseGrant`: doesn't escape role name to grant
- Fix `ClickhouseUser`: password was reset due to an incorrect processing cycle
- Fix `ClickhouseGrant`: grant privileges for an unknown table (Clickhouse can do that)
- Fix `ClickhouseGrant`: track the state to revoke only known privileges

## v0.22.0 - 2024-07-02

Expand Down
6 changes: 6 additions & 0 deletions controllers/generic_service_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ func (h *genericServiceHandler) checkPreconditions(ctx context.Context, avn *aiv
if !r || err != nil {
return false, err
}

// Covers error "No valid backups for service"
list, err := avnGen.ServiceBackupsGet(ctx, spec.Project, s.SourceServiceName)
if len(list) == 0 || err != nil {
return false, err
}
}
}
return true, nil
Expand Down

0 comments on commit b6e42e0

Please sign in to comment.