Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-4050

Forked child logs are overwritten upon restart

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.0
    • None
    • core
    • None
    • Windows 10 Enterprise

    Description

      In my config file I specify a log file path for the forked child to use.  A problem arises when the child has a problem and the watchdog restarts it because the new child overwrites the previous child's log so I lose the details about what the child was doing prior to a restart.  Requesting that logging is preserved for all children while the watchdog is resident.

       

      Reproduction steps:

      dtikacfg.xml log4jTika.xml

      1. Launch tika server:
        java.exe -Djt="c:\tikatmp0000" -Dll="c:\tika0000.log" -Dcf="c:\log4jTika.xml" -jar "c:\tika-server-standard-2.8.0.jar" -c "c:\dtikacfg.xml"
      2. Peek at the tika0000.log file and take note of the timestamps.
      3. Kill the Tika child task and allow the watchdog to restart it.
      4. Note that the previous content has been overwritten by log lines with new timestamps.

       

      Attachments

        1. dtikacfg.xml
          1 kB
          Josh Burchard
        2. log4jTika.xml
          0.9 kB
          Josh Burchard
        3. log4j2-async.xml
          2 kB
          Tim Allison

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jmbox80 Josh Burchard

            Dates

              Created:
              Updated:

              Slack

                Issue deployment