Skip to content

non-deterministic interleaved output to stdout with multiple threads #654

@ntm

Description

@ntm

Dear devs,

writing interleaved output to stdout with multiple threads is non-deterministic again.
For me this is identical to issue #552 , but that issue had been resolved with release 0.24.3, which fixed it (and indeed 0.24.3 doesn't have this problem).

I tested every release between 0.24.3 and 1.0.1, using commands such as (example below for 0.26.0):

fastp.0.26.0 --stdout --in1 test_1.fq.gz --in2 test_2.fq.gz --detect_adapter_for_pe --json /dev/null --html /dev/null --thread 1 > test_T1_v026.fq
fastp.0.26.0 --stdout --in1 test_1.fq.gz --in2 test_2.fq.gz --detect_adapter_for_pe --json /dev/null --html /dev/null --thread 24 > test_T24_v026.fq

I then checked the MD5 sums of the produced .fq files.
Results are identical for 1 and 24 threads with version 0.24.3, but they differ for every subsequent version starting at 0.25.0.
So, the bug must come from one of the 4 commits between 0.24.3 and 0.25.0. Maybe commit 6aa8f09 ?

Kind regards,
Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions