Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8037

Missing cast in integer arithmetic in TransactionalIdsGenerator#generateIdsToAbort

    XMLWordPrintableJSON

Details

    Description

        public Set<String> generateIdsToAbort() {
          Set<String> idsToAbort = new HashSet<>();
          for (int i = 0; i < safeScaleDownFactor; i++) {
            idsToAbort.addAll(generateIdsToUse(i * poolSize * totalNumberOfSubtasks));
      

      The operands are integers where generateIdsToUse() expects long parameter.

      Attachments

        Activity

          People

            greghogan Greg Hogan
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m