Issue2525

classification
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:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: amak, shadowhawk100, zyasoft
Priority: Keywords:

Created on 2016-10-12.22:02:37 by shadowhawk100, last changed 2016-10-14.16:20:36 by amak.

Messages
msg10965 (view) Author: Ibraheem (shadowhawk100) Date: 2016-10-12.22:02:35
I created this bug in RobotFramework:
https://github.com/robotframework/robotframework/issues/2457

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!
History
Date User Action Args
2016-10-14 16:20:36amaksetnosy: + amak
2016-10-12 23:31:52zyasoftsetnosy: + zyasoft
2016-10-12 22:02:38shadowhawk100create