Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1949

LockService: tryLock() can wait forever

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.6.5
    • Labels:
      None

      Description

      When the ClientLock.acquireTryLock() method converts ns to ms, the resulting input can be 0, which leads to a wait(0), which will wait forever.
      SOLUTION: convert to ms before and skip the wait if 0.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                belaban Bela Ban
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: