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

Add server test case for the bundle update - query API handler scenario #4792

Closed
ashutosh-narkar opened this issue Jun 17, 2022 · 0 comments · Fixed by #6251
Closed

Add server test case for the bundle update - query API handler scenario #4792

ashutosh-narkar opened this issue Jun 17, 2022 · 0 comments · Fixed by #6251
Assignees
Labels

Comments

@ashutosh-narkar
Copy link
Member

The query API handler (ie. v1DataPost) should accept client requests even when OPA is performing bundle activation. A recent change updated v1DataPost handler to open a read txn on the store which would prevent api requests from being blocked while a bundle is activating. We should add a server test to exercise this scenario. The test case would open a write transaction on the store and then simulate client requests to ensure that the server still processes them.

@ashutosh-narkar ashutosh-narkar self-assigned this Jun 17, 2022
ashutosh-narkar added a commit to ashutosh-narkar/opa that referenced this issue Sep 26, 2023
This test case exercises the scenario when a bundle is being written
to the store (ie. active write transaction) and the OPA server handling
a policy eval request at the same time. The former should not block
the later.

Fixes: open-policy-agent#4792

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
ashutosh-narkar added a commit to ashutosh-narkar/opa that referenced this issue Sep 27, 2023
This test case exercises the scenario when a bundle is being written
to the store (ie. active write transaction) and the OPA server handling
a policy eval request at the same time. The former should not block
the later.

Fixes: open-policy-agent#4792

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
ashutosh-narkar added a commit that referenced this issue Sep 27, 2023
This test case exercises the scenario when a bundle is being written
to the store (ie. active write transaction) and the OPA server handling
a policy eval request at the same time. The former should not block
the later.

Fixes: #4792

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant