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

Testcase fails with panic issue during RetryOnErr call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.0.0
    • None
    • operator

    Description

      Panic raised while executing the following line in retryutil.go

       

      logger := ctx.Value("logger").(*logrus.Entry) 

      Test Logs:

       

      === RUN   TestNegBucketEdit
      panic: interface conversion: interface {} is nil, not *logrus.Entry [recovered]
              panic: interface conversion: interface {} is nil, not *logrus.Entry
       
      goroutine 49 [running]:
      testing.tRunner.func1(0xc4204501e0)
              /usr/local/opt/go/libexec/src/testing/testing.go:742 +0x567
      panic(0x22ff9a0, 0xc420472a40)
              /usr/local/opt/go/libexec/src/runtime/panic.go:505 +0x24a
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.RetryOnErr.func1(0x100000008, 0x24b5358, 0xc420652140)
              /Users/ashwin/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:67 +0x26c
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.Retry(0x25b0580, 0xc4200d0048, 0x12a05f200, 0x5, 0xc42040ad80, 0x0, 0x0)
              /Users/ashwin/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:39 +0xbe
      github.com/couchbase/couchbase-operator/pkg/util/retryutil.RetryOnErr(0x25b0580, 0xc4200d0048, 0x12a05f200, 0x5, 0x243f37e, 0x13, 0x2437ed8, 0xc, 0xc4200e9920, 0x2596720, ...)
              /Users/ashwin/go/src/github.com/couchbase/couchbase-operator/pkg/util/retryutil/retryutil.go:61 +0x13c
      github.com/couchbase/couchbase-operator/test/e2e/e2eutil.VerifyBucketInfo(0xc4204501e0, 0xc4200adb00, 0x5, 0x2432bf3, 0x7, 0x24357e3, 0xa, 0x243502c, 0x9, 0xc42000e048, ...)
              /Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/e2eutil/couchbase_util.go:314 +0x276
      github.com/couchbase/couchbase-operator/test/e2e.TestNegBucketEdit(0xc4204501e0)
              /Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/bucket_test.go:588 +0xae3
      testing.tRunner(0xc4204501e0, 0x24b2e98)
              /usr/local/opt/go/libexec/src/testing/testing.go:777 +0x16e
      created by testing.(*T).Run
              /usr/local/opt/go/libexec/src/testing/testing.go:824 +0x565

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              simon.murray Simon Murray
              ashwin.govindarajulu Ashwin Govindarajulu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty