Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

cluster: race condition in raft/cluster #67

Description

@SUMUKHA-PK

Describe the bug
The raft/cluster package has a message queue channel which passes on the incoming messages through it like this:

c.messages <- incomingPayload{
			origin:  conn,
			payload: data,
		}

This channel when closed asynchronously from its parent function leads to a race condition.

To Reproduce
Reproduced while cluster.Close() is called, in the raft branch.

Expected behavior
Race conditions must not exist, ever!

Screenshots
Screenshot 2020-10-26 at 4 52 11 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions