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

Incorrect LoaderConfigurationBuilder validation causes misleading WARN log message

    XMLWordPrintable

Details

    Description

      LoaderConfigurationBuilder.validate() tests for the following condition:

      if (!getLoadersBuilder().shared() && fetchPersistentState && purgeOnStartup && getBuilder().clustering().cacheMode().isClustered()) {
      log.staleEntriesWithoutFetchPersistentStateOrPurgeOnStartup();
      }

      The error message reads:
      "Fetch persistent state and purge on startup are both disabled, cache may contain stale entries on startup"

      However, the condition tests for the case where fetch persistent state and purge are both enabled. The result is a misleading WARN message in the logs.

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: