Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12025

Debug log rotation not happening on a consistent manner

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.5.0, 6.0.0, 6.5.0, 6.0.0.6
    • Fix Version/s: None
    • Component/s: debug logging
    • Labels:
    • Environment:
    • Target Version/s:
    • Support Ticket IDs:

      Description

      Bug description

      Debug log rotation not rotating files according to debugconfig.properties

       

      How to reproduce the issue

      Setup an openam 13.5.0 env with either embedded opendj configuration store or an external one

      Edit  $CATALINA_HOME/webapps/openam/WEB-INF/classes/debugconfig.properties 
      and set the following settings to the following 
      org.forgerock.openam.debug.prefix=
      org.forgerock.openam.debug.suffix=MM.dd.yyyy-kk.mm
      org.forgerock.openam.debug.rotation=60

      Carried out the following for it to take effect

      With the tomcat container stopped

      regenerate the war file with the following procedure
      1. cd $CATALINA_HOME/webapps/openam/
      2. jar cvf ../openam.war *
      3. then removed the directory where the openam generated jsp is stored
      4. cd /home/forgerock/apache-tomcat-7.0.79/work/Catalina/localhost/
      5. rm -rf openam
      6. remove all the logs in the openam debug directory $HOME/openam/openam/debug/
      7. then start the container that openam is running on with the command $CATALINA_HOME/bin/catalina.sh run
      Did this at 10:15 est on Oct 27th and this is the file listing in the debug dir

      rw-rw-r-. 1 forgerock forgerock    356 Oct 27 10:14 amUpgrade10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock 423462 Oct 27 10:15 Authentication10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock 961211 Oct 27 10:45 Configuration10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock 890083 Oct 27 11:13 CoreSystem10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock 826546 Oct 27 12:13 CoreSystem10.27.2017-11.14
      rw-rw-r-. 1 forgerock forgerock 826558 Oct 27 13:13 CoreSystem10.27.2017-12.14
      rw-rw-r-. 1 forgerock forgerock 551034 Oct 27 13:53 CoreSystem10.27.2017-13.14
      rw-rw-r-. 1 forgerock forgerock  32078 Oct 27 10:15 IdRepo10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock   3093 Oct 27 10:15 OpenDJ-SDK10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock   2519 Oct 27 10:14 Radius10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock  27931 Oct 27 10:15 restAuthenticationFilter10.27.2017-10.15
      rw-rw-r-. 1 forgerock forgerock 263562 Oct 27 11:13 Session10.27.2017-10.14
      rw-rw-r-. 1 forgerock forgerock 230845 Oct 27 12:13 Session10.27.2017-11.14
      rw-rw-r-. 1 forgerock forgerock 230844 Oct 27 13:13 Session10.27.2017-12.14
      rw-rw-r-. 1 forgerock forgerock 153917 Oct 27 13:53 Session10.27.2017-13.14

      The rotation is not uniform among all the files
      What I would expect to see is the same quantity of files with each file size being different

       

      Expected behaviour
      Same number of debug log files for rotation period
      
      
      Current behaviour
      Some log files are rotated and some are not
      Some log files start off being rotated according to debugconfig.properties and later on are rotated not according to the defined schedule
      
      

      Work around

      None

      Code analysis

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steve.nolan Steve Nolan
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: