[JBoss JIRA] (ISPN-2020) MarshalledValues to not compact eagerly
by Manik Surtani (JIRA)
Manik Surtani created ISPN-2020:
-----------------------------------
Summary: MarshalledValues to not compact eagerly
Key: ISPN-2020
URL: https://issues.jboss.org/browse/ISPN-2020
Project: Infinispan
Issue Type: Feature Request
Components: Marshalling
Affects Versions: 5.1.4.FINAL
Reporter: Manik Surtani
Assignee: Galder Zamarreño
Fix For: 5.1.x, 5.2.0.ALPHA1, 5.2.0.FINAL
Marshalled values currently get compacted aggressively, limiting usability as a form of class loader isolation. E.g.,
Node 1: put(k, v) results in v being wrapped in a MarshalledValue, the instance field being set, the raw field being generated when serialization is needed, and as the put call returns, the raw field is un-set. This is fine for the most part, except when state transfer kicks in, and the entry needs to be transferred elsewhere. The instance may not be serialized since an application specific class loader may not be available at this time.
This proposal is to add the following:
1. A new configuration option, {{eagerCompacting}}, defaulting to {{true}} (current behaviour).
2. If set to false, the raw representation is kept around, and can be reused, effectively working around the class loader problem.
3. The drawback here would be the additional memory needed to store the second reference on the originator, but the benefit of not having to serialize as often should offset this.
Compacting then can still happen on the originator by manually triggering the {{cache#compact()}} API.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (ISPN-1439) Async store needs redesigning to support injected executors
by Galder Zamarreño (Created) (JIRA)
Async store needs redesigning to support injected executors
-----------------------------------------------------------
Key: ISPN-1439
URL: https://issues.jboss.org/browse/ISPN-1439
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Loaders and Stores
Reporter: Galder Zamarreño
Assignee: Sanne Grinovero
Fix For: 5.2.0.FINAL
The CoalescedAsyncStore design is pretty complex and is designed around AsyncStore being able to control the lifecycle of the async store coordinator and processor executors.
A re-design of the async store is needed to enable central management of these executors, in such way that the NamedExecutorFactory can start with the right parameters (take in account that multiple caches could be configured with an async store), and the shutdown procedure can be correctly executed by the cache manager.
The async store's coalesced logic makes this a fairly complex task, particularly since the introduction of Sanne's changes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] Created: (ISPN-924) Support Atomic arithmetic operations in the API
by Erik Salter (JIRA)
Support Atomic arithmetic operations in the API
-----------------------------------------------
Key: ISPN-924
URL: https://issues.jboss.org/browse/ISPN-924
Project: Infinispan
Issue Type: Feature Request
Reporter: Erik Salter
Assignee: Manik Surtani
It would be useful if Infinispan supported cluster-wide atomic operations for java.lang.Number types in the API -- similar to the AtomicX API in Java.
Right now, to cobble this functionality, we'd need to do something like:
- Start a tx
- Single-lock a key
- Get and increment
- Commit
- And, of course, handle the cache exceptions =)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] Created: (ISPN-1208) Use Hibernate Validator to validate entries stored in Infinispan
by Manik Surtani (JIRA)
Use Hibernate Validator to validate entries stored in Infinispan
----------------------------------------------------------------
Key: ISPN-1208
URL: https://issues.jboss.org/browse/ISPN-1208
Project: Infinispan
Issue Type: Feature Request
Components: Core API
Affects Versions: 5.0.0.FINAL
Reporter: Manik Surtani
Assignee: Manik Surtani
Fix For: 5.1.0.BETA1, 5.1.0.Final
Should be very trivial to implement as an additional interceptor, where values can be annotated with Hibernate Validator and the interceptor can validate the entries passed in.
Should be optional, and packaged as a separate module so that we don't pull in additional dependencies into core.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month