Skip to content
This repository was archived by the owner on Sep 8, 2018. It is now read-only.
This repository was archived by the owner on Sep 8, 2018. It is now read-only.

invalid cross-device link #110

@jozuenoon

Description

@jozuenoon

Hi,

We have oklog v0.3.0 running in docker. I'm mounting external disk on /data. After while I get below error:

ts=2018-03-22T11:27:58.697719584Z level=info ingest_path=data/ingest
during recovery: rename data/store/0093a279-2977-42ec-b9d3-7771d4551950.active 01C96FFQG2W35WWA9VMPKCGCG1-01C96FFTAXR3F5QW47JTJGRQPS.flushed: invalid cross-device link

I know this is because it tries to use os.Rename cross disks, however I'm not fully understanding why oklog want to move file outside data folder (which is disk on it's own). I could replace Rename method to handle it with io.Copy instead, but best solution would be to avoid moving files outside data folder in first place.

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