Bug 974403

Summary: RFE: LevelDB cache store support
Product: [JBoss] JBoss Data Grid 6 Reporter: Takayoshi Kimura <tkimura>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.1.0CC: jdg-bugs, mgencur
Target Milestone: DR4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 975081, 974409, 974411    
Attachments:
Description Flags
standalone.xml with LevelDB cachestore none

Comment 1 Tristan Tarrant 2013-06-16 20:43:56 UTC
Built in Brew/MEAD:

https://brewweb.devel.redhat.com/taskinfo?taskID=5909632

The server itself is http://download.devel.redhat.com/brewroot/work/tasks/9632/5909632/com/jboss/datagrid/jboss-datagrid-server/6.1.0.GA-redhat-2/jboss-datagrid-server-6.1.0.GA-redhat-2.zip

Add

- leveldb-0.6.jar in modules/org/iq80/leveldb/main
- leveldb-api-0.6.jar in modules/org/iq80/leveldb/api/main

modify the respective module.xml to include those jars in the resources, e.g.:

<resources>
        <resource-root path="leveldb-0.6.jar"/>
        <!-- Insert resources here -->
</resources>

Add the following to a cache definition in standalone.xml to configure the database

<store class="org.infinispan.loaders.leveldb.LevelDBCacheStore">
<property name="location" value="/path/to/leveldb/data" />
</store>

Comment 2 Tristan Tarrant 2013-06-17 14:11:00 UTC
Created attachment 762038 [details]
standalone.xml with LevelDB cachestore

Comment 5 Martin Gencur 2013-09-16 11:13:49 UTC
This feature has been developed for JDG 6.2 DR4. So I'm setting this to VERIFIED even though mlinhard found some issues, which stay open:

https://bugzilla.redhat.com/show_bug.cgi?id=1007947 EntrySet operation 
in cache with LevelDB store ignores expiration
https://bugzilla.redhat.com/show_bug.cgi?id=1007756 LevelDB Cache store 
in server doesn't keep data between restarts