turbot / steampipe

Zero-ETL, infinite possibilities. Live query APIs, code & more with SQL. No DB required.
https://steampipe.io
GNU Affero General Public License v3.0
6.79k stars 263 forks source link

Race condition between service startup and service status #4143

Closed kaidaguerre closed 3 weeks ago

kaidaguerre commented 6 months ago

When 2 containers are started, one of which startsa the steampipe service and one polls service status, sometimes trhe postmaster.pid file is deleted, causing postgres to abort

This is probably a race condition between thge writing of the state file and service status calling GetState, which if it fails to load the file checks the pid from the postmaster.pid file, and potentially deletes the file if the pid is not found

github-actions[bot] commented 4 months ago

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.

shaicoleman commented 3 months ago

If steampipe would listen to a random local socket on each execution instead of a network port, this wouldn't happen.

This will also solve #4155

github-actions[bot] commented 1 month ago

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.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stalled for 90 days with no activity.