Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-429

Make default state transfer timeout > lock acquisition timeout

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.3.0.GA
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brian.stansberry Brian Stansberry
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: