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

Potential loss of precision in 32 bit integer multiplication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0
    • Runtime / Network
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: