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

Deprecated Eviction Builder reports inaccurate warning

    XMLWordPrintable

Details

    • Hide

      Configuration:
      config.persistence()
      .passivation(true)
      .memory()
      .evictionStrategy(EvictionStrategy.REMOVE)
      .storageType(StorageType.OBJECT)
      .evictionType(EvictionType.COUNT)
      .size(40);

      And when I run I get:
      479197 [Gogo shell] INFO org.infinispan.configuration.cache.EvictionConfigurationBuilder - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

      And in the method validate in EvictionConfigurationBulder:
      strategy = NONE
      passivation = true (obviously)
      template = false

      which triggers the invalid log.

      Show
      Configuration: config.persistence() .passivation(true) .memory() .evictionStrategy(EvictionStrategy.REMOVE) .storageType(StorageType.OBJECT) .evictionType(EvictionType.COUNT) .size(40); And when I run I get: 479197 [Gogo shell] INFO org.infinispan.configuration.cache.EvictionConfigurationBuilder - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. And in the method validate in EvictionConfigurationBulder: strategy = NONE passivation = true (obviously) template = false which triggers the invalid log.

    Description

      Using the memory builder setting for configuration as Eviction one is deprecated, the eviction builder validate method still gets called and reports invalid warning as reported here

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            alpic80 Alain Picard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: