Skip to content

Base.cp seems to have a bug when copying large files #56537

@sriharshakandala

Description

@sriharshakandala

Issue

Base.cp seems to have a bug when copying large files (~17 GB).

For example,

cp ifs_oper_T1279_2016080100.nc atmos_dyamond_summer/ifs_oper_T1279_2016080100.nc

works fine, but,

Base.cp("ifs_oper_T1279_2016080100.nc", "atmos_dyamond_summer/ifs_oper_T1279_2016080100.nc")

tries to create a huge file that eventually uses up all the space on the hard drive before crashing.

However, using

run(`cp ifs_oper_T1279_2016080100.nc atmos_dyamond_summer/ifs_oper_T1279_2016080100.nc`)

instead works correctly.

A more detailed description of the issue can be found CliMA/ClimaArtifacts#64 and CliMA/ClimaArtifacts#69

Metadata

Metadata

Assignees

No one assigned

    Labels

    ioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions