Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14105 Make flink-runtime scala-free
  3. FLINK-14069

Enable TimeUtils to parse all time units labels supported by scala Duration

    XMLWordPrintableJSON

Details

    Description

      Currently we are using scala Duration to parse duration configs.
      The supported time unit labels are

      { DAYS -> "d day", HOURS -> "h hour", MINUTES -> "min minute", SECONDS -> "s sec second", MILLISECONDS -> "ms milli millisecond", MICROSECONDS -> "┬Ás micro microsecond", NANOSECONDS -> "ns nano nanosecond" }

      We want to use Flink TimeUtils to parse the duration configuration, as a step to let flink core get rid of scala dependencies.
      In order not to break existing jobs, TimeUtils must be able to parse all time unit labels supported by scala Duration.

      Current TimeUtils supported time unit labels are "h", "min", "s" and "ms".
      We need to enrich it.

      Attachments

        Issue Links

          Activity

            People

              zhuzh Zhu Zhu
              zhuzh Zhu Zhu
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m