Skip to content

export-archive-files with limit reads too much if you have multiple partitions #660

Description

@grtjn

If you partition by forest, and you have 3 forests, setting a limit of 1000 will read 3 x 1000, and write 1000 (doc + 1000 meta) to the zip.
The end result is okay, but it is a pity to waste time on reading too many records. That becomes the more painful the more forests you have.

Read logging prints nicely how many records have been collected, so flux could send a signal to the reading threads to stop reading once limit has been reached.

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