Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow set server id for keep server id when restart #96

Closed
wants to merge 1 commit into from
Closed

allow set server id for keep server id when restart #96

wants to merge 1 commit into from

Conversation

nguyenthenguyen
Copy link
Contributor

@nguyenthenguyen nguyenthenguyen commented Mar 29, 2017

When using aedes-persistence-redis and server restart, new server id generated, will topic has retain with old server id, server start heartbeat will publish will topic to client by https://github.com/mcollina/aedes/blob/master/aedes.js#L94

@coveralls
Copy link

coveralls commented Mar 29, 2017

Coverage Status

Coverage remained the same at 97.416% when pulling 23134b2 on nguyenthenguyen:master into 3f8d6a7 on mcollina:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.416% when pulling 23134b2 on nguyenthenguyen:master into 3f8d6a7 on mcollina:master.

@mcollina
Copy link
Collaborator

I'm a bit lost on why this will fix a will topic problem. Maybe we need to fix the will topic problem differently.

Anyhow, would you mind to add a unit test?

@GavinDmello
Copy link
Collaborator

Maybe while streaming the wills we can replace the brokerId with the current broker Id ?

@mcollina
Copy link
Collaborator

mcollina commented Apr 1, 2017

@GavinDmello yes! that's better, and it fixes the problem for every persistence.

@GavinDmello
Copy link
Collaborator

@nguyenthenguyen You can include that in your PR then

@nguyenthenguyen
Copy link
Contributor Author

I'm just try aedes, I don't know how to fix this better. @GavinDmello Could you?

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

Successfully merging this pull request may close these issues.

None yet

4 participants