cloudstateio / cloudstate

Distributed State Management for Serverless
https://cloudstate.io
Apache License 2.0
763 stars 97 forks source link

nil pointer exception in spanner_store.go #533

Closed marcoderama closed 3 years ago

marcoderama commented 3 years ago

We recently encountered this:

E0210 19:08:34.534732       1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 652 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0x16b0160, 0x26fda10)
        /workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0xa3
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
        /workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x82
panic(0x16b0160, 0x26fda10)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/cloudstateio/cloudstate/cloudstate-operator/pkg/stores.(*SpannerStore).ReconcileStatefulService(0xc0002fe418, 0x1afa600, 0xc00101f200, 0xc
0002b5980, 0xc000e1a000, 0xc000966180, 0x11a9696, 0xc000573160, 0x1afa600, 0xc00101f200, ...)
        /workspace/vendor/github.com/cloudstateio/cloudstate/cloudstate-operator/pkg/stores/spanner_store.go:126 +0x88
[etc....]