CDR Tickets

Issue Number 4215
Summary Setup Web Interface to Set Job-ID on STAGE
Created 2017-01-13 16:53:17
Issue Type New Feature
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2017-08-09 17:17:29
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.201466
Description

When the Gatekeeper database gets refreshed from PROD the Job-IDs between the GK and the CDR database don't match up anymore on the lower tiers.
I'd like a way to adjust the sequence number on the lower tier preventing nightly publishing jobs to fail because the Job-ID already exists on GK.

The following command will reset the job-ID:
DBCC CHECKIDENT
( pub_proc , RESEED, new_int_value )

Comment entered 2017-03-27 17:56:22 by Englisch, Volker (NIH/NCI) [C]

It's not clear yet if we will have the permission on STAGE to run the command necessary to update the DB.

The following scripts have currently been updated/created:

  • Database/Reseed-jobid.sql

  • Database/Reseed-jobid.py

  • DevSA.py

  • ResetMaxJobId.py

Comment entered 2017-08-09 09:14:14 by Kline, Bob (NIH/NCI) [C]

If it works on DEV and QA using the standard CDR database account, and it doesn't work on STAGE, that's a database configuration problem which CBIIT will be required to fix. If it doesn't work on DEV and QA, see if you can get the DBA team to fix the problem there first. Otherwise, go ahead and close OCECDR-4130 as "won't fix."

Comment entered 2017-08-09 17:07:52 by Englisch, Volker (NIH/NCI) [C]

I had forgotten that I had already started to work on this ticket but what I thought I had to do was wrong or too complicated. Anyway, the required DBCC command can only be executed as a stored procedure when using Python.

Questions for : (a) Do we have naming conventions for CDR procedure names and (b) where do we keep them?

If it works on DEV and QA using the standard CDR database account,

I can now answer this question: It works on DEV. :-)

Comment entered 2017-08-09 17:15:32 by Englisch, Volker (NIH/NCI) [C]

For my information:
The two files Database/Reseed-jobid.sql and Database/Reseed-jobid.py are not used anymore. The Python script ResetMaxJobId.py has been renamed to SetNextJobId.py.

The changes are in my Feynman-hold sandbox.

Comment entered 2017-08-09 17:30:08 by Kline, Bob (NIH/NCI) [C]

(a) Do we have naming conventions for CDR procedure names and (b) where do we keep them?

See https://ncisvn.nci.nih.gov/svn/oce_cdr/branches/ocecdr-4268/Database/procs.sql

Comment entered 2017-08-09 18:18:12 by Englisch, Volker (NIH/NCI) [C]

Additional change to include the stored procedure in:

  • Database/procs.sql

Comment entered 2017-08-09 18:30:36 by Englisch, Volker (NIH/NCI) [C]

This ticket is somewhat of a workaround or, to be precise, a make-our-life-easier for the GK issue. Once the GK ticket has been implemented, this menu item won't be needed anymore.

Comment entered 2017-09-21 09:29:18 by Englisch, Volker (NIH/NCI) [C]

The modified files have been moved from the subversion sandbox directory Feynman-hold to the git repositories:

  • DevSA.py --> cdr-admin [hawking-c8e6c2b]

  • SetNextJobId.py --> cdr-admin [hawking c8e6c2b]

  • procs.sql --> cdr-server [hawking 2bda678c]

Comment entered 2018-02-16 07:45:41 by Kline, Bob (NIH/NCI) [C]

: please assign story points for this ticket.

Comment entered 2018-03-15 11:15:01 by Englisch, Volker (NIH/NCI) [C]

this ticket is a workaround until Blair has time to make necessary changes in GK. For this ticket itself Blair is not needed.

Comment entered 2018-04-02 14:38:34 by Englisch, Volker (NIH/NCI) [C]

I've (re-)added the following files:

Comment entered 2018-04-02 14:41:17 by Kline, Bob (NIH/NCI) [C]

Thanks! Off to do the build. Let me know if/when the missing piece for OCECDR-4126 is finished, and I'll do a manual patch of the build.

Comment entered 2018-04-03 17:22:46 by Englisch, Volker (NIH/NCI) [C]

I've successfully tested this internal ticket on QA. , feel free to do some additional testing. Otherwise I'll mark it as QA Verified.

Comment entered 2018-04-04 10:34:50 by Kline, Bob (NIH/NCI) [C]

I'll trust you on this. :-)

Comment entered 2018-05-10 19:19:04 by Englisch, Volker (NIH/NCI) [C]

This menu item to adjust the Job-ID number is only available on the lower tier because only there is it useful. The Job-ID number on PROD will never be adjusted.
Closing ticket.

Elapsed: 0:00:00.001207