Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-6373

Expose HOWL flushPartialBuffer config via HOWLLog - useful under low concurrency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.1
    • None
    • transaction manager
    • Security Level: public (Regular issues)
    • None
    • Patch Available

    Description

      HOWL XALogger supports flushPartialBuffers which is not configurable via Geronimo HOWLLog. It is useful in the case of low concurrency.

      It would be great to have this exposed in the HOWLLog constructor so that it be be configured.

        /**
         * Indicates whether LogBufferManager should flush buffers
         * before they are full.
         * 
         * <p>Normally, buffers are flushed to disk only when
         * they become full.  In lightly loaded situations,
         * one or more threads may have to wait until the
         * flushSleepTime expires before the buffer is written.
         * In the worst case, a single thread is using the
         * log, and every put() with sync requested will
         * be delayed flushSleepTime ms before the buffer is
         * written.
         * 
         * <p>Setting flushPartialBuffers true will allow
         * the LogBufferManager to flush buffers to disk
         * any time the channel is not busy.  This improves
         * throughput in single threaded and lightly loaded
         * environments. 
         * 
         * <p>By default, this feature is disabled (false) to
         * provide compatability with earlier versions of
         * this library.
         */
        private boolean flushPartialBuffers = false;

      Attachments

        1. GERONIMO-6372.patch
          2 kB
          Gary Tully

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: