Skip to content

fix: [CPCAP-10664] Resolve race condition in backup-daemon#489

Open
mchekalov wants to merge 2 commits into
mainfrom
fix/race-condition-on-environ
Open

fix: [CPCAP-10664] Resolve race condition in backup-daemon#489
mchekalov wants to merge 2 commits into
mainfrom
fix/race-condition-on-environ

Conversation

@mchekalov

Copy link
Copy Markdown
Collaborator

Prevent concurrent threads from modifying the global os.environ when setting the PGPASSWORD variable by using a local process environment copy for subprocess calls.

Prevent concurrent threads from modifying the global os.environ when
setting the PGPASSWORD variable by using a local process environment
copy for subprocess calls.
@mchekalov mchekalov requested a review from Tvion June 18, 2026 11:07
@github-actions github-actions Bot added the bug Something isn't working label Jun 18, 2026
Comment thread services/backup-daemon/docker/granular/pg_backup.py
- fix format
- return using env PGDATABASE
- fix stderr - return cursor to begin before reading
- don't raise err if grep find nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants