cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianwei Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7149) SimpleCondition await bug
Date Sun, 04 May 2014 06:09:14 GMT
Jianwei Zhang created CASSANDRA-7149:
----------------------------------------

             Summary: SimpleCondition await bug
                 Key: CASSANDRA-7149
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7149
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jianwei Zhang
            Priority: Minor


SimpleCondition await

There is a bug when converting other time unit to missisecond .

now:
long end = System.currentTimeMillis() + unit.convert(time, TimeUnit.MILLISECONDS);

should be:
long end = System.currentTimeMillis() + TimeUnit.MILLISECONDS.convert(time, unit);



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message