Skip to content

occasionally panic #342

@shushenghong

Description

@shushenghong
panic: interface conversion: crdt.Map is *crdt.Durable, not *crdt.Volatile

goroutine 70 [running]:
github.com/emitter-io/emitter/internal/event/crdt.(*Durable).Merge(0xc000094b20, 0x4f4a180, 0xc000094b20)
	/Users/shushenghong/Documents/workspace/demo/emitter/internal/event/crdt/durable.go:145 +0x185
github.com/emitter-io/emitter/internal/event.(*State).Merge(0xc000094150, 0x4f35ee0, 0xc000094150, 0x0, 0x0)
	/Users/shushenghong/Documents/workspace/demo/emitter/internal/event/state.go:105 +0x196
github.com/weaveworks/mesh.(*gossipSender).Send(0xc0001b4550, 0x4f35ee0, 0xc000094150)
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/gossip.go:186 +0x15d
github.com/weaveworks/mesh.(*gossipChannel).relay(0xc0003a2300, 0x1, 0x4f35ee0, 0xc000094150)
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/gossip_channel.go:123 +0x1c5
github.com/weaveworks/mesh.(*gossipChannel).Send(0xc0003a2300, 0x4f35ee0, 0xc000094150)
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/gossip_channel.go:94 +0x5f
github.com/weaveworks/mesh.(*Router).sendAllGossip(0xc0003f82a0)
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/router.go:209 +0xff
github.com/weaveworks/mesh.(*localPeer).actorLoop(0xc0001b4140, 0xc00008e240)
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/local_peer.go:160 +0x205
created by github.com/weaveworks/mesh.newLocalPeer
	/Users/shushenghong/Documents/tools/go/pkg/mod/github.com/weaveworks/[email protected]/local_peer.go:42 +0x245

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions