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

Race condition in the QueryInterceptor involving SearchFactory

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

      During perform work task in the QueryInterceptor, the underlying SearchFactory could be swapped (for example by some other thread calling SearchFactory.addClass) and temporarily return null when looking for indexBindings, and throws intermittent Exceptions like:

      Caused by: org.hibernate.search.exception.SearchException: Unable to perform work. Entity Class is not @Indexed nor hosts @ContainedIn: class org.infinispan.query.test.VeryLongIndexNamedClass
              at org.hibernate.search.backend.impl.TransactionalWorker.performWork(TransactionalWorker.java:58)
              at org.infinispan.query.backend.QueryInterceptor.performSearchWorks(QueryInterceptor.java:233)
              at org.infinispan.query.backend.QueryInterceptor.performSearchWork(QueryInterceptor.java:227)
              at org.infinispan.query.backend.QueryInterceptor.updateIndexes(QueryInterceptor.java:221)
              at org.infinispan.query.backend.QueryInterceptor.processPutKeyValueCommand(QueryInterceptor.java:531)
              at org.infinispan.query.backend.QueryInterceptor.visitPutKeyValueCommand(QueryInterceptor.java:162)
              at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:71)
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
              at org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitPutKeyValueCommand(AbstractLockingInterceptor.java:46)
      
      

            [ISPN-4604] Race condition in the QueryInterceptor involving SearchFactory

            Dave Stahl <dstahl@redhat.com> changed the Status of bug 1139669 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Dave Stahl <dstahl@redhat.com> changed the Status of bug 1139669 from VERIFIED to CLOSED

            Dave Stahl <dstahl@redhat.com> changed the Status of bug 1135553 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Dave Stahl <dstahl@redhat.com> changed the Status of bug 1135553 from VERIFIED to CLOSED

            Jakub Markos <jmarkos@redhat.com> changed the Status of bug 1139669 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Jakub Markos <jmarkos@redhat.com> changed the Status of bug 1139669 from ON_QA to VERIFIED

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

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

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

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

            Vojtech Juranek <vjuranek@redhat.com> changed the Status of bug 1139669 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - Vojtech Juranek <vjuranek@redhat.com> changed the Status of bug 1139669 from NEW to MODIFIED

            Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 1135553 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Tristan Tarrant <ttarrant@redhat.com> changed the Status of bug 1135553 from MODIFIED to ON_QA

            Adrian Nistor <anistor@redhat.com> changed the Status of bug 1135553 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - Adrian Nistor <anistor@redhat.com> changed the Status of bug 1135553 from NEW to MODIFIED

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: