Skip to content

Flush Before storeChunk: Triggers Write #489

Description

@ax3l

@franzpoeschel just realized that a series.flush() for new record components, before a storeChunk is even called, queues a one-element dataset-write to the backends.

This is visible in the parallel write example:

https://github.com/openPMD/openPMD-api/blob/0.7.1-alpha/examples/5_write_parallel.cpp#L86

and doesn't seem right from our internal handling logic:

  • it will write unnecessary, random data to location (0,[0,...0])
  • this data will be overwritten later on
  • all backends have to handle this unusual corner case

Likely origin:
https://github.com/openPMD/openPMD-api/blob/0.7.1-alpha/src/backend/PatchRecordComponent.cpp#L97

Metadata

Metadata

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