Comments (13)
hey @pdecat
Could this be fixed by your fix in turbot/steampipe-plugin-sdk#586 ?
interesting - that is a possibility. As I mentioned in the query description, the case I was investigating seemed to be a deadlock between refresh connections and a user query.
However in the logs you have pasted, this appears to be a deadlock between user queries, which could well be fixed by - or at least related to turbot/steampipe-plugin-sdk#586
from powerpipe.
Quick note I hit this once or twice today using steampipe v0.21.1 and the latest AWS plugin.
from powerpipe.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
from powerpipe.
Just noticed I'm facing this randomly too. Digging...
from powerpipe.
Hi @kaidaguerre, you mentioned:
It seems to be a deadlock between the refresh connection query and the benchmark query
Did you happen by any chance to investigate a bit more?
Could you point me to the code where the refresh connection query is?
Turns out I'm seing this error quite often actually, even on very simple queries:
# grep -A 5 "deadlock detected" inventorying-job-2023-09-06.log
2023-09-06 09:09:50,152 ERROR Caught exception: deadlock detected
LINE 12: FROM azure_application_insight
^
DETAIL: Process 4214 waits for AccessShareLock on relation 31730 of database 16384; blocked by process 4213.
Process 4213 waits for AccessExclusiveLock on relation 31820 of database 16384; blocked by process 4214.
HINT: See server log for query details.
--
2023-09-06 09:20:06,283 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_api_management
^
DETAIL: Process 9079 waits for AccessShareLock on relation 45057 of database 16384; blocked by process 9078.
Process 9078 waits for AccessExclusiveLock on relation 45153 of database 16384; blocked by process 9079.
HINT: See server log for query details.
--
2023-09-06 09:23:02,478 ERROR Caught exception: deadlock detected
LINE 19: FROM azure_private_dns_zone
^
DETAIL: Process 9822 waits for AccessShareLock on relation 48117 of database 16384; blocked by process 9821.
Process 9821 waits for AccessExclusiveLock on relation 48129 of database 16384; blocked by process 9822.
HINT: See server log for query details.
--
2023-09-06 09:39:45,695 ERROR Caught exception: deadlock detected
LINE 19: FROM azure_private_dns_zone
^
DETAIL: Process 18660 waits for AccessShareLock on relation 75585 of database 16384; blocked by process 18659.
Process 18659 waits for AccessExclusiveLock on relation 75615 of database 16384; blocked by process 18660.
HINT: See server log for query details.
--
2023-09-06 09:42:27,262 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_automation_account
^
DETAIL: Process 20394 waits for AccessShareLock on relation 82693 of database 16384; blocked by process 20393.
Process 20393 waits for AccessExclusiveLock on relation 82696 of database 16384; blocked by process 20394.
HINT: See server log for query details.
--
2023-09-06 09:55:20,643 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_automation_account
^
DETAIL: Process 27093 waits for AccessShareLock on relation 100836 of database 16384; blocked by process 27092.
Process 27092 waits for AccessExclusiveLock on relation 100884 of database 16384; blocked by process 27093.
HINT: See server log for query details.
--
2023-09-06 10:02:33,483 ERROR Caught exception: deadlock detected
LINE 24: FROM azure_app_service_plan
^
DETAIL: Process 31736 waits for AccessShareLock on relation 112855 of database 16384; blocked by process 31735.
Process 31735 waits for AccessExclusiveLock on relation 112948 of database 16384; blocked by process 31736.
HINT: See server log for query details.
--
2023-09-06 10:09:33,936 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_container_registry
^
DETAIL: Process 35614 waits for AccessShareLock on relation 127452 of database 16384; blocked by process 35613.
Process 35613 waits for AccessExclusiveLock on relation 127467 of database 16384; blocked by process 35614.
HINT: See server log for query details.
--
2023-09-06 10:10:04,376 ERROR Caught exception: deadlock detected
LINE 26: FROM azure_network_interface AS nic,
^
DETAIL: Process 35875 waits for AccessShareLock on relation 129265 of database 16384; blocked by process 35874.
Process 35874 waits for AccessExclusiveLock on relation 129298 of database 16384; blocked by process 35875.
HINT: See server log for query details.
--
2023-09-06 10:12:58,963 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_container_registry
^
DETAIL: Process 36939 waits for AccessShareLock on relation 129786 of database 16384; blocked by process 36938.
Process 36938 waits for AccessExclusiveLock on relation 129798 of database 16384; blocked by process 36939.
HINT: See server log for query details.
--
2023-09-06 10:13:11,023 ERROR Caught exception: deadlock detected
LINE 12: FROM azure_application_insight
^
DETAIL: Process 4214 waits for AccessShareLock on relation 31730 of database 16384; blocked by process 4213.
Process 4213 waits for AccessExclusiveLock on relation 31820 of database 16384; blocked by process 4214.
HINT: See server log for query details.
--
2023-09-06 10:13:11,024 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_api_management
^
DETAIL: Process 9079 waits for AccessShareLock on relation 45057 of database 16384; blocked by process 9078.
Process 9078 waits for AccessExclusiveLock on relation 45153 of database 16384; blocked by process 9079.
HINT: See server log for query details.
2023-09-06 10:13:11,024 ERROR Caught exception: deadlock detected
LINE 19: FROM azure_private_dns_zone
^
DETAIL: Process 9822 waits for AccessShareLock on relation 48117 of database 16384; blocked by process 9821.
Process 9821 waits for AccessExclusiveLock on relation 48129 of database 16384; blocked by process 9822.
HINT: See server log for query details.
--
2023-09-06 10:13:11,025 ERROR Caught exception: deadlock detected
LINE 19: FROM azure_private_dns_zone
^
DETAIL: Process 18660 waits for AccessShareLock on relation 75585 of database 16384; blocked by process 18659.
Process 18659 waits for AccessExclusiveLock on relation 75615 of database 16384; blocked by process 18660.
HINT: See server log for query details.
--
2023-09-06 10:13:11,026 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_automation_account
^
DETAIL: Process 20394 waits for AccessShareLock on relation 82693 of database 16384; blocked by process 20393.
Process 20393 waits for AccessExclusiveLock on relation 82696 of database 16384; blocked by process 20394.
HINT: See server log for query details.
--
2023-09-06 10:13:11,026 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_automation_account
^
DETAIL: Process 27093 waits for AccessShareLock on relation 100836 of database 16384; blocked by process 27092.
Process 27092 waits for AccessExclusiveLock on relation 100884 of database 16384; blocked by process 27093.
HINT: See server log for query details.
--
2023-09-06 10:13:11,027 ERROR Caught exception: deadlock detected
LINE 24: FROM azure_app_service_plan
^
DETAIL: Process 31736 waits for AccessShareLock on relation 112855 of database 16384; blocked by process 31735.
Process 31735 waits for AccessExclusiveLock on relation 112948 of database 16384; blocked by process 31736.
HINT: See server log for query details.
--
2023-09-06 10:13:11,027 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_container_registry
^
DETAIL: Process 35614 waits for AccessShareLock on relation 127452 of database 16384; blocked by process 35613.
Process 35613 waits for AccessExclusiveLock on relation 127467 of database 16384; blocked by process 35614.
HINT: See server log for query details.
2023-09-06 10:13:11,027 ERROR Caught exception: deadlock detected
LINE 26: FROM azure_network_interface AS nic,
^
DETAIL: Process 35875 waits for AccessShareLock on relation 129265 of database 16384; blocked by process 35874.
Process 35874 waits for AccessExclusiveLock on relation 129298 of database 16384; blocked by process 35875.
HINT: See server log for query details.
--
2023-09-06 10:13:11,027 ERROR Caught exception: deadlock detected
LINE 9: FROM azure_container_registry
^
DETAIL: Process 36939 waits for AccessShareLock on relation 129786 of database 16384; blocked by process 36938.
Process 36938 waits for AccessExclusiveLock on relation 129798 of database 16384; blocked by process 36939.
HINT: See server log for query details.
from powerpipe.
Could this be fixed by your fix in turbot/steampipe-plugin-sdk#586 ?
from powerpipe.
Also, we did not face the issue with Steampipe version 0.19.5 and the Azure plugin version 0.41.0, it all started when we upgraded them to 0.20.9 and 0.46.0 respectively.
from powerpipe.
So this fix was not published in any stable release AFAIU, was it?
from powerpipe.
Hmm, I ran a long running (about 1h15) test similar to the one in #295 with Steampipe version 0.20.11 and Azure plugin version 0.49.0, and the deadlock did not occur.
from powerpipe.
Can confirm our issue has not reproduced since the update from Steampipe version 0.20.9 to 0.20.11 and Azure plugin version 0.46.0 to 0.49.0.
from powerpipe.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
from powerpipe.
This issue was closed because it has been stalled for 90 days with no activity.
from powerpipe.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
from powerpipe.
Related Issues (20)
- .ppvars file parsing bug when defining variables that follows HCL formatting HOT 1
- category href not working
- Powerpipe dashboard displaying incomplete results HOT 11
- Remove steampipe references in control templates
- Add thousands separator to numeric table values
- `powerpipe` tries to connect to a backend during `dry-run`
- Status card behavior: show card only for the filtered status and clicking the status card should toggle the status filter
- Steampipe CLI doesn't return Tenant/Subscription ID in the event of a control failure (error status) HOT 1
- on the web UI of powerpipe, the selected search_path disappear when i click a dashboard
- Add `query` property to text block to allow the use of inputs to control the text block contents
- Height argument for dashboard table for pagination and to control the number of row displayed at any time
- When calling mod update, the mod argument (if any) is not respected
- Add benchmark and dashboard execution timeouts
- Fix weird bug in filter
- Powerpipe crashes when `USER` env var is unset
- Add --pull flag to control mod update strategy
- Add an option to hide dependent mod benchmarks in the dashboard HOT 2
- Remove `host` from sample workspaces file
- Search controls and run a single control as a dashboard
- Dashboard UI should handle graph categories containing `resource_name` rather than `name`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerpipe.