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(*) properly check worker_events.post_local() ret values #3692

Merged
merged 1 commit into from
Aug 11, 2018

Conversation

thibaultcha
Copy link
Member

This function can return one of:

  1. true, nil
  2. nil, err
  3. false, nil

Case 3. occurs when the library is already polling, likely in situations
with busy Admin API workloads. Because our return values check were
incorrect, some error logs would appear such as:

[error] 32#0: *6883 [lua] handler.lua:218: [events] could not broadcast crud event: nil, client: 10.x.x.x, server: kong, request: "POST /auth/oauth2/token HTTP/1.1"

This function can return one of:

1. `true, nil`
2. `nil, err`
3. `false, nil`

Case 3. occurs when the library is already polling, likely in situations
with busy Admin API workloads. Because our return values check were
incorrect, some error logs would appear such as:

```
[error] 32#0: *6883 [lua] handler.lua:218: [events] could not broadcast crud event: nil, client: 10.x.x.x, server: kong, request: "POST /auth/oauth2/token HTTP/1.1"
```
@thibaultcha thibaultcha requested a review from Tieske August 11, 2018 00:22
@thibaultcha thibaultcha merged commit 5ad6048 into master Aug 11, 2018
@thibaultcha thibaultcha deleted the fix/post-local-ret-values branch August 11, 2018 00:56
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.

1 participant