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

connect: fix bug in preventing some namespaced config entry modifications #8601

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

rboyer
Copy link
Member

@rboyer rboyer commented Sep 2, 2020

Whenever an upsert/deletion of a config entry happens, within the open
state store transaction we speculatively test compile all discovery
chains that may be affected by the pending modification to verify that
the write would not create an erroneous scenario (such as splitting
traffic to a subset that did not exist).

If a single discovery chain evaluation references two config entries
with the same kind and name in different namespaces then sometimes the
upsert/deletion would be falsely rejected. It does not appear as though
this bug would've let invalid writes through to the state store so the
correction does not require a cleanup phase.

…ions

Whenever an upsert/deletion of a config entry happens, within the open
state store transaction we speculatively test compile all discovery
chains that may be affected by the pending modification to verify that
the write would not create an erroneous scenario (such as splitting
traffic to a subset that did not exist).

If a single discovery chain evaluation references two config entries
with the same kind and name in different namespaces then sometimes the
upsert/deletion would be falsely rejected. It does not appear as though
this bug would've let invalid writes through to the state store so the
correction does not require a cleanup phase.
@rboyer rboyer added type/bug Feature does not function as expected backport/1.7 labels Sep 2, 2020
@rboyer rboyer requested review from freddygv and a team September 2, 2020 15:15
@rboyer rboyer self-assigned this Sep 2, 2020
@rboyer rboyer merged commit d0f74cd into master Sep 2, 2020
@rboyer rboyer deleted the fix-ns-disco-chain branch September 2, 2020 15:47
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit d0f74cd onto release/1.8.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Sep 2, 2020
…ions (#8601)

Whenever an upsert/deletion of a config entry happens, within the open
state store transaction we speculatively test compile all discovery
chains that may be affected by the pending modification to verify that
the write would not create an erroneous scenario (such as splitting
traffic to a subset that did not exist).

If a single discovery chain evaluation references two config entries
with the same kind and name in different namespaces then sometimes the
upsert/deletion would be falsely rejected. It does not appear as though
this bug would've let invalid writes through to the state store so the
correction does not require a cleanup phase.
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit d0f74cd onto release/1.7.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Sep 2, 2020
…ions (#8601)

Whenever an upsert/deletion of a config entry happens, within the open
state store transaction we speculatively test compile all discovery
chains that may be affected by the pending modification to verify that
the write would not create an erroneous scenario (such as splitting
traffic to a subset that did not exist).

If a single discovery chain evaluation references two config entries
with the same kind and name in different namespaces then sometimes the
upsert/deletion would be falsely rejected. It does not appear as though
this bug would've let invalid writes through to the state store so the
correction does not require a cleanup phase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Feature does not function as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants