Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5562

AsyncCacheWriter should write all data to the back-end store before shutting down

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

      There is a chance that AsyncCacheWriter may stop before writing all midifications to the back-end store. This can primarily happen when writing the same keys in rapid succession. The coordinator thread will move these modifications to the head state (because of conflicts with tail), which is not checked before shutdown.

      There are two other minor race conditions if stop() is called concurrently to write() or clear() - these cannot happen in practice because PassivationManager is stopped before PersistenceManager:

      1. AsyncStoreCoordinator checks State.stopped and State.modifications.isEmpty() without holding the readLock(). This is not reliable because a concurrent write() or remove() may still add to the modifications map.

      2. clear() just replaces the head state, without copying the stopped flag that may have been set by a concurrent stop().

            [ISPN-5562] AsyncCacheWriter should write all data to the back-end store before shutting down

            Vojtech Juranek <vjuranek@redhat.com> changed the Status of bug 1235143 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Vojtech Juranek <vjuranek@redhat.com> changed the Status of bug 1235143 from ON_QA to VERIFIED

            Dave Stahl <dstahl@redhat.com> changed the Status of bug 1235143 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Dave Stahl <dstahl@redhat.com> changed the Status of bug 1235143 from MODIFIED to ON_QA

            Sebastian Łaskawiec <slaskawi@redhat.com> changed the Status of bug 1235143 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - Sebastian Łaskawiec <slaskawi@redhat.com> changed the Status of bug 1235143 from NEW to MODIFIED

              Unassigned Unassigned
              kblees Karsten Blees (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: