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

Prepare v0.19.2 release #2350

Merged

Conversation

patrick-east
Copy link
Contributor

Cherry picking the bug fix for #2343 onto the 0.19 release branch and preparing for a 0.19.2 release

tsandall and others added 2 commits April 27, 2020 15:30
This change fixes a race condition in the manager that was caused by
registering the storage trigger _after_ the plugins had been
started. The problem was that if the bundle plugin was able to
download and activate before the trigger registration in the manager
went through, the store and the manager would be out-of-sync after
startup. The bundle would activate successfully but the plugin
manager would not see the change. This meant that the server health
check, status plugin, etc. would report successful activation and
clients using either of those APIs for synchronization could start
querying. If they executed a query within this window, virtual docs
would not be visible because the plugin manager would not yet have a
compiler to return to the server. Similarly, if clients queried the
v1/policies API they would see the raw policy contents but no AST
(since the latter is retrieved from the compiler.)

To remove the race condition the plugin manager simply registers the
trigger before starting any of the plugins. This ensures that it sees
all changes made by any of the plugins.

Fixes open-policy-agent#2343

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Signed-off-by: Patrick East <east.patrick@gmail.com>
@patrick-east patrick-east requested a review from tsandall April 27, 2020 22:36
@patrick-east patrick-east changed the title Release 0.19 Prepare v0.19.2 release Apr 27, 2020
@patrick-east
Copy link
Contributor Author

@tsandall, FYI I opted to just take the single bug fix commit versus the whole PR with the other refactors and testing. I figured it was good precedent for us to keep cherry-pick's to a minimum.

@patrick-east patrick-east merged commit 40f9c1f into open-policy-agent:release-0.19 Apr 27, 2020
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