flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-8037) Missing cast in integer arithmetic in TransactionalIdsGenerator#generateIdsToAbort
Date Wed, 08 Nov 2017 21:25:01 GMT
Ted Yu created FLINK-8037:
-----------------------------

             Summary: Missing cast in integer arithmetic in TransactionalIdsGenerator#generateIdsToAbort
                 Key: FLINK-8037
                 URL: https://issues.apache.org/jira/browse/FLINK-8037
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
  public Set<String> generateIdsToAbort() {
    Set<String> idsToAbort = new HashSet<>();
    for (int i = 0; i < safeScaleDownFactor; i++) {
      idsToAbort.addAll(generateIdsToUse(i * poolSize * totalNumberOfSubtasks));
{code}
The operands are integers where generateIdsToUse() expects long parameter.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message