-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
deadlock on table cluster_events #4986
Labels
Comments
@luo985 thanka for the report! |
bungle
added a commit
that referenced
this issue
Oct 10, 2019
As you already removed the And reload your |
@bungle |
bungle
added a commit
that referenced
this issue
Oct 14, 2019
@luo985, the pr got merged, so closing this. thank you for trying it out! |
hishamhm
pushed a commit
that referenced
this issue
Oct 14, 2019
kikito
pushed a commit
that referenced
this issue
Oct 22, 2019
dndx
pushed a commit
that referenced
this issue
Oct 22, 2019
snt8amr
pushed a commit
to snt8amr/kong
that referenced
this issue
May 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, when i change route or targets frequently by admin api, then found deadlock on the admin_log:
2019/08/12 14:43:29 [error] 21332#0: *795492 [lua] cache.lua:315: invalidate(): [DB cache] failed to broadcast cached entity invalidation: could not insert invalidation row: ERROR: deadlock detected Process 26420 waits for ShareLock on transaction 53508147; blocked by process 23771. Process 23771 waits for ShareLock on transaction 53507968; blocked by process 20058. Process 20058 waits for AccessExclusiveLock on tuple (1878,2) of relation 41571 of database 16682; blocked by process 26420., client: 127.0.0.1, server: kong_admin, request: "DELETE /upstreams/upstream.cl.dev.1.modify-configuration-test71.system/targets/172.24.140.49:8103 HTTP/1.1", host: "apigw.kong.mng.ucm9tioz0htbll1u" 2019/08/12 14:43:30 [error] 21333#0: *793042 [lua] handler.lua:272: failed broadcasting target create to cluster: could not insert invalidation row: ERROR: deadlock detected Process 15074 waits for ShareLock on transaction 53508147; blocked by process 23771. Process 23771 waits for ShareLock on transaction 53507968; blocked by process 20058. Process 20058 waits for AccessExclusiveLock on tuple (1878,2) of relation 41571 of database 16682; blocked by process 15074., client: 127.0.0.1, server: kong_admin, request: "POST /upstreams/upstream.cl.dev.1.modify-configuration-test53.system/targets HTTP/1.1", host: "apigw.kong.mng.ucm9tioz0htbll1u" 2019/08/12 14:43:30 [error] 21327#0: *793591 [lua] cache.lua:315: invalidate(): [DB cache] failed to broadcast cached entity invalidation: could not insert invalidation row: receive_message: failed to get type: timeout, client: 127.0.0.1, server: kong_admin, request: "POST /upstreams/upstream.cl.dev.1.modify-configuration-test12.system/targets HTTP/1.1", host: "apigw.kong.mng.ucm9tioz0htbll1u" 2019/08/12 14:43:31 [error] 21330#0: *794451 [lua] cache.lua:315: invalidate(): [DB cache] failed to broadcast cached entity invalidation: could not insert invalidation row: ERROR: deadlock detected
i remove the TRIGGER(delete_expired_cluster_events) on table cluster_events, then issues did not occur。
Additional Details & Logs
The text was updated successfully, but these errors were encountered: