Skip to content

Conversation

@egegunes
Copy link
Contributor

@egegunes egegunes commented Dec 1, 2025

K8SPXC-735 Powered by Pull Request Badge

CHANGE DESCRIPTION

This commit includes various improvements for scheduler implementation:

  1. Cleaning up zombie processes created by percona-scheduler-admin in pxc-monit container.
  2. Running zombie reaper in proxysql container only when scheduler is enabled.
  3. Running percona-scheduler-admin with --force to overcome unique constraint failures.

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?

This commit includes various improvements for scheduler implementation:

1. Cleaning up zombie processes created by percona-scheduler-admin in pxc-monit container.
2. Running zombie reaper in proxysql container only when scheduler is enabled.
3. Running percona-scheduler-admin with `--force` to overcome unique constraint failures.
@pull-request-size pull-request-size bot added the size/L 100-499 lines label Dec 1, 2025
@egegunes egegunes added this to the v1.19.0 milestone Dec 1, 2025
},
}...)

pxcMonit.Command = []string{"/opt/percona/proxysql_peer_list_entrypoint.sh"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@egegunes the problem is that you changed entrypoint and now the operator can't update
/etc/proxysql-admin.cnf and the container just use default one e.g. with default passwords

@pull-request-size pull-request-size bot added size/M 30-99 lines and removed size/L 100-499 lines labels Dec 3, 2025
Comment on lines +133 to +135
sleep 0.5
# Reap any zombie processes that are children of PID 1
while wait -n 2>/dev/null; do :; done
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
sleep 0.5
# Reap any zombie processes that are children of PID 1
while wait -n 2>/dev/null; do :; done
sleep 0.5
# Reap any zombie processes that are children of PID 1
while wait -n 2>/dev/null; do :; done

# Forward signals to main process
forward_signal() {
kill -"$1" "$PROXYSQL_PID" 2>/dev/null || true
kill -"$1" "$MAIN_PID" 2>/dev/null || true
Copy link
Contributor

Choose a reason for hiding this comment

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

[shfmt] reported by reviewdog 🐶

Suggested change
kill -"$1" "$MAIN_PID" 2>/dev/null || true
kill -"$1" "$MAIN_PID" 2>/dev/null || true

@pull-request-size pull-request-size bot added size/XXL 1000+ lines and removed size/M 30-99 lines labels Dec 3, 2025
@JNKPercona
Copy link
Collaborator

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

commit: 3aa4f94
image: perconalab/percona-xtradb-cluster-operator:PR-2281-3aa4f946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL 1000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants