[JBoss JIRA] Created: (ISPN-311) CacheLoader.loadKeys(), and performance improvements when rehashing from a cache store
by Manik Surtani (JIRA)
CacheLoader.loadKeys(), and performance improvements when rehashing from a cache store
--------------------------------------------------------------------------------------
Key: ISPN-311
URL: https://jira.jboss.org/jira/browse/ISPN-311
Project: Infinispan
Issue Type: Feature Request
Components: Distributed Cache, Loaders and Stores
Reporter: Manik Surtani
Assignee: Manik Surtani
Fix For: 4.1.0.BETA1, 4.1.0.GA
Rehashing can be improved a bit, specifically with the addition of something like CacheLoader.loadKeys(Set<Object> excludes). This will allow the rehash code to load just the necessary keys, excluding keys already considered from the data container directly, and then inspect each key to test if the key needs to be rehashed elsewhere. If so, the value could be loaded using load(), considering that as cluster sizes increase, rehashing would only affect a smaller percentage of overall data.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (ISPN-322) BucketBasedCacheStore - insertBucket and updateBucket should be combined
by Manik Surtani (JIRA)
BucketBasedCacheStore - insertBucket and updateBucket should be combined
------------------------------------------------------------------------
Key: ISPN-322
URL: https://jira.jboss.org/jira/browse/ISPN-322
Project: Infinispan
Issue Type: Task
Components: Loaders and Stores
Affects Versions: 4.0.0.GA
Reporter: Manik Surtani
Assignee: Mircea Markus
Fix For: 4.1.0.BETA1, 4.1.0.GA
insertBucket and updateBucket in BucketBasedCacheStore should be combined into 1 method (storeBucket?). Javadocs should be updated accordingly, to reflect that the bucket is persisted, and if it doesn't already exist, it will be created anew.
2 impls of this (FileCacheStore and CloudCacheStore) already delegate updateBucket() --> insertBucket(). The only impl that treats these 2 calls differently is the JdbcBinaryCacheStore. But this is incorrect since JdbcBinaryCacheStore.insertBucket() throws an exception if the row already exists. And this can happen if, for example, the cache store is in async mode. Or if it is shared.
So the JdbcBinaryCacheStore would first have to be fixed, to use SQL such as "INSERT... OR UPDATE", e.g.:
http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (ISPN-341) Incr/Decr returns in memcached module appear to be incorrect
by Galder Zamarreno (JIRA)
Incr/Decr returns in memcached module appear to be incorrect
------------------------------------------------------------
Key: ISPN-341
URL: https://jira.jboss.org/jira/browse/ISPN-341
Project: Infinispan
Issue Type: Bug
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
Fix For: 4.1.0.ALPHA1
Verify this:
[g@eq]~/i/code/trunk/server/memcached/src/main/resources% python sample_python_memcached_writer.py
Testing set ['Simple_Key': Simple value] ... OK
Testing set ['Expiring_Key' : 999 : 3] ... OK
Testing increment 3 times ['Incr_Key' : starting at 1 ] ... OK
FAIL: returned 50
FAIL: returned 51
FAIL: returned 52
Testing decrement 1 time ['Decr_Key' : starting at 4 ] ... OK
FAIL: returned 51
Testing decrement 2 times in one call ['Multi_Decr_Key' : 3 ] ... OK
FAIL: returned 50
It appears that the returned values are ASCIIs rather than numbers itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months