You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mikhail Mazursky (JIRA)" <ji...@apache.org> on 2013/06/23 09:55:19 UTC

[jira] [Created] (CASSANDRA-5690) Fix AsyncOneResponse

Mikhail Mazursky created CASSANDRA-5690:
-------------------------------------------

             Summary: Fix AsyncOneResponse
                 Key: CASSANDRA-5690
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5690
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Mikhail Mazursky
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira