Title: Jython incorrectly buffers file pipe output with Subprocess(command,stdout='/some/file/path')
Type: behaviour Severity: major
Components: Core Versions: Jython 2.7
Milestone: Jython 2.7.2
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: amak, shadowhawk100, zyasoft
Priority: Keywords:

Created on 2016-10-12.22:02:37 by shadowhawk100, last changed 2017-06-23.16:55:09 by zyasoft.

msg10965 (view) Author: Ibraheem (shadowhawk100) Date: 2016-10-12.22:02:35
I created this bug in RobotFramework:

After further investigation, it seems that this is actually a bug with Jython's implementation of Subprocess and not an issue with RobotFramework itself (see comments in github issue).

Basically, when using Subprocess to run a db-query script which generates 174 MB of stdout data piped directly to a file, Subprocess with stdout redirected to a file takes about 150 seconds to complete while the script normally completes in about 17 seconds in the shell or using Python System calls.

Jython's implementation of Subprocess when using file pipes needs to be fixed to pipe directly to a file instead of doing whatever it is doing now.

I'm kind of new to Jython and how exactly it does everything it does so I hope you'll excuse me if I misdiagnosed the cause a bit :) ... I am pretty sure this is a Jython problem though!
Date User Action Args
2017-06-23 16:55:09zyasoftsetresolution: remind
milestone: Jython 2.7.2
2016-10-14 16:20:36amaksetnosy: + amak
2016-10-12 23:31:52zyasoftsetnosy: + zyasoft
2016-10-12 22:02:38shadowhawk100create