[JBoss JIRA] Updated: (JBCACHE-326) Create the concept of a "priority queue" to speed execution of certain remote method invocations
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-326?page=all ]
Manik Surtani updated JBCACHE-326:
----------------------------------
Complexity: Medium
Assignee: Vladimir Blagojevic (was: Bela Ban)
Are we still doing this? This is the concept of a separate 'processor' thread for state events.
> Create the concept of a "priority queue" to speed execution of certain remote method invocations
> ------------------------------------------------------------------------------------------------
>
> Key: JBCACHE-326
> URL: http://jira.jboss.com/jira/browse/JBCACHE-326
> Project: JBoss Cache
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Reporter: Brian Stansberry
> Assigned To: Vladimir Blagojevic
> Fix For: 2.0.0
>
>
> Change the handling of requests in JBossCache (another interceptor on top of ReplicationInterceptor):
> - Create 2 queues (of MethodCall objects), one thread for each queue
> - The regular MethodCalls like put(), remove() etc go into the default queue (A), where they are processed according to order (FIFO)
> - The special calls like block(), _getState(), commit() or acks for PREPARE/COMMIT calls go into the other (priority) queue (B), these calls *CAN* be received out of sequence
> - This way, an _getState() would always be processed and would be able to (1) stop the processing of queue A and (2) force- release any locks held
> by on the tree.
> _ This way commit() calls can promptly release locks, without having to wait behind other prepare calls.
--
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
19 years, 8 months
[JBoss JIRA] Updated: (JBCACHE-315) Break locks for state transfer
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-315?page=all ]
Manik Surtani updated JBCACHE-315:
----------------------------------
Fix Version/s: 2.0.0
(was: 2.1.0)
Affects: [Documentation (Ref Guide, User Guide, etc.)]
Complexity: High
Targetting this for 2.0.0 rather than 2.1.0
> 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
> Fix For: 2.0.0
>
>
> 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
19 years, 8 months
[JBoss JIRA] Resolved: (JBCACHE-434) InternalDelegate doesn't relocate AOP nodes properly
by Ben Wang (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-434?page=all ]
Ben Wang resolved JBCACHE-434.
------------------------------
Resolution: Out of Date
Since PojoCache object mapping has been refactored in 2.0, this issue should not relevant anymore.
> InternalDelegate doesn't relocate AOP nodes properly
> ----------------------------------------------------
>
> Key: JBCACHE-434
> URL: http://jira.jboss.com/jira/browse/JBCACHE-434
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 1.2.4SP1
> Reporter: twundke
> Assigned To: Ben Wang
> Fix For: 2.0.0
>
> Attachments: relocate.txt
>
>
> When the object graph handler attempts to remove a node that has references to it, it relocates the data to the first referencing FQN in the list. However, InternalDelegate.relocate() fails to correctly update the AOP references. There is some commented-out code that seems to attempt to update the indirect FQN.
> I've attatched my updated code (for our demo), but it's overly complicated due to lack of time, sleep etc. In fact it fully updates the internal state of the cache for the node (including changing the indirect FQN, and changing all references to point to the new indirect FQN), which was the quickest way to get a solution at the time. You can probably cut out half of this by simply updating the indirect FQN correctly, which I presume was the intent in the first place. However, I believe this still only half-solves the problem as the reference counts need to be updated.
> Sorry if this is a bit of a vague bug report Ben, but I can't fully remember my thinking at the time. Hopefully my code at least shows all that has to be done to keep the cache consistent.
--
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
19 years, 8 months