Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-5690

Fix AsyncOneResponse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.0
    • None
    • None
    • Low

    Description

      Current implementation of AsyncOneResponse suffers from two problems:
      1. Spurious wakeup will lead to TimeoutException being thrown because awaiting for condition is not done in loop;
      2. condition.signal() is used where .signalAll() should be used - this leads to only one thread blocked on .get() to be unblocked. Other threads will stay blocked forever.

      Attachments

        1. trunk-5690.patch
          4 kB
          Mikhail Mazursky

        Issue Links

          Activity

            People

              ash2k Mikhail Mazursky
              ash2k Mikhail Mazursky
              Mikhail Mazursky
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: