-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(migration): add last_heartbet and ready as column of server_instances tables in a separate migration #233
Conversation
…nces tables in a separate migration Addresses https://github.com/openshift-online/maestro/pull/229/files#r1888513628 as the issue is causing existing deployment to fail with errors like ``` 2024-12-17T13:19:34.107Z ERROR server/healthcheck_server.go:115 Unable to create maestro instance: ERROR: column "last_heartbeat" of relation "server_instances" does not exist (SQLSTATE 42703) github.com/openshift-online/maestro/cmd/maestro/server.(*HealthCheckServer).pulse ``` or ``` 2024-12-17T13:19:54.339Z ERROR server/healthcheck_server.go:184 Unable to mark inactive maestro instances ([maestro-maestro-689869f6dd-5jsbs maestro-maestro-689869f6dd-6tgxq]): ERROR: column "ready" of relation "server_instances" does not exist (SQLSTATE 42703) github.com/openshift-online/maestro/cmd/maestro/server.(*HealthCheckServer).checkInstances ```
Here is the integration error:
|
) | ||
|
||
func addLastHeartBeatAndReadyColumnInServerInstancesTable() *gormigrate.Migration { | ||
type ServerInstance struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need Model
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No we don't need the Model.
/retest |
1 similar comment
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This includes a change that fix a migration issue (openshift-online/maestro#233) observed from the previous bump #998
This includes a change that fix a migration issue (openshift-online/maestro#233) observed from the previous bump #998
…57 (#1003) This includes a change that fix a migration issue (openshift-online/maestro#233) observed from the previous bump #998
fix(migration): add last_heartbet and ready as column of server_instances tables in a separate migration
Addresses https://github.com/openshift-online/maestro/pull/229/files#r1888513628 as the issue is causing existing deployment to fail with errors like
or