Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-54

org.jboss.logmanager.handlers.AsyncHandler.AsyncTask should call flush when queue runs empty

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.3.3.Final, 1.4.0.Beta1
    • 1.3.2.Final, 1.4.0.Beta1
    • core
    • None

      When using the org.jboss.logmanager.handlers.AsyncHandler in combination with handlers that use autoFlush=false it happens that output stalls when queue runs empty.
      A workaround is to set autoflush=true, however this introduces a flush always, even if there are more records in the queue, which render the flush useless.

      An optimization is to invoke flush() on the handlers if the AsyncTask's queue ran empty - since then there is nothing else to do anyhow.

              jperkins-rhn James Perkins
              r.neubauer@seeburger.de Rico Neubauer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: