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

cache startup error with named cache element <evictions maxEntries="-1"/> overriding defaults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 5.0.0.FINAL
    • Eviction
    • None
    • Hide

      run cache with following xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
      xmlns="urn:infinispan:config:5.0">

      <default>
      <indexing enabled="true" indexLocalOnly="true">
      <properties>
      <property name="hibernate.search.default.directory_provider" value="filesystem"/>
      </properties>
      </indexing>

      <locking isolationLevel="REPEATABLE_READ"
      lockAcquisitionTimeout="30000"
      writeSkewCheck="false"
      concurrencyLevel="5000"/>

      <eviction maxEntries="10" strategy="FIFO"/>
      <invocationBatching enabled="true"/>

      <clustering mode="LOCAL"/>

      <loaders passivation="false">
      <loader class="org.infinispan.loaders.jdbm.JdbmCacheStore"
      fetchPersistentState="true"
      ignoreModifications="false"
      purgeOnStartup="false">
      <async enabled="false"/>
      </loader>
      </loaders>
      </default>

      <namedCache name="blah">
      <eviction maxEntries="-1"/>
      <loaders passivation="false">
      <loader class="org.infinispan.loaders.jdbm.JdbmCacheStore"
      fetchPersistentState="false"
      ignoreModifications="false"
      purgeOnStartup="true">
      <async enabled="false"/>
      </loader>
      </loaders>
      </namedCache>

      <namedCache name="foo">
      <!-using defaults->
      </namedCache>

      </infinispan>

      Show
      run cache with following xml: <?xml version="1.0" encoding="UTF-8"?> <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd " xmlns="urn:infinispan:config:5.0"> <default> <indexing enabled="true" indexLocalOnly="true"> <properties> <property name="hibernate.search.default.directory_provider" value="filesystem"/> </properties> </indexing> <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="30000" writeSkewCheck="false" concurrencyLevel="5000"/> <eviction maxEntries="10" strategy="FIFO"/> <invocationBatching enabled="true"/> <clustering mode="LOCAL"/> <loaders passivation="false"> <loader class="org.infinispan.loaders.jdbm.JdbmCacheStore" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false"> <async enabled="false"/> </loader> </loaders> </default> <namedCache name="blah"> <eviction maxEntries="-1"/> <loaders passivation="false"> <loader class="org.infinispan.loaders.jdbm.JdbmCacheStore" fetchPersistentState="false" ignoreModifications="false" purgeOnStartup="true"> <async enabled="false"/> </loader> </loaders> </namedCache> <namedCache name="foo"> <!- using defaults -> </namedCache> </infinispan>

    Description

      if there is defined for example <eviction maxEntries="10" strategy="FIFO"/> in <default/> and there is redefinition <eviction maxEntries="-1"/> in named cache - the cache reports error during startup: org.infinispan.config.ConfigurationException: Eviction maxEntries value cannot be less than or equal to zero if eviction is enabled

      Attachments

        Activity

          People

            vblagoje Vladimir Blagojevic (Inactive)
            jsl_jira Jan Slezak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: