View Issue Details

IDProjectCategoryView StatusLast Update
0000333bareos-coredirectorpublic2015-03-25 19:19
Reporterfrank Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000333: Missing job states in DB table Status
DescriptionThere are some states of jobs missing in the status table of the database, which are already defined in jcr.h. The severity column seems not to be in use, currently.

The missing states in use are:

- JS_Incomplete
- JS_DataCommitting
- JS_Warnings
- JS_DataDespooling
- JS_WaitDevice
TagsNo tags attached.

Activities

frank

frank

2014-08-25 12:04

developer  

0001-PATCH-Missing-job-states-in-DB-table-Status.patch (7,249 bytes)   
From b47e175b7403f42a12bbbb11142215aff139dc2f Mon Sep 17 00:00:00 2001
From: Frank Bergkemper <f.bergkemper@gmail.com>
Date: Mon, 25 Aug 2014 11:56:17 +0200
Subject: [PATCH] [PATCH] Missing job states in DB table Status

Adds the missing and currently used states, which are defined in jcr.h,
to the status table of the database.

Fixes #333: Missing job states in DB table Status
---
 src/cats/ddl/creates/ingres.sql             | 10 ++++++++++
 src/cats/ddl/creates/mysql.sql              |  5 +++++
 src/cats/ddl/creates/postgresql.sql         | 10 ++++++++++
 src/cats/ddl/creates/sqlite3.sql            | 10 ++++++++++
 src/cats/ddl/updates/mysql.14_2001.sql      |  7 +++++++
 src/cats/ddl/updates/postgresql.14_2001.sql | 11 +++++++++++
 src/cats/ddl/updates/sqlite3.14_2001.sql    | 11 +++++++++++
 7 files changed, 64 insertions(+)

diff --git a/src/cats/ddl/creates/ingres.sql b/src/cats/ddl/creates/ingres.sql
index ef84bbf..f427efc 100644
--- a/src/cats/ddl/creates/ingres.sql
+++ b/src/cats/ddl/creates/ingres.sql
@@ -510,6 +510,16 @@ INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('A', 'Canceled by user',90);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('L', 'Committing data', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('W', 'Terminated with warnings', 20);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('l', 'Doing data despooling', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('q', 'Queued waiting for device', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('F', 'Waiting for Client',15);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('S', 'Waiting for Storage daemon',15);
diff --git a/src/cats/ddl/creates/mysql.sql b/src/cats/ddl/creates/mysql.sql
index dc4348c..9458d83 100644
--- a/src/cats/ddl/creates/mysql.sql
+++ b/src/cats/ddl/creates/mysql.sql
@@ -439,6 +439,11 @@ INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('f', 'Fatal error', 100),
    ('D', 'Verify found differences', 15),
    ('A', 'Canceled by user', 90),
+   ('I', 'Incomplete job', 15),
+   ('L', 'Committing data', 15),
+   ('W', 'Terminated with warnings', 20),
+   ('l', 'Doing data despooling', 15),
+   ('q', 'Queued waiting for device', 15),
    ('F', 'Waiting for Client', 15),
    ('S', 'Waiting for Storage daemon', 15),
    ('m', 'Waiting for new media', 15),
diff --git a/src/cats/ddl/creates/postgresql.sql b/src/cats/ddl/creates/postgresql.sql
index 852b468..5957872 100644
--- a/src/cats/ddl/creates/postgresql.sql
+++ b/src/cats/ddl/creates/postgresql.sql
@@ -449,6 +449,16 @@ INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('A', 'Canceled by user',90);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('L', 'Committing data', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('W', 'Terminated with warnings', 20);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('l', 'Doing data despooling', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('q', 'Queued waiting for device', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('F', 'Waiting for Client',15);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('S', 'Waiting for Storage daemon',15);
diff --git a/src/cats/ddl/creates/sqlite3.sql b/src/cats/ddl/creates/sqlite3.sql
index c53607c..e364d50 100644
--- a/src/cats/ddl/creates/sqlite3.sql
+++ b/src/cats/ddl/creates/sqlite3.sql
@@ -438,6 +438,16 @@ INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('A', 'Canceled by user',90);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('L', 'Committing data', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('W', 'Terminated with warnings', 20);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('l', 'Doing data despooling', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('q', 'Queued waiting for device', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('F', 'Waiting for Client',15);
 INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
    ('S', 'Waiting for Storage daemon',15);
diff --git a/src/cats/ddl/updates/mysql.14_2001.sql b/src/cats/ddl/updates/mysql.14_2001.sql
index e3ecd14..a44f2a2 100644
--- a/src/cats/ddl/updates/mysql.14_2001.sql
+++ b/src/cats/ddl/updates/mysql.14_2001.sql
@@ -16,4 +16,11 @@ CREATE TABLE NDMPLevelMap (
 ALTER TABLE Media DROP COLUMN VolParts;
 ALTER TABLE Media ADD COLUMN EncryptionKey TINYBLOB;
 
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15),
+   ('L', 'Committing data', 15),
+   ('W', 'Terminated with warnings', 20),
+   ('l', 'Doing data despooling', 15),
+   ('q', 'Queued waiting for device', 15);
+
 UPDATE Version SET VersionId = 2001;
diff --git a/src/cats/ddl/updates/postgresql.14_2001.sql b/src/cats/ddl/updates/postgresql.14_2001.sql
index 59c01ae..fa763df 100644
--- a/src/cats/ddl/updates/postgresql.14_2001.sql
+++ b/src/cats/ddl/updates/postgresql.14_2001.sql
@@ -18,6 +18,17 @@ CREATE TABLE NDMPLevelMap (
 ALTER TABLE Media DROP COLUMN VolParts RESTRICT;
 ALTER TABLE Media ADD COLUMN EncryptionKey text;
 
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('L', 'Committing data', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('W', 'Terminated with warnings', 20);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('l', 'Doing data despooling', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('q', 'Queued waiting for device', 15);
+
 UPDATE Version SET VersionId = 2001;
 COMMIT;
 
diff --git a/src/cats/ddl/updates/sqlite3.14_2001.sql b/src/cats/ddl/updates/sqlite3.14_2001.sql
index 3bcd6ab..e86ba9f 100644
--- a/src/cats/ddl/updates/sqlite3.14_2001.sql
+++ b/src/cats/ddl/updates/sqlite3.14_2001.sql
@@ -17,5 +17,16 @@ CREATE TABLE NDMPLevelMap (
 
 ALTER TABLE Media ADD COLUMN EncryptionKey VARCHAR(128);
 
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('I', 'Incomplete job', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('L', 'Committing data', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('W', 'Terminated with warnings', 20);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('l', 'Doing data despooling', 15);
+INSERT INTO Status (JobStatus,JobStatusLong,Severity) VALUES
+   ('q', 'Queued waiting for device', 15);
+
 UPDATE Version SET VersionId = 2001;
 COMMIT;
-- 
1.8.4.5

mvwieringen

mvwieringen

2014-08-28 15:11

developer   ~0000965

Fix committed to bareos master branch with changesetid 2038.
mvwieringen

mvwieringen

2014-08-30 10:16

developer   ~0000968

Fix committed to bareos bareos-14.2 branch with changesetid 2050.
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001464

Fix committed to bareos2015 bareos-14.2 branch with changesetid 4668.
joergs

joergs

2015-03-25 19:19

developer   ~0001614

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master 9c836a9a

2014-08-25 11:56

frank


Committer: mvwieringen

Ported: N/A

Details Diff
Missing job states in DB table Status

Adds the missing and currently used states, which are defined in jcr.h,
to the status table of the database.

Fixes 0000333: Missing job states in DB table Status

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000333
mod - src/cats/ddl/creates/ingres.sql Diff File
mod - src/cats/ddl/creates/mysql.sql Diff File
mod - src/cats/ddl/creates/postgresql.sql Diff File
mod - src/cats/ddl/creates/sqlite3.sql Diff File
mod - src/cats/ddl/updates/mysql.14_2001.sql Diff File
mod - src/cats/ddl/updates/postgresql.14_2001.sql Diff File
mod - src/cats/ddl/updates/sqlite3.14_2001.sql Diff File

bareos: bareos-14.2 5759e847

2014-08-25 11:56

frank


Committer: mvwieringen

Ported: N/A

Details Diff
Missing job states in DB table Status

Adds the missing and currently used states, which are defined in jcr.h,
to the status table of the database.

Fixes 0000333: Missing job states in DB table Status

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000333
mod - src/cats/ddl/creates/ingres.sql Diff File
mod - src/cats/ddl/creates/mysql.sql Diff File
mod - src/cats/ddl/creates/postgresql.sql Diff File
mod - src/cats/ddl/creates/sqlite3.sql Diff File
mod - src/cats/ddl/updates/mysql.14_2001.sql Diff File
mod - src/cats/ddl/updates/postgresql.14_2001.sql Diff File
mod - src/cats/ddl/updates/sqlite3.14_2001.sql Diff File

bareos2015: bareos-14.2 6e832198

2014-08-25 13:56

frank


Committer: mvwieringen

Ported: N/A

Details Diff
Missing job states in DB table Status

Adds the missing and currently used states, which are defined in jcr.h,
to the status table of the database.

Fixes 0000333: Missing job states in DB table Status

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000333
mod - src/cats/ddl/creates/ingres.sql Diff File
mod - src/cats/ddl/creates/mysql.sql Diff File
mod - src/cats/ddl/creates/postgresql.sql Diff File
mod - src/cats/ddl/creates/sqlite3.sql Diff File
mod - src/cats/ddl/updates/mysql.14_2001.sql Diff File
mod - src/cats/ddl/updates/postgresql.14_2001.sql Diff File
mod - src/cats/ddl/updates/sqlite3.14_2001.sql Diff File

Issue History

Date Modified Username Field Change
2014-08-22 09:51 frank New Issue
2014-08-22 09:51 frank Status new => assigned
2014-08-22 09:51 frank Assigned To => frank
2014-08-25 12:04 frank File Added: 0001-PATCH-Missing-job-states-in-DB-table-Status.patch
2014-08-25 16:40 frank Status assigned => resolved
2014-08-28 15:11 mvwieringen Changeset attached => bareos master 9c836a9a
2014-08-28 15:11 mvwieringen Note Added: 0000965
2014-08-28 15:11 mvwieringen Assigned To frank => mvwieringen
2014-08-28 15:11 mvwieringen Resolution open => fixed
2014-08-30 10:16 mvwieringen Changeset attached => bareos bareos-14.2 5759e847
2014-08-30 10:16 mvwieringen Note Added: 0000968
2014-09-24 13:18 joergs Assigned To mvwieringen =>
2014-09-24 13:18 joergs Status resolved => closed
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 6e832198
2015-03-25 16:51 mvwieringen Note Added: 0001464
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:19 joergs Note Added: 0001614
2015-03-25 19:19 joergs Status resolved => closed