Uploaded image for project: 'Traffic Control'
  1. Traffic Control
  2. TC-491

Deleting Delivery Service with associated job in job table fails due to foreign key constraint violation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.0
    • Fix Version/s: 2.1.0, 2.2.0
    • Component/s: Traffic Ops API
    • Labels:
      None

      Description

      Deleting Delivery Service with associated job in job table fails due to foreign key constraint violation.

      E.g.
      DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR: update or delete on table "deliveryservice" violates foreign key constraint "fk_job_deliveryservice1" on table "job"
      DETAIL: Key (id)=(714) is still referenced from table "job". [for Statement "DELETE FROM deliveryservice WHERE ( id = ? )" with ParamValues: 1='714'] at /opt/traffic_ops/app/lib/API/Deliveryservice.pm line 642

      Workaround: No UI/API end-point to delete the associated job. Delete associated job from database.

      NOTE: Other Traffic Ops versions may also be affected.

        Attachments

          Activity

            People

            • Assignee:
              mitchell852@apache.org Jeremy Mitchell
              Reporter:
              rscrimojr Robert Scrimo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: