JBoss Community

REPL_SYNC with 1 phase possible?

created by Adam Fitzgerald in JBoss Cache - View the full discussion

Hi,

 

My understanding of how REPL_SYNC replication works is that on a user commit:

-locks are obtained for the keys on remote caches (during prepare)

-if the locks are successfully obtained, the cache commits and then replicates the changes to the remote instances

 

With REPL_SYNC and syncCommit=true it seems like there is the potential to optimize out one of these network round trips with more 1PC like semantics - we already do not have a success guarantee after the first phase (replication can fail). 

 

Is there a way to configure JBoss Cache to not obtain locks on remote instances during the prepare phase, and just try to replicate the changes during the commit?

 

Thanks,

Adam

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community