Jira (FACT-2793) Open3.capture3 hangs if a long running process gets soft killed

6 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Sep 9, 2020, 8:51:04 AM9/9/20
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Bug FACT-2793
Open3.capture3 hangs if a long running process gets soft killed
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/09/09 5:50 AM
Labels: platform_7
Priority: Normal Normal
Reporter: Bogdan Irimie
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Sep 9, 2020, 8:52:05 AM9/9/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
The error was observed in the puppet-agent CI

{code}
09:03:49       Info: Using configured environment 'production'
09:03:49       Info: Retrieving pluginfacts
09:03:49       Info: Retrieving plugin
09:03:49       Info: Retrieving locales
10:03:49       #<Thread:0x00000000039a8b18 /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:287 run> terminated with exception (report_on_exception is true):
10:03:49       /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:287:in `read': stream closed in another thread (IOError)
10:03:49        from /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:287:in `block (2 levels) in capture3'
10:03:49       #<Thread:0x00000000039a88e8 /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:288 run> terminated with exception (report_on_exception is true):
10:03:49       /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:288:in `read': stream closed in another thread (IOError)
10:03:49        from /opt/puppetlabs/puppet/lib/ruby/2.7.0/open3.rb:288:in `block (2 levels) in capture3'
16:58:54 Build timed out (after 480 minutes). Marking the build as failed.
{code}

Bogdan Irimie (Jira)

unread,
Sep 9, 2020, 8:53:04 AM9/9/20
to puppe...@googlegroups.com


After some investigation it seams that `Open3.capture3` hangs if the process it is running in kets soft kill while `capture3` is waiting for output.
Reply all
Reply to author
Forward
0 new messages