[JBoss JIRA] Resolved: (JBCACHE-474) Compatibility fwk for all classes passed on the wire
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-474?page=all ]
Manik Surtani resolved JBCACHE-474.
-----------------------------------
Fix Version/s: (was: 2.2.0.GA)
Resolution: Out of Date
> Compatibility fwk for all classes passed on the wire
> ----------------------------------------------------
>
> Key: JBCACHE-474
> URL: http://jira.jboss.com/jira/browse/JBCACHE-474
> Project: JBoss Cache
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 1.2.4SP1
> Reporter: Manik Surtani
> Assigned To: Manik Surtani
>
> Classes that are serialized:
> Fqn
> MethodCall (JG?)
> *Exception
> GlobalTransaction
> State transfers
> 1) Lets use JGroups Streamable where possible (dependency? Externalizable instead?)
> 2) Provide a header short containing version
> 3) Use a MarshallingFactory for each version so we can understand messages from older installations
> 4) Provide MarshallingFactories as plugins so old versions can talk to newer versions (fwd compat)
> Object unmarshal(short version, Class type, InputStream is)
> {
> // if plugin directory empty or unset || version == currentVersion, revert back to existing mechanism
> // else
> // Look up UnmarshallerPlugin in the compat table (populated at startup with the contents of the plugin dir)
> // Lookup based on version and class type. Unmarshaller then extracts and regenerates the relevant object.
> }
> Unit test as well.
> Standalone fwk? jboss-compat.jar + plugins.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Updated: (JBCACHE-89) Allow Specifying Custom Interceptors in XML Configuration
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-89?page=all ]
Manik Surtani updated JBCACHE-89:
---------------------------------
Fix Version/s: 3.0.0
(was: 2.2.0.GA)
> Allow Specifying Custom Interceptors in XML Configuration
> ---------------------------------------------------------
>
> Key: JBCACHE-89
> URL: http://jira.jboss.com/jira/browse/JBCACHE-89
> Project: JBoss Cache
> Issue Type: Feature Request
> Affects Versions: 1.2
> Reporter: Daniel Gredler
> Assigned To: Manik Surtani
> Fix For: 3.0.0
>
> Original Estimate: 1 day
> Time Spent: 30 minutes
> Remaining Estimate: 7 hours, 30 minutes
>
> It would be nice to be able to add interceptors via the XML configuration files. Indeed, in TreeCache.java the following comment exists, which may indicate that this feature is already planned:
> // Create the interceptors in the correct order (later to be defined in XML file)
> createInterceptorChain();
> A possible example configuration would be:
> <server>
> <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar" />
> <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">
> ...
> <attribute name="Interceptors">
> <interceptor>com.foo.project.MyInterceptor</interceptor>
> </attribute>
> ...
> </mbean>
> </server>
> Something along the lines of the following method would then be able to add the custom interceptors (in TreeCache.java):
> public void setInterceptors(Element interceptors) throws Exception {
> NodeList list = interceptors.getChildNodes();
> for(int i = 0; i < list.getLength(); i++) {
> org.w3c.dom.Node node = list.item(i);
> if(node.getNodeType() != org.w3c.dom.Node.ELEMENT_NODE)
> continue;
> NodeList children = node.getChildNodes();
> if(children.getLength() != 1)
> continue;
> org.w3c.dom.Node childNode = list.item(0);
> if(childNode.getNodeType() != org.w3c.dom.Node.TEXT_NODE)
> continue;
> String className = childNode.getNodeValue();
> if(className == null || className.length() == 0)
> continue;
> Interceptor interceptor = createInterceptor(className);
> addInterceptor(interceptor_chain, interceptor);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Resolved: (JBCACHE-315) Break locks for state transfer
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-315?page=all ]
Manik Surtani resolved JBCACHE-315.
-----------------------------------
Fix Version/s: (was: 2.2.0.GA)
Resolution: Won't Fix
Makes more sense to focus on the new state transfer mechanism in JBCACHE-1236
> Break locks for state transfer
> ------------------------------
>
> Key: JBCACHE-315
> URL: http://jira.jboss.com/jira/browse/JBCACHE-315
> Project: JBoss Cache
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Bela Ban
> Assigned To: Vladimir Blagojevic
> Priority: Critical
>
> State transfer needs to acquire a lock on the root to make sure all existing TXs have been completed. However, when a TX takes more time than the lock acquisition timeout, state transfer will fail.
> Therefore, we need to forcefully acquire the locks for the state transfer by force-releasing the existing locks, and rolling back all TXs that held those locks.
> This will ensure that state transfer always succeeds, at the expense of some rolled back TXs.
> We need to investigate how this works with optimistic locking
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months