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 datastore corruption on reload due to shrinking config size #2340

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

elsbrock
Copy link
Contributor

This commit fixes a corruption in the datastore that leads to workers becoming
unresponsive due to an invalid configuration.

The bug occurs when the cluster config serialization output length shrinks
below the current config's output length. This typically only happens on
workers since leaders modify their own config directly instead of importing the
serialized version from the kv backend.

This commit truncates the object field before reloading the new config from the
kv, as is done during initial config load.

fixes #2328

This commit fixes a corruption in the datastore that leads to workers becoming
unresponsive due to an invalid configuration.

The bug occurs when the cluster config serialization output length shrinks
below the current config's output length. This typically only happens on
workers since leaders modify their own config directly instead of importing the
serialized version from the kv backend.

This commit truncates the object field before reloading the new config from the
kv, as is done during initial config load.

fixes traefik#2328
@elsbrock elsbrock requested a review from a team as a code owner October 30, 2017 09:52
@ldez ldez changed the base branch from master to v1.4 October 30, 2017 09:52
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez added this to the 1.4 milestone Oct 30, 2017
Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM 👏

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

5 participants