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

SimpleCondition await bug

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.17, 2.0.8
    • None
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Jianwei Zhang Jianwei Zhang Assign to me
            Jianwei Zhang Jianwei Zhang
            Jianwei Zhang
            jianweizhang
            Jianwei Zhang 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

                Slack

                  Issue deployment