Skip to content

Conversation

@eleo007
Copy link
Contributor

@eleo007 eleo007 commented Apr 11, 2025

K8SPXC-1535 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:
From time to time checks fails with the 'Unknown MySQL server host' in the compare file. if to manually recheck - the restore is correct and the issue is that the service was not yet available when the check was performed. That is why the retry should be if the compare file is not present or there is ''Unknown MySQL server host' in the compare file.

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:
Short explanation of the solution we are providing with this PR.

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PXC version?
  • Does the change support oldest and newest supported Kubernetes version?

@eleo007 eleo007 requested a review from jvpasinatto as a code owner April 11, 2025 06:24
@pull-request-size pull-request-size bot added the size/XS 0-9 lines label Apr 11, 2025
run_mysql "$command" "$uri" \
>$tmp_dir/${command_id}.sql
if [ ! -s "$tmp_dir/${command_id}.sql" ]; then
if [[ ! -s "$tmp_dir/${command_id}.sql" || $(cat "$tmp_dir/${command_id}.sql" | grep 'Unknown MySQL server host') ]]; then
Copy link
Contributor

@gkech gkech Apr 11, 2025

Choose a reason for hiding this comment

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

grep supports checking files natively, we can skip cat

Screenshot 2025-04-11 at 1 50 52 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Base automatically changed from release-1.17.0 to main April 14, 2025 17:26
@hors hors requested a review from valmiranogueira as a code owner July 23, 2025 20:20
@gkech
Copy link
Contributor

gkech commented Nov 4, 2025

@eleo007 , are we going to address the comments on this pr to merge it eventually or close it?

@JNKPercona
Copy link
Collaborator

Test Name Result Time
auto-tuning-8-0 passed 00:18:26
allocator-8-0 passed 00:12:02
backup-storage-tls-8-0 passed 00:21:29
cross-site-8-0 passed 00:34:58
custom-users-8-0 passed 00:11:58
demand-backup-cloud-8-0 passed 00:57:22
demand-backup-encrypted-with-tls-8-0 passed 00:44:57
demand-backup-8-0 passed 00:41:24
demand-backup-flow-control-8-0 passed 00:10:28
demand-backup-parallel-8-0 passed 00:08:47
demand-backup-without-passwords-8-0 passed 00:15:36
haproxy-5-7 passed 00:13:52
haproxy-8-0 passed 00:14:51
init-deploy-5-7 passed 00:16:12
init-deploy-8-0 passed 00:16:55
limits-8-0 passed 00:12:20
monitoring-2-0-8-0 passed 00:23:02
monitoring-pmm3-8-0 passed 00:18:21
one-pod-5-7 passed 00:13:53
one-pod-8-0 passed 00:14:06
pitr-8-0 passed 00:44:01
pitr-gap-errors-8-0 passed 00:57:09
proxy-protocol-8-0 passed 00:09:37
proxysql-sidecar-res-limits-8-0 passed 00:08:37
proxysql-scheduler-8-0 passed 00:16:35
pvc-resize-5-7 passed 00:16:16
pvc-resize-8-0 passed 00:17:24
recreate-8-0 passed 00:17:37
restore-to-encrypted-cluster-8-0 passed 00:25:17
scaling-proxysql-8-0 passed 00:08:33
scaling-8-0 passed 00:11:13
scheduled-backup-5-7 passed 01:03:58
scheduled-backup-8-0 passed 01:02:35
security-context-8-0 passed 00:26:40
smart-update1-8-0 passed 00:36:28
smart-update2-8-0 passed 00:38:09
storage-8-0 passed 00:10:50
tls-issue-cert-manager-ref-8-0 passed 00:08:47
tls-issue-cert-manager-8-0 passed 00:11:25
tls-issue-self-8-0 passed 00:13:26
upgrade-consistency-8-0 passed 00:11:09
upgrade-haproxy-5-7 passed 00:25:12
upgrade-haproxy-8-0 passed 00:26:24
upgrade-proxysql-5-7 passed 00:13:37
upgrade-proxysql-8-0 passed 00:15:58
users-5-7 passed 00:24:18
users-8-0 passed 00:25:54
validation-hook-8-0 passed 00:01:52
Summary Value
Tests Run 48/48
Job Duration 02:55:25
Total Test Time 17:50:21

commit: 551b078
image: perconalab/percona-xtradb-cluster-operator:PR-2036-551b0785

@hors hors requested a review from gkech November 25, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS 0-9 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants