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

Fix/1160 fix clustering #1437

Merged
merged 7 commits into from
Jul 27, 2016
Merged

Conversation

askanhesse
Copy link
Contributor

@askanhesse askanhesse commented Jul 24, 2016

Summary

I just changed the position of inconsistency check from clustering to prevent that an node removes itself if it failed to cluster.

Instead of checking it when joining an cluster, I now check it when starting the node.

Full changelog

  • Fixed bug that unclustered nodes remove themself from database when failed to join a cluster.

Issues resolved

Fix #1160

@subnetmarco
Copy link
Member

subnetmarco commented Jul 25, 2016

@asknaskan it seems like there are unresolved conflicts

@askanhesse
Copy link
Contributor Author

askanhesse commented Jul 25, 2016

@thefosk Well, I noticed a bit late I'm being at master code base. I created something similar on the next code base. The next branch version is not working at the vagrant kong, so I have to wait for checks - But it should fit.

@askanhesse
Copy link
Contributor Author

askanhesse commented Jul 25, 2016

Look's like there is a lot of stuff broken at the moment, so the checks failed. I'm not be able to start an kong on next branch (docker) at the moment.
The changes are very small and fitting to the old on master branch code I changed.

If you want to, please try to test it.

@@ -92,6 +92,9 @@ function _M.start(kong_config, dao)
return nil, "could not start Serf: "..err
end

-- cleanup current node from cluster to prevent inconsistency of data
serf:cleanup()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asknaskan can you please check for errors here?

local ok, err = serf:cleanup()
if not ok then return nil, err end

@subnetmarco subnetmarco merged commit 56689a2 into Kong:next Jul 27, 2016
@askanhesse askanhesse deleted the fix/1160-fix-clustering branch August 8, 2016 09:08
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.

2 participants