Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1644

Call of spooler_log() api after spooler.log().start_new_file() triggers scheduler.log rotate

    XMLWordPrintable

    Details

      Description

      As of Now Situation

      • If any of the JITL job is executed
        • a new scheduler.log file is created
        • scheduler.log is renamed as scheduler-old.log

      Observation

      • This issue is not observed in the release 1.9.3
      • This issue started from release 1.9.4
      • There was issue JS-1455 related with API method API method spooler_log.start_new_file(), which was fixed in release 1.9.4.

      How to reproduce

      • Let run job1
        <job  name="job1">
            <script  language="javax.script:ecmascript">
                <![CDATA[
        function spooler_process() {
                 spooler_log.info( " start_new_file ");
                 spooler.log().start_new_file();		
        }
                ]]>
            </script>
            <run_time />
        </job>
        
      • Let run job2
        <job  name="job2">
            <script  language="javax.script:ecmascript">
                <![CDATA[
        function spooler_process() {
                 spooler_log.info( " hello world : ");				 
        }
                ]]>
            </script>
            <run_time />
        </job>
        
      • Check $SCHEDULER_DATA/log folder, scheduler.log will have same start date as the task start date and there will be a scheduler-old.log file.

      Desired Behavior

      • JITL jobs should not trigger rotate of scheduler.log

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jz Joacim Zschimmer
                Reporter:
                mp Mahendra Patidar
                Approver:
                Mahendra Patidar
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: