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

Useless check against -1 in LimitedConnectionsFileSystem#fromConfig

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 1.5.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: