Skip to content

Commit

Permalink
ISPN-1898 Check whether cache store is writable before logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
galderz authored and tristantarrant committed Mar 20, 2012
1 parent 922ec9a commit af91624
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@

/**
* ConfigurationValidatingVisitor checks semantic validity of InfinispanConfiguration instance.
*
*
*
*
* @author Vladimir Blagojevic
* @since 4.0
* @deprecated Belongs to old configuration and so will dissapear in future releases
*/
@SuppressWarnings("boxing")
@Deprecated
public class ConfigurationValidatingVisitor extends AbstractConfigurationBeanVisitor {

private static final Log log = LogFactory.getLog(ConfigurationValidatingVisitor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Properties;

import org.infinispan.loaders.CacheLoader;
import org.infinispan.loaders.CacheStore;
import org.infinispan.util.TypedProperties;
import org.infinispan.util.logging.Log;
import org.infinispan.util.logging.LogFactory;
Expand Down Expand Up @@ -119,7 +120,8 @@ void validate() {
async.validate();
singletonStore.validate();
if (!getLoadersBuilder().shared() && !fetchPersistentState && !purgeOnStartup
&& getBuilder().clustering().cacheMode().isClustered())
&& getBuilder().clustering().cacheMode().isClustered()
&& cacheLoader instanceof CacheStore)
log.staleEntriesWithoutFetchPersistentStateOrPurgeOnStartup();
}

Expand Down

0 comments on commit af91624

Please sign in to comment.