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

Race condition between service startup and service status #4143

Open
kaidaguerre opened this issue Feb 21, 2024 · 2 comments
Open

Race condition between service startup and service status #4143

kaidaguerre opened this issue Feb 21, 2024 · 2 comments
Assignees
Labels
blocker Absolutely needed for LW03 release bug Something isn't working
Milestone

Comments

@kaidaguerre
Copy link
Contributor

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

@kaidaguerre kaidaguerre added bug Something isn't working blocker Absolutely needed for LW03 release labels Feb 21, 2024
@kaidaguerre kaidaguerre added this to the 0.22.0 milestone Feb 21, 2024
@kaidaguerre kaidaguerre self-assigned this Feb 21, 2024
Copy link

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 github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Apr 22, 2024
@shaicoleman
Copy link

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 github-actions bot removed the stale No recent activity has been detected on this issue/PR and it will be closed label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Absolutely needed for LW03 release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants