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

Support to parse -1 for MemorySize and Duration ConfigOption

    XMLWordPrintableJSON

Details

    Description

      Currently, MemorySize and Duration ConfigOption doesn't support to parse -1 or -1s.

      java.lang.NumberFormatException: text does not start with a number
      	at org.apache.flink.configuration.MemorySize.parseBytes(MemorySize.java:294)
      

      That makes us can't to use -1 as a disabled value, and have to use 0 which may confuse users at some senarios.

      There is some discussion around this topic in :https://github.com/apache/flink/pull/12536#discussion_r438019632

      Attachments

        Activity

          People

            Unassigned Unassigned
            jark Jark Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: