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

Expose HOWL flushPartialBuffer config via HOWLLog - useful under low concurrency


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: transaction manager
    • Security Level: public (Regular issues)
    • Labels:
    • Patch Info:
      Patch Available


      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;


          Issue Links



              • Assignee:
                gnt Guillaume Nodet
                gtully Gary Tully
              • Votes:
                0 Vote for this issue
                4 Start watching this issue


                • Created: