Fix incompatible options for parallel jobs in logical retrieval steps
Goal
If parallelJobs = 1, the custom format is used; at the same time if parallelJobs >= 2, the directory format is used, which are not compatible simultaneously.
logicalDump.options.dumpLocation: "/var/lib/dblab/db.dump"
logicalDump.options.parallelJobs: 1
logicalRestore.options.parallelJobs: 2
2021/01/12 14:14:27 [FATAL] Failed to run the data retrieval service: failed to dump a database: failed to read response of exec command: pg_dump: error: could not open output file "/var/lib/dblab/db.dump": Is a directory
We should validate configuration and warn about incompatible parameters before starting the retrieval process.
TODO / How to implement
- collect job specifications during configuration analysis.
- check conflicting parameters