-
Notifications
You must be signed in to change notification settings - Fork 111
[BUG] - Pipe buffer deadlockΒ #2928
Copy link
Copy link
Closed
Labels
type: bug πSomething isn't workingSomething isn't working
Description
Describe the bug
I've seen an issue where there is deadlock shortly after running a nebari deploy command. The deadlock occurs when reading in the state from the tofu show command. The issue is a pipe buffer deadlock.
See the warning in the python docs:
Warning Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers filling up and blocking the child process.
We don't want to use communicate in this case b/c it blocks and we would only display output to our users after terraform stops running which could be very long in some cases.
Expected behavior
No deadlock
OS and architecture in which you are running Nebari
Linux
How to Reproduce the problem?
Working on it
Command output
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bug πSomething isn't workingSomething isn't working
Type
Projects
Status
Done πͺπΎ