Hello, 
I have a question about RecoverThread.java.
I think it related to the issue SEQUOIA-1018 and the change to 
RecoverThread.java in Revision 1.55.2.6.


At RecoverThread.java, Boolean.FALSE is assigned to recoveryProcessInterrupted 
and 
recoveryProcessInterrupted is used as the lock object in run().

/sequoia/src/org/continuent/sequoia/controller/recoverylog/RecoverThread.java 
(sequoia-2.10.10-src)
L.107
------------------
private Boolean recoveryProcessInterrupted = Boolean.FALSE;
------------------
L.225
------------------
synchronized (recoveryProcessInterrupted)
------------------

Boolean.FALSE is the static Boolean object.
I think it means all Boolean.FALSE in the Java process will be locked by this 
code.

java.lang.Boolean.java
------------------
    public static final Boolean TRUE = new Boolean(true);
------------------
    public static final Boolean FALSE = new Boolean(false);
------------------

If some other modules (for example JDBC Driver) use Boolean.FALSE as the lock 
object,
does RecoverThread wait for freeing Boolean.FALSE? (In the worst case, does it 
wait forever?)


Thanks and Regards,
Nishida
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to