Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-17593

Intermittent UT failure in common/cluster/comm_test#TestMetrics: panic: runtime error: index out of range [0] with length 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unverified (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: fabric-orderer
    • Labels:
    • Steps to Reproduce:
      (Please add steps to reproduce)

      Description

      2020-03-05T03:31:34.9115814Z    panic: runtime error: index out of range [0] with length 0
      2020-03-05T03:31:34.9116030Z
      2020-03-05T03:31:34.9116194Z goroutine 1242 [running]:
      2020-03-05T03:31:34.9116434Z testing.tRunner.func1(0xc000225600)
      2020-03-05T03:31:34.9116743Z    /opt/hostedtoolcache/go/1.13.8/x64/src/testing/testing.go:874 +0x69f
      2020-03-05T03:31:34.9117041Z panic(0x1163840, 0xc0004cbca0)
      2020-03-05T03:31:34.9117351Z    /opt/hostedtoolcache/go/1.13.8/x64/src/runtime/panic.go:679 +0x1b2
      2020-03-05T03:31:34.9117799Z github.com/hyperledger/fabric/common/metrics/metricsfakes.(*Histogram).WithArgsForCall(0xc0000ca148, 0x0, 0x0, 0x0, 0x0)
      2020-03-05T03:31:34.9118320Z    /home/vsts/work/1/go/src/github.com/hyperledger/fabric/common/metrics/metricsfakes/histogram.go:95 +0x139
      2020-03-05T03:31:34.9119126Z github.com/hyperledger/fabric/orderer/common/cluster_test.TestMetrics.func5(0xc000100000, 0xc000100580, 0xc0000c9c00)
      2020-03-05T03:31:34.9119628Z    /home/vsts/work/1/go/src/github.com/hyperledger/fabric/orderer/common/cluster/comm_test.go:1208 +0xdc
      2020-03-05T03:31:34.9120091Z github.com/hyperledger/fabric/orderer/common/cluster_test.TestMetrics.func7(0xc000225600)
      2020-03-05T03:31:34.9120568Z    /home/vsts/work/1/go/src/github.com/hyperledger/fabric/orderer/common/cluster/comm_test.go:1276 +0x611
      2020-03-05T03:31:34.9125696Z testing.tRunner(0xc000225600, 0xc000de0fa0)
      2020-03-05T03:31:34.9127775Z    /opt/hostedtoolcache/go/1.13.8/x64/src/testing/testing.go:909 +0x19a
      2020-03-05T03:31:34.9128802Z created by testing.(*T).Run
      2020-03-05T03:31:34.9130740Z    /opt/hostedtoolcache/go/1.13.8/x64/src/testing/testing.go:960 +0x652
      
      2020-03-05T03:31:34.9137355Z FAIL	github.com/hyperledger/fabric/orderer/common/cluster	19.013s
      

        Attachments

        1. comm_test_03242020.log
          323 kB
        2. TestMetrics03312020.log
          324 kB
        3. ut_failure.log
          369 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              wenjian Wenjian Qiao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration