[infinispan-issues] [JBoss JIRA] (ISPN-3933) Preloading and Shared options can not be enabled on a JDBCCachestore via configuration files

Eric van Lydegraf (JIRA) issues at jboss.org
Wed May 14 11:59:59 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12967868#comment-12967868 ] 

Eric van Lydegraf commented on ISPN-3933:
-----------------------------------------

Here's a workaround for this bug
{code:title=FixInfinispanDirectoryProvider.java|borderStyle=solid}
public class FixInfinispanDirectoryProvider
    extends InfinispanDirectoryProvider
{
    @Override
    public void initialize(String directoryProviderName, Properties properties, BuildContext context)
    {
        super.initialize(directoryProviderName, properties, context);
        String indexName = InfinispanIntegration.getMetadataCacheName(properties);
        Configuration cacheConfig = getCacheManager().getCacheConfiguration(indexName);
        List<StoreConfiguration> cacheStoreConfigs = cacheConfig.persistence().stores();
        for (StoreConfiguration storeConfig : cacheStoreConfigs)
        {
            Field preloadField = ReflectionUtils.findField(AbstractStoreConfiguration.class, "preload");
            ReflectionUtils.makeAccessible(preloadField);
            ReflectionUtils.setField(preloadField, storeConfig, Boolean.TRUE);
        }
    }

}
{code}

> Preloading and Shared options can not be enabled on a JDBCCachestore via configuration files
> --------------------------------------------------------------------------------------------
>
>                 Key: ISPN-3933
>                 URL: https://issues.jboss.org/browse/ISPN-3933
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 6.0.0.Final, 6.0.1.Final
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>            Priority: Critical
>              Labels: 630
>             Fix For: 7.0.0.Alpha1, 7.0.0.Final
>
>
> The configuration schema doesn't allow to enable the "preload" attribute of a JDBCCacheStore.
> I classify this as critical as the JDBCCacheStore is the only viable solution for a shared cachestore, and the Lucene Directory requires "preload" to be activated.



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the infinispan-issues mailing list