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

Consider shaping newly introduced RuntimeContext.getJobId to return JobID with no Optional wrapper

    XMLWordPrintableJSON

Details

    Description

      Currently, this newly introduced RuntimeContext.getJobId() returns Optional<JobID>. The only path where it returns no job id is RuntimeUDFContext(through CollectionExecutor through CollectionEnvironment).

      But after DataSet dropped, there will be no paths to return no job id. Both FLINK-21581 and my comment raised this concern. But different with FLINK-21581, I think we could return an environment/executor/plan level unique job id in RuntimeUDFContext for this new api. This way there will be no breaking change after DataSet dropped. And more importantly, a careful chosen job id does not hurt callers of RuntimeUDFContext in my opinion.

      cc  chesnay roman_khachatryan aljoscha sewen 

      Attachments

        Issue Links

          Activity

            People

              roman Roman Khachatryan
              kezhuw Kezhu Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: