Skip to content

Getting race during reconnect #22

@millerlogic

Description

@millerlogic

Hi, I'm getting the below race condition when emitter disappears and reappears (reconnect). I'm getting it consistently when killing (SIGTERM) emitter.

It looks like the issue is in github.com/eclipse/paho.mqtt.golang however it was potentially fixed in v1.2.0

WARNING: DATA RACE
Read at 0x00c00010cb18 by goroutine 62:
  github.com/eclipse/paho%2emqtt%2egolang.keepalive()
      /home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/ping.go:42 +0x22e

Previous write at 0x00c00010cb18 by goroutine 28:
  github.com/eclipse/paho%2emqtt%2egolang.(*client).reconnect()
      /home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:377 +0x11f8

Goroutine 62 (running) created at:
  github.com/eclipse/paho%2emqtt%2egolang.(*client).reconnect()
      /home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:374 +0x15fc

Goroutine 28 (running) created at:
  github.com/eclipse/paho%2emqtt%2egolang.(*client).internalConnLost()
      /home/dev/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.1.1/client.go:465 +0x10c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions