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

Provide rendezvous with timeout to avoid deadlock in tests

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • 2.2.0
    • 2.1.4
    • None
    • 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.

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rachmato@redhat.com Richard Achmatowicz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: