[
https://issues.jboss.org/browse/ISPN-1331?page=com.atlassian.jira.plugin....
]
Jan Slezak commented on ISPN-1331:
----------------------------------
TC xml: treecache.xml:
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.0
http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
xmlns="urn:infinispan:config:5.0">
<default>
<invocationBatching enabled="true" />
<!--
<indexing enabled="true" indexLocalOnly="true">
<properties>
<property
name="hibernate.search.default.directory_provider" value="ram" />
</properties>
</indexing>
-->
<loaders passivation="false">
<loader class="org.infinispan.loaders.jdbm.JdbmCacheStore"
fetchPersistentState="false"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="/tmp/ifspntest/"/>
</properties>
<async enabled="false"/>
</loader>
</loaders>
</default>
</infinispan>
UT:
import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.tree.TreeCache;
import org.infinispan.tree.TreeCacheFactory;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
@Test
public class PersistentTreeCacheTest {
TreeCache treeCache;
@BeforeMethod
public void init() throws Exception {
EmbeddedCacheManager manager = new DefaultCacheManager("treecache.xml",
true);
Cache c = manager.getCache("simple");
TreeCacheFactory tf = new TreeCacheFactory();
treeCache = tf.createTreeCache(c);
System.out.println("treeCache = " + treeCache);
treeCache.start();
}
@Test
public void testPut() {
treeCache.getRoot().put("key1", "data1");
assertEquals("data1", treeCache.getRoot().get("key1"));
}
}
Log something about auto discovered modules and extensions
----------------------------------------------------------
Key: ISPN-1331
URL:
https://issues.jboss.org/browse/ISPN-1331
Project: Infinispan
Issue Type: Feature Request
Reporter: Sanne Grinovero
Assignee: Manik Surtani
Fix For: 5.1.0.ALPHA1
It seems that when looking in the classpath for instances of
_infinispan-module.properties_ files, nothing is logged. No idea why it's not loading
an extension.
Also specific modules should log their registration happening:
_org.infinispan.tree.LifecycleCallbacks_ should mention that it's being enabled.
(when registration of such a module doesn't happen, people experience misleading
errors)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira