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

TimeBasedRollingPolicy.waitForAsynchronousJobToStop never runs

    XMLWordPrintable

Details

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

    Description

      private void waitForAsynchronousJobToStop() {
      if(1==1) return;
      if(future != null) {
      try

      { future.get(CoreConstants.SECONDS_TO_WAIT_FOR_COMPRESSION_JOBS, TimeUnit.SECONDS); }

      catch (TimeoutException e)

      { addError("Timeout while waiting for compression job to finish", e); }

      catch (Exception e)

      { addError("Unexpected exception while waiting for compression job to finish", e); }

      }
      }

      The body of this method never executes (or at least until our current knowledge of logic and mathematics holds).

      Attachments

        Activity

          People

            logback-dev Logback dev list
            mverebelyi Márk Verebélyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: