Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-2079

Concurrency issue when the agent pods is restarted

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • eBPF
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      when ebpf agent restarts we see couple of reloads with the following traces
      
      
      fatal error: concurrent map read and map writegoroutine 119 [running]:
      github.com/netobserv/netobserv-ebpf-agent/pkg/ifaces.(*Watcher).sendUpdates(0xc000b6bc00, {0x2c94800, 0xc003eec960}, {0xc003f3c1e0, 0x24}, 0xc000bf1730)
          /opt/app-root/pkg/ifaces/watcher.go:70 +0xbf
      created by github.com/netobserv/netobserv-ebpf-agent/pkg/ifaces.(*Watcher).Subscribe in goroutine 1
          /opt/app-root/pkg/ifaces/watcher.go:58 +0x15b
      
      refer to 
      https://github.com/netobserv/netobserv-ebpf-agent/issues/524

       

       

       

      Steps to Reproduce:

      1.restart agent pods
      2.
      3.
      

      Actual results:

      pods crashes couple of times then come up fine

      Expected results:

      we shouldn't have any crashes when pod restarts

              mmahmoud@redhat.com Mohamed Mahmoud (Inactive)
              mmahmoud@redhat.com Mohamed Mahmoud (Inactive)
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: