Skip to content
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

Partially revert #2810 #2849

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Partially revert #2810 #2849

merged 2 commits into from
Jan 23, 2025

Conversation

hughcapet
Copy link
Member

Consider MaintenanceWindows only for pod migration

@hughcapet hughcapet added the architectural New features and architectural changes, e.g. framework changes, migrations, rollout of new services. label Jan 21, 2025
@hughcapet hughcapet force-pushed the fix/mainwindow-partial-revert branch 2 times, most recently from f5f730e to f66e30f Compare January 22, 2025 10:47
@hughcapet hughcapet force-pushed the fix/mainwindow-partial-revert branch from f66e30f to 604b760 Compare January 22, 2025 12:59
@@ -1187,7 +1187,7 @@ def test_major_version_upgrade(self):
Test major version upgrade: with full upgrade, maintenance window, and annotation
"""
def check_version():
p = k8s.patroni_rest("acid-upgrade-test-0", "")
p = k8s.patroni_rest("acid-upgrade-test-0", "") or {}
Copy link
Member

Choose a reason for hiding this comment

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

or {}?
I don't understand python sometimes

Copy link
Member Author

Choose a reason for hiding this comment

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

it can return None and then p.get("server_version", 0) will break everything with exception

or {} returns empty dict instead of None

@hughcapet hughcapet marked this pull request as ready for review January 23, 2025 09:16
@FxKu FxKu added this to the 1.15.0 milestone Jan 23, 2025
pkg/cluster/cluster.go Outdated Show resolved Hide resolved
@hughcapet hughcapet force-pushed the fix/mainwindow-partial-revert branch from 5e0fc53 to e78dbe6 Compare January 23, 2025 13:57
@hughcapet
Copy link
Member Author

👍

1 similar comment
@FxKu
Copy link
Member

FxKu commented Jan 23, 2025

👍

@hughcapet hughcapet merged commit b0cfeb3 into master Jan 23, 2025
10 checks passed
@hughcapet hughcapet deleted the fix/mainwindow-partial-revert branch January 23, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architectural New features and architectural changes, e.g. framework changes, migrations, rollout of new services.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants