This content has been marked as final.
Show 3 replies
-
1. Re: Confused by the indexing change introduced by 9.1.1.Final.
gustavonalle Oct 4, 2017 6:17 AM (in response to seto)Eviction is not supported for the Lucene caches, it's strange that you can use it with 9.1.0.Final. Regarding persistence, it should work both on 9.1.0 and 9.1.1. Could you post your complete configuration?
-
2. Re: Confused by the indexing change introduced by 9.1.1.Final.
seto Oct 4, 2017 10:52 AM (in response to gustavonalle)I can use both eviction and persitence with 9.0.0, 9.0.1 and 9.1.0 before.
private ConfigurationBuilder evictionConfig(ConfigurationBuilder configurationBuilder) { configurationBuilder.memory() .evictionType(EvictionType.MEMORY) .storageType(StorageType.OFF_HEAP) .size(500 * 1024 * 1024); return configurationBuilder; }
private ConfigurationBuilder persistenceConfig(ConfigurationBuilder configurationBuilder) { configurationBuilder.persistence() .addStore(JdbcStringBasedStoreConfigurationBuilder.class) .async().enable() .preload(preload) .shared(shared) .fetchPersistentState(fecthPersistentState) .ignoreModifications(ignoreModifications) .purgeOnStartup(purgeOnStartup) .table() .createOnStart(createOnStart) .dropOnExit(dropOnExit) .tableNamePrefix("ISPN_STRING_TABLE") .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)") .dataColumnName("DATA_COLUMN").dataColumnType("BLOB") .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT") .connectionPool() .connectionUrl(connectionUrl) .username(username) .password(password) .driverClass(driverClass); return configurationBuilder; }
And here's the error.
org.infinispan.persistence.keymappers.UnsupportedKeyTypeException: Unsupported key type: 'org.infinispan.lucene.FileCacheKey' on key: M|segments_1|co.kaiba.blueeyes.impl.network.ClientChannelGroupMemberImpl|-1
-
3. Re: Confused by the indexing change introduced by 9.1.1.Final.
gustavonalle Oct 5, 2017 2:59 AM (in response to seto)You need to declare the key to string mapper in order to persist the lucene caches. In the programmatic configuration, it's achieved by
.key2StringMapper(LuceneKey2StringMapper.class)