View Issue Details

IDProjectCategoryView StatusLast Update
0000342bareos-coredirectorpublic2015-10-02 19:58
Reporterpstorz Assigned To 
PrioritylowSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Product Version14.2.1 
Summary0000342: copy job enhancements
Description- copy jobs are executed directly after being scheduled and do not respect maximum job settings. It would be nice if the selection of the jobs to be copied would be done when a normal job would start.

- copy job makes n-1 queued jobs and does one job itself. Also, the job seems to change its id to become the worker job. Wouldn't it be much better if the copy job would only queue new worker jobs for all jobids selected and terminate afterwards.
TagsNo tags attached.

Activities

mvwieringen

mvwieringen

2015-02-10 12:53

developer   ~0001271

Fix committed to bareos master branch with changesetid 2702.

Related Changesets

bareos: master ba230b9d

2014-10-12 20:42

mvwieringen

Ported: N/A

Details Diff
First refactoring of Migrate/Copy selection code.

Copy and migration jobs do the selection as part of the migration_init
function in migrate.c. This means that this selection is done before
the actual copy Job is about to run due to Job priority etc. As such
it looks as if they are executed directly after being scheduled and
do not respect maximum job settings. It would be nice if the selection
of the jobs to be copied would be done when a normal job would start
as such we moved the selection code to the do_migration() function
which gets executed when the actual migration/copy Job is really
executing.

Copy and migration jobs used to make n-1 queued jobs and does one job
itself. Also, the job seems to change its id to become the worker job.
Wouldn't it be much better if the copy job would only queue new worker
jobs for all jobids selected and terminate afterwards.

Also made the number of Job a copy/migrate Job can spawn configurable
instead of a hardcoded value of 100.

Fixes 0000342: copy job enhancements
Affected Issues
0000342
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/jobq.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/ua_run.c Diff File
mod - src/include/jcr.h Diff File

Issue History

Date Modified Username Field Change
2014-09-25 14:24 pstorz New Issue
2014-10-12 18:44 mvwieringen Assigned To => mvwieringen
2014-10-12 18:44 mvwieringen Status new => assigned
2015-02-10 12:53 mvwieringen Changeset attached => bareos master ba230b9d
2015-02-10 12:53 mvwieringen Note Added: 0001271
2015-02-10 12:53 mvwieringen Status assigned => resolved
2015-02-10 12:53 mvwieringen Resolution open => fixed
2015-02-14 17:30 mvwieringen adm Assigned To mvwieringen =>
2015-10-02 19:58 mvwieringen adm Status resolved => closed