Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-3269

fatal error: concurrent map writes in openolt-adapter

    XMLWordPrintable

    Details

      Description

      This seems to happen reliably when setting "memoryMode=true" in ETCD.

      An example is this pipeline: https://jenkins.opencord.org/view/voltha-scale-measurements/job/voltha-scale-measurements-1-16-32-att-subscribers/224/ 

      fatal error: concurrent map read and map write
      
      goroutine 584885 [running]:
      runtime.throw(0xfd5a96, 0x21)
      	/usr/local/go/src/runtime/panic.go:774 +0x72 fp=0xc000e51680 sp=0xc000e51650 pc=0x4397b2
      runtime.mapaccess2(0xe31860, 0xc0003b8f60, 0xc000e51704, 0x30, 0x48)
      	/usr/local/go/src/runtime/map.go:470 +0x278 fp=0xc000e516c8 sp=0xc000e51680 pc=0x4184d8
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*OpenOltFlowMgr).UpdateGemPortForPktIn(0xc000444210, 0x111e5c0, 0xc00003e1a8, 0x180000000e, 0x4590000e1d0)
      	/go/src/github.com/opencord/voltha-openolt-adapter/internal/pkg/core/openolt_flowmgr.go:3727 +0x109 fp=0xc000e51770 sp=0xc000e516c8 pc=0xc9fe49
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*OpenOltFlowMgr).GetLogicalPortFromPacketIn(0xc000444210, 0x111e5c0, 0xc00003e1a8, 0xc0048825a0, 0x7a, 0x229, 0x0)
      	/go/src/github.com/opencord/voltha-openolt-adapter/internal/pkg/core/openolt_flowmgr.go:3007 +0x3a6 fp=0xc000e517f0 sp=0xc000e51770 pc=0xc92f76
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*DeviceHandler).handlePacketIndication(0xc0002769a0, 0x111e5c0, 0xc00003e1a8, 0xc0048825a0, 0x4, 0xc000793678)
      	/go/src/github.com/opencord/voltha-openolt-adapter/internal/pkg/core/device_handler.go:1742 +0x9c fp=0xc000e51e20 sp=0xc000e517f0 pc=0xc44bbc
      github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*DeviceHandler).handleIndication.func7(0xc0002769a0, 0x111e5c0, 0xc00003e1a8, 0xc0048825a0)
      	/go/src/github.com/opencord/voltha-openolt-adapter/internal/pkg/core/device_handler.go:561 +0x6a fp=0xc000e51fc0 sp=0xc000e51e20 pc=0xca5cba
      runtime.goexit()
      	/usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc000e51fc8 sp=0xc000e51fc0 pc=0x466911
      created by github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*DeviceHandler).handleIndication
      	/go/src/github.com/opencord/voltha-openolt-adapter/internal/pkg/core/device_handler.go:560 +0x1427
      

        Attachments

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

          Activity

            People

            Assignee:
            teone Matteo Scandolo
            Reporter:
            teone Matteo Scandolo
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes