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

KubernetesTestFixture doesn't implement the checkAndUpdateConfigMapFunction properly

    XMLWordPrintableJSON

Details

    Description

      FlinkKubeClient.checkAndUpdateConfigMap expects an error to be forwarded through the CompletableFuture instead of throwing a RuntimeException.

      The actual implementation implements it accordingly in Fabric8FlinkKubeClient:313 where a CompletionException is thrown within the CompletableFuture's supplyAsync call resulting the future to fail.

      KubernetesTestFixture doesn't make the returned future complete exceptionally but throws a CompletionException (see KubernetesTestFixture:172).

      This results in inconsistent test behavior.

      Attachments

        Activity

          People

            mapohl Matthias Pohl
            mapohl Matthias Pohl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: