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

Potential loss of precision in 32 bit integer multiplication

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Network
    • Labels:
      None

      Description

      In TaskManagerServicesConfiguration#parseNetworkEnvironmentConfiguration

          if (!hasNewNetworkBufConf(configuration)) {
            // map old config to new one:
            networkBufMin = networkBufMax = numNetworkBuffers * pageSize;
      

      networkBufMax is a long.
      However the multiplication is done in 32 bit integer, leading to potential loss of precision.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yuzhihong@gmail.com Ted Yu
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: