Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1923

Import of Agents should handle "overwrite" Option correctly

    XMLWordPrintable

Details

    • Fix
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 2.5.6, 2.6.3, 2.7.0
    • 2.7.3
    • None
    • None

    Description

      Current Situation

      The current Import functionality does not handle the "Overwrite" option consistently when importing agent configurations. This leads to different behaviors for standalone agents and cluster agents.

      • When importing an exported agent configuration with the "Overwrite" checkbox selected, the subagents in the cluster agent are updated and transition to a "not synchronized" state.
        However, the standalone agent does not update accordingly.
      • Also, when importing the same unchanged file back into the same environment without selecting the 'Overwrite' checkbox, an error occurs due to a unique constraint violation in the database:

      DBInvalidDataException: could not execute statement [ ORA-00001: unique constraint (C##JS7G.UNIQUE_IAI_A) violated ] [insert into INV_AGENT_INSTANCES ("AGENT_ID","AGENT_NAME","CERTIFICATE","CONTROLLER_ID","DEPLOYED","DISABLED","HIDDEN","IS_WATCHER","JAVA_VERSION","MODIFIED","ORDERING","OS_ID","PROCESS_LIMIT","STARTED_AT","TITLE","URI","VERSION","ID") values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)]: 1 ORA-00001: unique constraint (C##JS7G.UNIQUE_IAI_A) violated

      Desired Behavior

      The Import functionality should apply a consistent 'Overwrite' option behavior to both standalone and cluster agents:

      • When the 'Overwrite' option is selected during the import, standalone agents should also update and transition to a 'not synchronized' state, similar to cluster agents.
      • If the 'Overwrite' option is not selected during the import of the same unchanged file, a user-friendly error message should be displayed.

      Attachments

        Activity

          People

            oh Oliver Haufe
            gautam-vadera Gautam Vadera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: