Skip to content

Not opening/reading all files #70

@petsoukos

Description

@petsoukos

Description

Trying to read 10 files from disk usually ends up skipping some of them randomly with error

Unknown error calling: "eio_open"

Takes for ever to load with the ChildProcess adapter.
strlen() also shows different bytes each time (might be different issue)

OS/PHP versions

  • Ubuntu Linux 19.04/Kernel 5.0.0-29-generic
  • PHP 7.3.9-1+ubuntu19.04.1+deb.sury.org+1 (cli) (built: Sep 2 2019 12:54:43)
  • ext-eio 2.0.4

Sample script

https://gist.github.com/petsoukos/2cc5f7cc3181efbaab12d43fbe325644

Create some random files with sizes over 3MB up to 150MB and store em in a "downloads" folder or adjust the script to point to your files.

Sample output

$ php Processor.php 
Bytes loaded for file file10.xml: 27164772
Bytes loaded for file file9.xml: 27159323
Bytes loaded for file file8.xml: 175390820
Bytes loaded for file file7.xml: 27099273
Bytes loaded for file file6.xml: 27145682
Bytes loaded for file file5.xml: 27080067
Bytes loaded for file file4.xml: 306454628
Opening file3.xml produced some error: Unknown error calling "eio_open"
Bytes loaded for file file2.xml: 227803236
Bytes loaded for file file1.xml: 27085574
$

$ php Processor.php 
Bytes loaded for file file10.xml: 30176743
Bytes loaded for file file9.xml: 30171294
Bytes loaded for file file8.xml: 178394599
Bytes loaded for file file7.xml: 30111244
Bytes loaded for file file6.xml: 30157653
Bytes loaded for file file5.xml: 30097545
Bytes loaded for file file4.xml: 309466599
Bytes loaded for file file3.xml: 30083846
Bytes loaded for file file2.xml: 230831591
Bytes loaded for file file1.xml: 30070147
$

$ php Processor.php 
Bytes loaded for file file10.xml: 27164772
Bytes loaded for file file9.xml: 27159323
Bytes loaded for file file8.xml: 175374436
Opening file7.xml produced some error: Unknown error calling "eio_open"
Bytes loaded for file file6.xml: 27145682
Bytes loaded for file file5.xml: 27091081
Bytes loaded for file file4.xml: 306454628
Bytes loaded for file file3.xml: 27077382
Bytes loaded for file file2.xml: 227795044
Bytes loaded for file file1.xml: 27063683
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions