3 Replies Latest reply: Mar 6, 2012 9:21 AM by Lin Ye RSS

    warning message on cache configuration

    Lin Ye Novice

      I upgraded to Infinispan 5.1.1 with the new way for configuration. The following is a snippet from my configuration code:

                                  config = new ConfigurationBuilder().read(config)
                                          .loaders().addCacheLoader()
                                          .cacheLoader(new ClusterCacheLoader())
                                         

      .fetchPersistentState(true).build();

      Basically, I am using the ClusterCahceLoader, and expect to get cache entries from peer nodes. I was getting the following configuration warnings:

      2012-03-01 22:27:34,523 | ISPN000149: Fetch persistent state and purge on startu

      p are both disabled, cache may contain stale entries on startup

      2012-03-01 22:27:34,523 | ISPN000149: Fetch persistent state and purge on startu

      p are both disabled, cache may contain stale entries on startup

      ...

      So I added the "fetchPersistentState(true)" in the above code snippet, but not sure if it's applicable to the ClusterCacheLoader at all. When testing it, even with the "fetchPersistentState(true)", I still got the above warnings without any change. Could someone please suggest what I miss? How to get rid of the configuration warnings?

       

      Thanks,

      Lin