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

workerThreadFlushesOnStop(ch.qos.logback.core.AsyncAppenderBaseTest) . UnitTest Fail.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.1.3
    • logback-core
    • None
    • Intel Core2 Duo CPU 2.40GHz, Windows7 32Bit OS
      Intel Core i7 2.30GHz, Windows7 32Bit Os

    Description

      On, Intel Core i7 2.30GHz, Windows7 32Bit Os . workerThreadFlushesOnStop() test Success.

      12:21:43,252 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Attaching appender named [list] to AsyncAppender.
      12:21:43,268 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Setting discardingThreshold to 0
      12:21:43,268 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Worker thread will flush remaining events before exiting.
      12:21:43,315 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Queue flush finished successfully within timeout.

      But. Intel Core2 Duo CPU 2.40GHz, Windows7 32Bit OS Test is Fail.

      13:45:41,328 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Attaching appender named [list] to AsyncAppender.
      13:45:41,343 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Setting discardingThreshold to 0
      13:45:41,343 |-INFO in ch.qos.logback.core.AsyncAppenderBase[null] - Worker thread will flush remaining events before exiting.
      13:45:41,376 |-WARN in ch.qos.logback.core.AsyncAppenderBase[null] - Max queue flush timeout (30 ms) exceeded. Approximately 3 queued events were possibly discarded.

      java.lang.AssertionError: expected:<0> but was:<2>

      \logback\logback-core\src\test\java\ch\qos\logback\core\testUtil\DelayingListAppender
      public int delay = 5; // fail. if delay = 8 then Success .

      is because Slower PC ?
      why don't u. bigger then 8 ?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            redrebel Lee Jeonggeun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: