Derby
  1. Derby
  2. DERBY-6350

Provide a rolling file implementation of derby.log

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.11.1.1
    • Component/s: Miscellaneous
    • Labels:

      Description

      By default, derby.log grows without bounds if the derby.infolog.append property is set to "true". Setting this to "true" helps in a hands off production environment to ensure that if Derby restarts, the derby.log which might contain important information is not lost. On the other hand, when set the "true" the derby.log grows without bounds. This is problematic in a long running system.

      What is really needed is the ability to have a rolling derby.log file support where the maximum file size and maximum number of files can be specified. Derby has the ability to configure the location of the log file (ie. derby.stream.error.file) and also two methods of redirecting the error stream (.ie derby.stream.error.method and derby.stream.error.field). There is no standard implementation that supports a rolling derby.log however.

      This facility should be part of the core Derby system so that it works in both embedded and network server models.

      1. rollingfilelog.patch.txt
        28 kB
        Brett Bergquist
      2. rollingfilelog.patch.txt
        31 kB
        Brett Bergquist
      3. rolling_file_patch_7.diff
        44 kB
        Brett Bergquist
      4. rolling_file_patch_6.txt
        44 kB
        Brett Bergquist
      5. rolling_file_patch_5.txt
        43 kB
        Brett Bergquist
      6. ErrorStreamTest_rolling_file_cleanup.patch
        0.9 kB
        Brett Bergquist

        Issue Links

          Activity

          Brett Bergquist created issue -
          Brett Bergquist made changes -
          Field Original Value New Value
          Attachment rollingfilelog.patch.txt [ 12604097 ]
          Brett Bergquist made changes -
          Attachment rollingfilelog.patch.txt [ 12604097 ]
          Brett Bergquist made changes -
          Attachment rollingfilelog.patch.txt [ 12604098 ]
          Brett Bergquist made changes -
          Comment [ Here is a patch that implements the described functionality. This patch is against the trunk as of 9/19/2013. ]
          Brett Bergquist made changes -
          Attachment rollingfilelog.patch.txt [ 12604098 ]
          Brett Bergquist made changes -
          Attachment rollingfilelog.patch.txt [ 12604101 ]
          Brett Bergquist made changes -
          Comment [ This patch implements the described functionality.

          Note that this patch is against the trunk as of 9/19/2013 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-5007 [ DERBY-5007 ]
          Brett Bergquist made changes -
          Attachment rollingfilelog.patch.txt [ 12604642 ]
          Brett Bergquist made changes -
          Attachment rolling_file_patch_3.txt [ 12605430 ]
          Brett Bergquist made changes -
          Attachment rolling_file_patch_3.txt [ 12605430 ]
          Brett Bergquist made changes -
          Attachment rolling_file_patch_5.txt [ 12605477 ]
          Brett Bergquist made changes -
          Attachment rolling_file_patch_6.txt [ 12605961 ]
          Kim Haase made changes -
          Link This issue is depended upon by DERBY-6359 [ DERBY-6359 ]
          Kathey Marsden made changes -
          Assignee Brett Bergquist [ bbergquist ]
          Brett Bergquist made changes -
          Attachment rolling_file_patch_7.diff [ 12608704 ]
          Mamta A. Satoor made changes -
          Link This issue is related to DERBY-6380 [ DERBY-6380 ]
          Brett Bergquist made changes -
          Myrna van Lunteren made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.11.0.0 [ 12324243 ]
          Resolution Fixed [ 1 ]
          Myrna van Lunteren made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Brett Bergquist
              Reporter:
              Brett Bergquist
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development