Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Calling RaftNetworkClient.start() after RaftNetworkClient.stop() will fail #21

Open
allengeorge opened this issue Dec 1, 2013 · 1 comment
Assignees
Labels

Comments

@allengeorge
Copy link
Owner

Ideally, the caller should be able to start/stop a component multiple times. This may not be possible with RaftNetworkClient because the internal ChannelFactory instances have shutdown called on them. It's unclear to me whether the caller would have to re-initialize the system in order for everything to work.

@ghost ghost assigned allengeorge Dec 1, 2013
@allengeorge
Copy link
Owner Author

I have inconsistent management of components within libraft-core, libraft-agent and kayvee.

Ideally all components should have the following lifecycle:

                                +-----------------+
                                |                 |
                                |                 |
                                |   initialize    |
                                |                 |
                                |                 |
                                +--------+--------+
                                         |
                                         |
                                +--------v--------+
                                |                 |
                                |                 |
                     +---------->      start      |
                     |          |                 |
                     |          |                 |
                     |          +--------+--------+
                     |                   |
                     |                   |
                     |          +--------v--------+
                     |          |                 |
                     |          |                 |
                     +----------+      stop       |
                                |                 |
                                |                 |
                                +--------+--------+
                                         |
                                         |
                                +--------v--------+
                                |                 |
                                |                 |
                                |     teardown    |
                                |                 |
                                |                 |
                                +-----------------+

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant