Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7508

Error querying indexed cache with lifespan after expiration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RHDG 8.5.4 GA
    • None
    • Querying
    • None

      Some type of queries (likely aggregation) fail when they hit recently expired entries with lifespan. The error reported is:
      java.lang.IllegalArgumentException: instance cannot be null.

      It is possible to reproduce it

      • starting from a cache configuration like the following:
      <distributed-cache name="TEST_TASKS" owners="1" mode="SYNC" remote-timeout="17500" statistics="true">
      	<encoding>
      		<key media-type="application/x-protostream"/>
      		<value media-type="application/x-protostream"/>
      	</encoding>
      	<locking concurrency-level="1000" acquire-timeout="15000" striping="false"/>
      	<expiration lifespan="-1"/>
      	<memory storage="HEAP" max-count="1000"/>
      	<persistence passivation="false">
      		<file-store purge="false" read-only="false"/>
      	</persistence>
      	<indexing enabled="true" storage="filesystem">
      		<indexed-entities>
      			<indexed-entity>test.Task</indexed-entity>
      		</indexed-entities>
      	</indexing>
      	<state-transfer timeout="60000"/>
      </distributed-cache>
      
      • Add one entry to the cache, with LIFESPAN=30 secs
      • Running some queries like:
      select count(status) from test.Task t group by status
      

        1. Screenshot 2025-06-20 at 18.25.09.png
          189 kB
          Katia Aresti
        2. image-2025-06-20-18-27-56-457.png
          71 kB
          Katia Aresti
        3. image-2025-06-20-18-27-56-480.png
          87 kB
          Katia Aresti

              fercoli@redhat.com Fabio Massimo Ercoli
              fercoli@redhat.com Fabio Massimo Ercoli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: