Skip to content

[Bug] database/sql.OpenDB cause memory leak #1339

@arthurking87

Description

@arthurking87

Describe the bug
I found that under the control of the operator, when the secret content is changed but the DB account password is not ALTER/UPDATE, the CRD will display an error. The CRD contains three CONNECTIONs, one GRANT and one USER. This indirectly shows that the operator will have a continuous accumulation of memory usage(Operator will OOM kill).

Expected behaviour
Memory usage cannot continue to rise, or the data plan should not affect the control paln.

Steps to reproduce the bug

  1. deploy mariadb operator
  2. deploy mariadb replication full(https://github.com/mariadb-operator/mariadb-operator/blob/main/examples/manifests/mariadb_replication_full.yaml)
  3. change all password(make crd(user/connection/mariadb/grant) error)

PromQL:
max by (pod, container, namespace) (container_memory_rss{container="controller|webhook"}) / max by (pod, container, namespace) (container_spec_memory_limit_bytes{container="controller|webhook"})

Sorry, I cannot upload pictures due to company policy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy