Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Writing tmp files #93

Description

@m-gl

DAQSnapshotService is accessing the file that DAQAggregator has not yet closed (DAQAgg is still writing to it). This results in file being not de-serialized (and stacktrace in logs) in that iteration of SnapshotService (unexpected end o file). However it's discovered again and successfully de-serialized a moment later when the file is ready. This effect is not visible in DAQView as all snapshots are delivered sooner or later. It could be easily fixed by writing to tmp file that DAQSnapshot is filtering and then renaming it. For example:

  1. writing to snapshot.json.gzip~ (with suffix)
  2. renaming to snapshot.json.gzip
  3. reading only files without suffix '~'

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