When importing nodes using the Feeds module, the Feeds batch process hangs and is unable to be stopped.

The Feeds file upload directory is set to use s3 (s3://feeds).

It seems like the issue comes from the stream_read function.

For large imports where the file size is greater than $count = 8192 there is no problem.
For small imports where the file size is less than $count = 8192 the batch process hangs and never finishes.

Feeds 7.x-2.0-alpha9.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tinny created an issue. See original summary.

tinny’s picture

Issue summary: View changes
tinny’s picture

Patch attached.

tinny’s picture

Status: Active » Needs review
tinny’s picture

tinny’s picture

trrroy’s picture

This worked for me. Thanks!

quicksketch’s picture

Thanks for making this patch. It looks like this problem is specific to the 1.x version, as the 2.x version does not contain this code (it would come from the upstream Amazon StreamWrapper anyway).