Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-258

Provide rendezvous with timeout to avoid deadlock in tests

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.1.4
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Using the rendezvous built-in function can lead to deadlock if not all threads arrive at the rendezvous point. This can cause tests to hang, provide little diagnostic information.

      It would be useful to be able to associate a timeout with a rendezvous, such that if the required number of threads did not arrive at the rendezvous before the timeout expired, a list of all arriving threads/not arriving threads is printed, together with a thread dump, together with an exception thrown so the test can exit cleanly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                rachmato Richard Achmatowicz
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: