Skip to content

Only check maintenance window for upgrade after pg version recheck #2842

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

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

hughcapet
Copy link
Member

This way we avoid misleading "skipping major version upgrade, not in maintenance window" log line when c.currentMajorVersion is not initialized (==0)

@hughcapet hughcapet marked this pull request as ready for review January 16, 2025 17:06
@@ -175,13 +172,21 @@ func (c *Cluster) majorVersionUpgrade() error {
}
c.logger.Infof("recheck cluster version is already up to date. current: %d, min desired: %d", c.currentMajorVersion, desiredVersion)
return nil
} else if isStandbyCluster {
c.logger.Errorf("skipping major version upgrade for %s/%s standby cluster. Re-deploy standby cluster with the required Postgres version specified", c.Namespace, c.Name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be changed to Warnf maybe (even if it was also Error before)?

@FxKu
Copy link
Member

FxKu commented Jan 17, 2025

👍

@FxKu FxKu added this to the 1.15.0 milestone Jan 17, 2025
@hughcapet
Copy link
Member Author

👍

@hughcapet hughcapet merged commit e04b91d into master Jan 17, 2025
10 checks passed
@hughcapet hughcapet deleted the fix/recheck-ver-before-maintwindow branch January 17, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants