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

SimpleCondition await bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.17, 2.0.8
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      SimpleCondition await

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

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

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

        Attachments

        1. cassandra-1.2-7149.txt
          2 kB
          Jianwei Zhang

          Activity

            People

            • Assignee:
              Jianwei Zhang Jianwei Zhang
              Reporter:
              Jianwei Zhang Jianwei Zhang
              Authors:
              Jianwei Zhang
              Reviewers:
              Jianwei Zhang
              Tester:
              Jianwei Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified