Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-139

SizeAndTimeBasedFNATP.start doesn't recompute currentPeriodsCounter

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-core
    • None

    Description

      Using SizeAndTimeBasedFNATP I'm getting filename collisions on size-based rollover after restarting my process. I think the problem is in SizeAndTimeBasedFNATP.start:

      if (tbrp.getParentsRawFileProperty() == null)

      { String regex = tbrp.fileNamePattern.toRegex(dateInCurrentPeriod); String stemRegex = FileFilterUtil.afterLastSlash(regex); computeCurrentPeriodsHighestCounterValue(stemRegex); }

      shouldn't this be if (tbrp.getParentsRawFileProperty() != null)?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            anders Anders Wallgren
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: