Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14392 Introduce JobClient API(FLIP-74)
  3. FLINK-15116

Make JobClient stateless, remove AutoCloseable

    XMLWordPrintableJSON

Details

    Description

      Currently, JobClient is AutoCloseable and we require users to close the JobClient that they get as a result from executeAsync(). This is problematic because users can simply ignore the result of executeAsync() and then we will leak the resources that the client has.

      We should change the JobClient so that it acquires the required ClusterClient for each method call and closes it again.

      This means that the users no longer have the burden of managing the JobClient lifecycle, i.e. they can freely ignore the result of executeAsync().

      Attachments

        Issue Links

          Activity

            People

              aljoscha Aljoscha Krettek
              aljoscha Aljoscha Krettek
              Votes:
              0 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