You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "XComp (via GitHub)" <gi...@apache.org> on 2023/06/16 12:46:07 UTC

[GitHub] [flink] XComp opened a new pull request, #22809: [FLINK-32368][test] Fixes wrong interface implementation in KubernetesTestFixture

XComp opened a new pull request, #22809:
URL: https://github.com/apache/flink/pull/22809

   ## What is the purpose of the change
   
   [FlinkKubeClient.checkAndUpdateConfigMap](https://github.com/apache/flink/blob/ab3eb40d920fa609f49164a0bbb5fcbb3004a808/flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/FlinkKubeClient.java#L163) expects an error to be forwarded through the `CompletableFuture` instead of throwing a `RuntimeException`.
   
   The actual implementation implements it accordingly in [Fabric8FlinkKubeClient:313](https://github.com/apache/flink/blob/025a95b627faf8ec8b725a7784d1279b41e10ba7/flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/Fabric8FlinkKubeClient.java#L313) where a `CompletionException` is thrown within the `CompletableFuture`'s `supplyAsync` call resulting in the future to fail.
   
   `KubernetesTestFixture` doesn't make the returned future complete exceptionally but throws a `CompletionException` (see [KubernetesTestFixture:172](https://github.com/apache/flink/blob/6fc5f789869433688eb5f62494f1a4404e0dd11b/flink-kubernetes/src/test/java/org/apache/flink/kubernetes/highavailability/KubernetesTestFixture.java#L172)).
   
   This results in inconsistent test behavior.
   
   ## Brief change log
   
   * Updates the `KubernetesTestFixture`
   * adapts related tests
   
   ## Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] RyanSkraba commented on a diff in pull request #22809: [FLINK-32368][test] Fixes wrong interface implementation in KubernetesTestFixture

Posted by "RyanSkraba (via GitHub)" <gi...@apache.org>.
RyanSkraba commented on code in PR #22809:
URL: https://github.com/apache/flink/pull/22809#discussion_r1232287309


##########
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/highavailability/KubernetesStateHandleStoreTest.java:
##########
@@ -560,9 +560,9 @@ void testReplaceFailedAndDiscardState() throws Exception {
                             final FlinkKubeClient anotherFlinkKubeClient =
                                     createFlinkKubeClientBuilder()
                                             .setCheckAndUpdateConfigMapFunction(
-                                                    (configMapName, function) -> {

Review Comment:
   Much cleaner!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] XComp merged pull request #22809: [FLINK-32368][test] Fixes wrong interface implementation in KubernetesTestFixture

Posted by "XComp (via GitHub)" <gi...@apache.org>.
XComp merged PR #22809:
URL: https://github.com/apache/flink/pull/22809


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] flinkbot commented on pull request #22809: [FLINK-32368][test] Fixes wrong interface implementation in KubernetesTestFixture

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #22809:
URL: https://github.com/apache/flink/pull/22809#issuecomment-1594630273

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1db364b2c8df1cea24934125d82ef89c3a332a2f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1db364b2c8df1cea24934125d82ef89c3a332a2f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1db364b2c8df1cea24934125d82ef89c3a332a2f UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org