Skip to content

Add limit for max value of -PARALLEL switch value when restoring a database #8928

@tomaszdubiel18

Description

@tomaszdubiel18

Currently gbak knows no limits when reading -par parameter and when a user tries to restore a database with gigantic value, (on purpose or by mistake - for example 16384) this will cause OOM killer on Linux. On Windows this caused whole OS to stop functioning and hard restart was required.
My proposition - if gbak is able to attach to firebird process (which has access to firebird.conf) just by using services manager, then why not to use it exactly to read MaxParallelWorkers? It seems an ideal parameter to restrict max parallel workers. Why does it have to be limited for parallel operations apart from gbak?
Best regards.

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