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

[bug] Clear invalid log and redundant logic. #508

Closed
runkecheng opened this issue Jun 1, 2022 · 1 comment · Fixed by #509
Closed

[bug] Clear invalid log and redundant logic. #508

runkecheng opened this issue Jun 1, 2022 · 1 comment · Fixed by #509
Labels
bug Something isn't working Improvement

Comments

@runkecheng
Copy link
Collaborator

Describe the problem

operator log when cluster updating:

  1. version conflict
2022-06-01T15:44:09.378+0800    ERROR   controller-runtime.manager.controller.mysqlcluster.controllers.Status   failed to update cluster status {"reconciler group": "mysql.radondb.com", "reconciler kind": "MysqlCluster", "name": "sample", "namespace": "default", "error": "Operation cannot be fulfilled on mysqlclusters.mysql.radondb.com \"sample\": the object has been modified; please apply your changes to the latest version and try again"}
github.com/radondb/radondb-mysql-kubernetes/controllers.(*StatusReconciler).Reconcile
        /home/runkecheng/goCode/src/radondb-mysql-kubernetes/controllers/status_controller.go:104
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214
  1. cannot connect to the pod which is in terminating
2022-06-01T15:44:01.736+0800    ERROR   syncer.StatusSyncer     failed to get/update node raft status   {"node": "sample-mysql-2.sample-mysql.default", "error": "failed to get raft status, err: Get \"http://sample-mysql-2.sample-mysql.default:6601/v1/raft/status\": read tcp 172.28.134.66:43472->10.10.242.185:6601: read: connection reset by peer"}
github.com/radondb/radondb-mysql-kubernetes/mysqlcluster/syncer.(*StatusSyncer).Sync
        /home/runkecheng/goCode/src/radondb-mysql-kubernetes/mysqlcluster/syncer/status.go:157
github.com/presslabs/controller-util/syncer.Sync
        /home/runkecheng/go/pkg/mod/github.com/presslabs/[email protected]/syncer/syncer.go:82
github.com/radondb/radondb-mysql-kubernetes/controllers.(*StatusReconciler).Reconcile
        /home/runkecheng/goCode/src/radondb-mysql-kubernetes/controllers/status_controller.go:100
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /home/runkecheng/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:214
  1. print the full object of the updating pod.
2022-06-01T15:43:36.864+0800    INFO    StatefulSetSyncer       updating pod    {"pod": "sample-mysql-2", "key": {"kind":"MysqlCluster","apiVersion":"mysql.radondb.com/v1alpha1","metadata":{"name":"sample","namespace":"default","selfLink":"/apis/mysql.radondb.com/v1alpha1/namespaces/default/mysqlclusters/sample","uid":"3eaad328-7e90-4ef7-8a1c-e5287a536467","resourceVersion":"42525257","generation":44,"creationTimestamp":"2022-05-20T06:18:56Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"mysql.radondb.com/v1alpha1\",\"kind\":\"MysqlCluster\",\"metadata\":{\"annotations\":{},\"name\":\"sample\",\"namespace\":\"default\"},\"spec\":
......

To Reproduce

Expected behavior

Environment:

  • RadonDB MySQL version:
@runkecheng runkecheng added bug Something isn't working Improvement labels Jun 1, 2022
runkecheng added a commit to runkecheng/radondb-mysql-kubernetes that referenced this issue Jun 1, 2022
1. status.go: adjust the log level(ERROR->DEBUG)
2. statefulset.go: remove unnecessary output items

fix: radondb#508
@runkecheng
Copy link
Collaborator Author

andyli029 added a commit that referenced this issue Jun 6, 2022
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
1. status.go: adjust the log level(ERROR->DEBUG)
2. statefulset.go: remove unnecessary output items

fix: radondb#508
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant