2 Replies Latest reply on Jul 14, 2011 12:14 PM by jim nash


    jim nash Newbie

      I'm using Fuse 4.4 and Kahadb, and am confused about 'syncOnWrite' functionality noted in the AMQ store doc:   http://activemq.apache.org/amq-message-store.html, but not mentioned in version 4.4 of the Fuse "Using Persistent Messages" manual.


      Is this setting subsumed by the KahaDB Message Store 'EnableJournaledDiskSyncs' setting, or what?   If so, what about sync's to data files?


      Thx, Jim

        • 1. Re: syncOnWrite
          Gary Tully Novice

          yes, EnableJournaledDiskSyncs=true in the KahaDB persistence adapter is the same as syncOnWrite=true in the AMQ persistence adapter.

          The default behavior is to sync (fsync) on a write, to comply with the jms durability requirements of a synchronous persistent message send. A message must be on disk before the brokers reply.

          When set to false, there will be no 'file sync to disk' call from the persistence adapter (fd.sync or channel.force). It is then up to the OS syncing writes to disk in its own time, so there may be a delay depending on filesystem buffering. In essence this means that there is the possibility of missing messages (from a client perspective) in the event of a failure.

          • 2. Re: syncOnWrite
            jim nash Newbie

            Thanks, Jim