Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2473

reconcileMemberAlternateAddresses nil pointer dereference

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.3.0, 2.3.0-beta
    • 2.3.0, 2.3.0-beta
    • None
    • None
    • 42: GA items and Connect
    • 1

    Description

      I left a cluster running overnight (a kind cluster on my macbook that I forgot to destroy), and I've found it has 75 restarts in 20 hours.

      This was a helm-created cluster using the pending helm PR for 2.3, and the images built from the HEAD of the 2.3.0-beta branch. Server version is 7.0.2. There are no documents in the cluster (just provisioned and left) and nothing else happening to the cluster - my macbook was closed and asleep, if that affects this.

      panic: runtime error: invalid memory address or nil pointer dereferencepanic: runtime error: invalid memory address or nil pointer dereference[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x141a8a0]
      goroutine 255 [running]:github.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcileMemberAlternateAddresses(0xc00042c240) github.com/couchbase/couchbase-operator/pkg/cluster/networking.go:155 +0x60github.com/couchbase/couchbase-operator/pkg/cluster.(*ReconcileMachine).handleNodeServices(0xc00042c240, 0xc00042c240) github.com/couchbase/couchbase-operator/pkg/cluster/nodereconcile.go:1003 +0x34github.com/couchbase/couchbase-operator/pkg/cluster.(*ReconcileMachine).exec(0xc000b00480, 0xc00042c240) github.com/couchbase/couchbase-operator/pkg/cluster/nodereconcile.go:307 +0x19fgithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcileMembers(...) github.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:243github.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).reconcile(0xc00042c240) github.com/couchbase/couchbase-operator/pkg/cluster/reconcile.go:159 +0x53bgithub.com/couchbase/couchbase-operator/pkg/cluster.(*Cluster).runReconcile(0xc00042c240) github.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:482 +0x4e5github.com/couchbase/couchbase-operator/pkg/cluster.New({{0x7ffc7e15a740, 0x181d4f5}}, 0xc00033b600) github.com/couchbase/couchbase-operator/pkg/cluster/cluster.go:181 +0x7e9github.com/couchbase/couchbase-operator/pkg/controller.(*CouchbaseClusterReconciler).Reconcile(0xc0006fc060, {0xc000470000, 0x1623d00}, {{{0xc00049b959, 0x7}, {0xc0005438f0, 0x14}}}) github.com/couchbase/couchbase-operator/pkg/controller/controller.go:74 +0x70csigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0006fa6e0, {0x1a2af70, 0xc000470000}, {0x168e2c0, 0xc0006d5b80}) sigs.k8s.io/controller-runtime@v0.9.0-alpha.1.0.20210409054349-c7c85eb214f0/pkg/internal/controller/controller.go:298 +0x303sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0006fa6e0, {0x1a2af70, 0xc000470000}) sigs.k8s.io/controller-runtime@v0.9.0-alpha.1.0.20210409054349-c7c85eb214f0/pkg/internal/controller/controller.go:253 +0x205sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2() sigs.k8s.io/controller-runtime@v0.9.0-alpha.1.0.20210409054349-c7c85eb214f0/pkg/internal/controller/controller.go:214 +0x85created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 sigs.k8s.io/controller-runtime@v0.9.0-alpha.1.0.20210409054349-c7c85eb214f0/pkg/internal/controller/controller.go:210 +0x354
      

      Attachments

        For Gerrit Dashboard: K8S-2473
        # Subject Branch Project Status CR V

        Activity

          People

            simon.murray Simon Murray
            roo.thorp Roo Thorp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty