JITL - JobScheduler Integrated Template Library
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-492

The JobSchedulerRemoveFile job should report the reason why a remove operation is not successful

    Details

    • Type: Fix Fix
    • Status: Released (View Workflow)
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12
    • Fix Version/s: 1.12.6
    • Labels:
      None

      Description

      Current Situation

      When the JobSchedulerRemoveFile job cannot remove the given file successfully then the log contains the line cannot remove file: filename

      Desired Behavior

      When the JobSchedulerRemoveFile job cannot remove the given file successfully then the log should contain the reason. Reasons can be e.g.

      • File not found
      • Permission denied (IOException)

      Test Instruction

      Test Configuration

      • Open JOE and use the wizard to create order-controlled job, using template job "JobSchedulerRemoveFile".

      Test Data

      • Create jitl_492.txt file in c:/data/inbound
      • Remove read permission from file jitl_492.txt

      Test Execution

      • Login on to the JOC Cockpit and start the job

      Test Results

      • Negative Results
        • When the job cannot remove the given file successfully, the log file contains the line cannot remove file: filename
      • Positive Results
        • When the job cannot remove the given file successfully, then the log file should contain the reason like File not found or permission denied(IOException)

        Activity

        Hide
        Aditi Dubey added a comment -

        I have approved this issues and check both positive and negative result of this issue.
        please see the session log file.

          Modify Log Viewing Criteria  Reload DownloadMain   Stdout   Info
        2018-10-21 18:50:35.470+0530 [info]   (Task JITL-492/Remove_job:1513) SCHEDULER-842  Task is going to process Order JITL-492/Remove_job:50, state=1, on JobScheduler 'http://DESKTOP-1D6QTQI:45555', Order's Process_class
        2018-10-21 18:50:35.471+0530 [info]   (Task JITL-492/Remove_job:1513) 
        2018-10-21 18:50:35.471+0530 [info]   (Task JITL-492/Remove_job:1513) Task JITL-492/Remove_job:1513 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/jobschedulerad_50555/logs/task.JITL-492,Remove_job.log
        2018-10-21 18:50:35.479+0530 [info]   (Task JITL-492/Remove_job:1513) SCHEDULER-726  Task runs on this JobScheduler 'http://DESKTOP-1D6QTQI:45555'
        2018-10-21 18:50:35.479+0530 [info]   (Task JITL-492/Remove_job:1513) SCHEDULER-918  state=starting (at=never)
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.433 [INFO ] (JobSchedulerJobAdapter.java:82) - 1.12.7-SNAPSHOT (2018-10-17 23:26, revision b4295338a63a60cea1f3e6259499e72391a86a42) Copyright 2003-2018 SOS GmbH Berlin 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'source_file' = 'C:\data\inbound'. 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'file_spec' = 'w.txt'. 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'file_spec' = 'w.txt'. 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.480 [INFO ] (SOSFileSystemOperations.java:488) - remove [w.txt] from C:\data\inbound 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.480 [INFO ] (SOSFileSystemOperations.java:563) - 0 file(s) removed 
        2018-10-21 18:50:36.525+0530 [info]   (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.506 [ERROR] (JobSchedulerJobAdapter.java:438) - JSJ_E_0009: Job 'Remove_job' terminated with error
        2018-10-21 18:50:36.526+0530 [info]   (Task JITL-492/Remove_job:1513) SCHEDULER-843  Task has ended processing of Order JITL-492/Remove_job:50, state=1, on JobScheduler 'http://DESKTOP-1D6QTQI:45555'
        2018-10-21 18:50:36.526+0530 [info]   set_state error
        2018-10-21 18:50:36.527+0530 [info]   SCHEDULER-945  No further job in job chain - order has been carried out
        2018-10-21 18:50:36.527+0530 [info]   SCHEDULER-940  Removing order from job chain
          
        Show
        Aditi Dubey added a comment - I have approved this issues and check both positive and negative result of this issue. please see the session log file. Modify Log Viewing Criteria Reload DownloadMain Stdout Info 2018-10-21 18:50:35.470+0530 [info] (Task JITL-492/Remove_job:1513) SCHEDULER-842 Task is going to process Order JITL-492/Remove_job:50, state=1, on JobScheduler 'http: //DESKTOP-1D6QTQI:45555', Order's Process_class 2018-10-21 18:50:35.471+0530 [info] (Task JITL-492/Remove_job:1513) 2018-10-21 18:50:35.471+0530 [info] (Task JITL-492/Remove_job:1513) Task JITL-492/Remove_job:1513 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/jobschedulerad_50555/logs/task.JITL-492,Remove_job.log 2018-10-21 18:50:35.479+0530 [info] (Task JITL-492/Remove_job:1513) SCHEDULER-726 Task runs on this JobScheduler 'http: //DESKTOP-1D6QTQI:45555' 2018-10-21 18:50:35.479+0530 [info] (Task JITL-492/Remove_job:1513) SCHEDULER-918 state=starting (at=never) 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.433 [INFO ] (JobSchedulerJobAdapter.java:82) - 1.12.7-SNAPSHOT (2018-10-17 23:26, revision b4295338a63a60cea1f3e6259499e72391a86a42) Copyright 2003-2018 SOS GmbH Berlin 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'source_file' = 'C:\data\inbound'. 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'file_spec' = 'w.txt'. 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.464 [INFO ] (JobSchedulerFileOperationBase.java:274) - JSJ_I_0040: .. get jobparameter 'file_spec' = 'w.txt'. 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.480 [INFO ] (SOSFileSystemOperations.java:488) - remove [w.txt] from C:\data\inbound 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.480 [INFO ] (SOSFileSystemOperations.java:563) - 0 file(s) removed 2018-10-21 18:50:36.525+0530 [info] (Task JITL-492/Remove_job:1513) [stdout] 21 18:50:36.506 [ERROR] (JobSchedulerJobAdapter.java:438) - JSJ_E_0009: Job 'Remove_job' terminated with error 2018-10-21 18:50:36.526+0530 [info] (Task JITL-492/Remove_job:1513) SCHEDULER-843 Task has ended processing of Order JITL-492/Remove_job:50, state=1, on JobScheduler 'http: //DESKTOP-1D6QTQI:45555' 2018-10-21 18:50:36.526+0530 [info] set_state error 2018-10-21 18:50:36.527+0530 [info] SCHEDULER-945 No further job in job chain - order has been carried out 2018-10-21 18:50:36.527+0530 [info] SCHEDULER-940 Removing order from job chain

          People

          • Assignee:
            Uwe Risse
            Reporter:
            Uwe Risse
            Approver:
            Mahendra Patidar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: