[JBoss JIRA] Created: (JBCACHE-1394) Refactor transaction logic
by Manik Surtani (JIRA)
Refactor transaction logic
--------------------------
Key: JBCACHE-1394
URL: https://jira.jboss.org/jira/browse/JBCACHE-1394
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Transactions
Reporter: Manik Surtani
Assignee: Mircea Markus
Fix For: 3.1.0
There are some redundancies here, which need tidying up. Specifically:
1. Redundant behaviour between TxInterceptor and InvocationContextInterceptor. ICI should *just* be in change of setting up and clearing down contexts. TxI should start implicit txs if needed, register syncs, handle remote prepares, commits and rollbacks, etc.
2. InvocationContext and TransactionContext has some redundanceis which can be cleaned up and optimised.
3. TransactionTable has an unnecessary number of Maps - these can be improved. It basically needs to be able to look up a Transaction and TransactionContext given a GlobalTransaction (for remote transactions coming in), as well as look up a GlobalTransaction and a TransactionContext given a Transaction (local transactions, retrieved from the TransactionManager).
It is probably best to wait for Optimistic and Pessimistic Locking to be removed before this since a lot of this is legacy support code.
--
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
16 years, 1 month
[JBoss JIRA] Created: (JBCACHE-772) State transfer not handled properly in case of reconnect
by Brian Stansberry (JIRA)
State transfer not handled properly in case of reconnect
--------------------------------------------------------
Key: JBCACHE-772
URL: http://jira.jboss.com/jira/browse/JBCACHE-772
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: 1.4.0.SP1, 1.4.0, 1.3.0.SP3, 1.3.0.SP2, 1.3.0.SP1, 1.3.0, 1.2.4SP2, 1.2.4SP1, 1.2.4
Reporter: Brian Stansberry
Assigned To: Manik Surtani
Fix For: 2.1.0
In createService(), TreeCache set Channel.AUTO_GET_STATE to true. This should only be done if the cache is configured to do an initial state transfer.
That's easy to fix. What's harder to fix is what to do when region-based marshalling is in effect. Probably, something like the following:
1) In viewAccepted, monitor for the case where a view is issue that doesn't include the current node. Set a flag and ??? (throw exceptions when attempts are made to use the cache???)
2) When another view is accepted that once again includes the current node, iterate through the various marshalling regions, inactivating and then reactivating them (reactivation will cause a partial state transfer).
--
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
16 years, 1 month
[JBoss JIRA] Created: (JBCACHE-1214) Can the cache be backed by LinkedHashSet instead of HashSet
by Carl Shelbourne (JIRA)
Can the cache be backed by LinkedHashSet instead of HashSet
-----------------------------------------------------------
Key: JBCACHE-1214
URL: http://jira.jboss.com/jira/browse/JBCACHE-1214
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Environment: RFC
Reporter: Carl Shelbourne
Assigned To: Manik Surtani
Priority: Optional
Looking at the code it is noted that the cache is backed by a HashSet.
Would it be possible to change this so that it is backed by a LinkedHashSet.
There may or may not be performance benefits to this dependant on the usage. The primary reason for wanting it to be backed by a LinkedHashSet is the guaranteed ordering of the elements when iterated over. Having this guarantee would facilitate implementations of say a TableModel, but would make other iterations more predictable too.
--
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
16 years, 1 month