Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy job definition requires unnecessary settings
When configuring a Migration or Copy Job you need to specify a Client and Fileset although those items are never used in the Job as it selects via a certain selection criterium the Jobs it needs to Migrate or Copy and uses the Client and Fileset of that original Job. We relaxed the configuration engine to no longer make the Client and Fileset keyword required keywords. In the check_resources() function we now check after the required keyword check what type of Job is configured and when its not a Migration or Copy Job we still fail the configuration check as for any Job not being a Migration or Copy Job we still need the Client and Fileset. We also needed to check in a lot of places if we have a Client or Fileset for the current running Job as a lot of code assumes that there always is a Client or Fileset. This is of course a bad assumption and hopefully we found all places where these wrong assumptions are made and the Jobs Client or Fileset pointer is dereferenced without a check. This new code passed a full regression test both with the old configs for Migrate and Copy with a dummy Client and Fileset and without. Fixes #220: Copy job definition requires unnecessary settings
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
8085e55
commit a744832
Showing
15 changed files
with
193 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.