Skip to content

Conversation

@pooknull
Copy link
Contributor

@pooknull pooknull commented Jan 19, 2026

K8SPSMDB-1296 Powered by Pull Request Badge

https://perconadev.atlassian.net/browse/K8SPSMDB-1296

DESCRIPTION

Problem:
mongodb-healthcheck recieves rs.status() output from another pods.

Solution:
Enable directConnection for the mongod client.

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 MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

Copilot AI review requested due to automatic review settings January 19, 2026 11:27
@pull-request-size pull-request-size bot added the size/XS 0-9 lines label Jan 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the MongoDB healthcheck tool to use direct connections by default, avoiding unnecessary connection failures and retries when the healthcheck tool connects to the local MongoDB instance.

Changes:

  • Set Direct = true in the mongodb-healthcheck configuration to enable direct connections by default

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@egegunes egegunes added this to the v1.22.0 milestone Jan 20, 2026
Copilot AI review requested due to automatic review settings January 20, 2026 12:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pooknull pooknull marked this pull request as ready for review January 21, 2026 12:09
Copilot AI review requested due to automatic review settings January 21, 2026 12:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JNKPercona
Copy link
Collaborator

Test Name Result Time
arbiter passed 00:11:26
balancer passed 00:19:18
cross-site-sharded passed 00:19:04
custom-replset-name passed 00:09:46
custom-tls passed 00:14:37
custom-users-roles passed 00:10:34
custom-users-roles-sharded passed 00:11:44
data-at-rest-encryption passed 00:13:02
data-sharded passed 00:23:42
demand-backup passed 00:16:02
demand-backup-eks-credentials-irsa passed 00:00:08
demand-backup-fs passed 00:24:31
demand-backup-if-unhealthy passed 00:10:55
demand-backup-incremental passed 00:47:04
demand-backup-incremental-sharded passed 01:00:53
demand-backup-physical-parallel passed 00:09:24
demand-backup-physical-aws passed 00:12:14
demand-backup-physical-azure passed 00:12:14
demand-backup-physical-gcp-s3 passed 00:11:37
demand-backup-physical-gcp-native passed 00:11:50
demand-backup-physical-minio passed 00:20:46
demand-backup-physical-minio-native passed 00:28:44
demand-backup-physical-minio-native-tls failure 00:15:53
demand-backup-physical-sharded-parallel passed 00:11:23
demand-backup-physical-sharded-aws passed 00:17:34
demand-backup-physical-sharded-azure passed 00:18:15
demand-backup-physical-sharded-gcp-native passed 00:17:37
demand-backup-physical-sharded-minio passed 00:17:57
demand-backup-physical-sharded-minio-native passed 00:18:41
demand-backup-sharded passed 00:26:12
disabled-auth passed 00:16:41
expose-sharded passed 00:34:34
finalizer passed 00:10:20
ignore-labels-annotations passed 00:07:56
init-deploy passed 00:14:00
ldap passed 00:09:37
ldap-tls passed 00:13:34
limits passed 00:06:25
liveness passed 00:08:53
mongod-major-upgrade passed 00:11:51
mongod-major-upgrade-sharded passed 00:21:59
monitoring-2-0 passed 00:25:28
monitoring-pmm3 passed 00:28:49
multi-cluster-service passed 00:13:11
multi-storage passed 00:18:35
non-voting-and-hidden passed 00:17:06
one-pod passed 00:08:14
operator-self-healing-chaos passed 00:12:54
pitr passed 00:32:38
pitr-physical passed 01:01:44
pitr-sharded failure 01:30:06
pitr-to-new-cluster passed 00:25:43
pitr-physical-backup-source passed 00:54:48
preinit-updates passed 00:05:19
pvc-resize passed 00:18:18
recover-no-primary passed 00:28:07
replset-overrides passed 00:18:25
replset-remapping passed 00:17:19
replset-remapping-sharded passed 00:17:41
rs-shard-migration passed 00:14:48
scaling passed 00:11:17
scheduled-backup passed 00:17:23
security-context passed 00:07:11
self-healing-chaos passed 00:15:20
service-per-pod passed 00:21:24
serviceless-external-nodes passed 00:07:28
smart-update passed 00:08:25
split-horizon passed 00:12:17
stable-resource-version passed 00:04:45
storage passed 00:07:43
tls-issue-cert-manager passed 00:29:18
unsafe-psa passed 00:08:09
upgrade passed 00:11:01
upgrade-consistency passed 00:07:50
upgrade-consistency-sharded-tls passed 00:55:31
upgrade-sharded passed 00:19:04
upgrade-partial-backup failure 00:10:55
users passed 00:17:39
users-vault passed 00:14:09
version-service passed 00:27:00
Summary Value
Tests Run 80/80
Job Duration 04:21:23
Total Test Time 25:22:37

commit: 44b3f99
image: perconalab/percona-server-mongodb-operator:PR-2205-44b3f99f

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