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

Useless check against -1 in LimitedConnectionsFileSystem#fromConfig

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

              return new ConnectionLimitingSettings(
                  totalLimit == -1 ? 0 : totalLimit,
                  limitIn == -1 ? 0 : limitIn,
                  limitOut == -1 ? 0 : limitOut,
                  openTimeout,
      

      If any of the 3 variables is negative, control would have returned in the if block above.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: