With the completion of
JBCACHE-315, the usage of the various "timeout" attributes in state transfer has changed. Based on this, the default value of state transfer timeout, which used to be 5 secs, needs to change as well.
Prior to 1.3, state_transfer_timeout was used in 2 ways:
1) Requestor of state transfer would wait that long to receive state before giving up.
2) Producer of state would wait that long to acquire locks on the tree before failing.
Now that we're breaking locks if necessary on the producer side, waiting state_transfer_timeout before doing so makes no sense. If we wait that long, the requestor will have timed out and given up, and breaking the locks will be a waste.
I certainly didn't want to add a new parameter (e.g. state_transfer_break_lock_timeout or some such.) Therefore, on the producer side, the producer now waits lock_acquisition_timeout ms before breaking the locks. Therefore, logically the state_transfer_timeout should be greater than the lock_acquisition_timeout.
Since the default lock_acquisition_timeout is 10000ms, I propose to make the default state_transfer_timeout 15000ms.