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

[4.3] HELP-16635: deduct tokens on all API requests #6628

Merged
merged 2 commits into from
Sep 3, 2020
Merged

Conversation

jamesaimonetti
Copy link
Member

Each time an API request is made, deduct the token cost
from the associated bucket.

Each time an API request is made, deduct the token cost
from the associated bucket.

As part of the changes, some property tests needed updating because
they exceed the token bucket. These tests disable the cost while they
run and replace the prior value when they end.

Another issue resolved is that bindings in blackhole, when using the
kz_hooks facility, were done asynchronously. This meant that a speedy
response to the websocket client followed by a generated event could
occur faster than the kz_hook listener could bind its AMQP queue to
the new binding.

The blackhole response to a subscription now blocks until the AMQP
queue is established.
@icehess icehess merged commit 3806bff into 4.3 Sep 3, 2020
@icehess icehess deleted the HELP-16635-4.3 branch September 3, 2020 17:41
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