You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/08/24 03:28:47 UTC

[GitHub] [flink] PatrickRen opened a new pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

PatrickRen opened a new pull request #16951:
URL: https://github.com/apache/flink/pull/16951


   ## What is the purpose of the change
   
   This pull request changes the behavior of detecting TaskManager termination in ```MiniClusterTestEnvironment``` to make the test more stable.
   
   
   ## Brief change log
   
   - Use ```InMemoryReporter``` in ```MiniClusterTestEnvironment```
   - Use metric "numRestarts" to detect if the TaskManager has been terminated
   
   ## 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] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     }, {
       "hash" : "46485b5f6490aa7669807d561012974742943b89",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23669",
       "triggerID" : "46485b5f6490aa7669807d561012974742943b89",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3e76937b85614a489177adaaa2f7bb7fd40e2552 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487) 
   * 46485b5f6490aa7669807d561012974742943b89 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23669) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 742fef0394b295c4e35fa1c698ba067846ffea19 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466) 
   * 3e76937b85614a489177adaaa2f7bb7fd40e2552 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 23fae801fb3e30f167a8d08886ef9a7d199ca55c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371) 
   * 742fef0394b295c4e35fa1c698ba067846ffea19 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] PatrickRen commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r701591943



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java
##########
@@ -138,7 +138,7 @@ public RestClient(Configuration configuration, Executor executor)
                 final OutboundChannelHandlerFactory factory = factories.next();
                 if (factory != null) {
                     outboundChannelHandlerFactories.add(factory);
-                    LOG.info("Loaded channel outbound factory: {}", factory);
+                    LOG.debug("Loaded channel outbound factory: {}", factory);

Review comment:
       This INFO log is too much, and not quite meaningful. I assume this is set by mistake for debugging: 
   ```
   180248 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@4b6e1c0
   180248 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@561b61ed
   180254 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@15400fff
   180254 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@18d910b3
   180299 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@77774571
   180299 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@277b8fa4
   ```




-- 
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] AHeise commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
AHeise commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904953453


   Instead of using the `InMemoryReporter` (via hack) can't we get the same information from REST Api?


-- 
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 edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     }, {
       "hash" : "46485b5f6490aa7669807d561012974742943b89",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23669",
       "triggerID" : "46485b5f6490aa7669807d561012974742943b89",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 46485b5f6490aa7669807d561012974742943b89 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23669) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] zentol commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
zentol commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904740141


   Depends a bit on what the method intends to provide. If it wants to ensure that the runnable is run after the job has indeed failed (i.e., the TM crash is noticed by the JM), which is what it currently does and what the naming seems to imply, then that would not be acceptable.
   
   Given the current usages of this method it would be fine, because the runnable never does anything interesting in the first place.
   
   However, we must ensure that the implementations from all TestEnvironments are aligned with each other.


-- 
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 edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3e76937b85614a489177adaaa2f7bb7fd40e2552 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] zentol commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r694780164



##########
File path: flink-test-utils-parent/flink-connector-testing/src/main/java/org/apache/flink/connectors/test/common/environment/MiniClusterTestEnvironment.java
##########
@@ -103,6 +113,9 @@ public void startUp() throws Exception {
             return;
         }
         this.miniCluster.before();
+        this.metricReporter =
+                (InMemoryReporter)

Review comment:
       instead of this ugly cast the we could modify signature of the factory




-- 
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] AHeise commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
AHeise commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r703275651



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java
##########
@@ -138,7 +138,7 @@ public RestClient(Configuration configuration, Executor executor)
                 final OutboundChannelHandlerFactory factory = factories.next();
                 if (factory != null) {
                     outboundChannelHandlerFactories.add(factory);
-                    LOG.info("Loaded channel outbound factory: {}", factory);
+                    LOG.debug("Loaded channel outbound factory: {}", factory);

Review comment:
       We should leave INFO in as it's relevant for production use cases (e.g. authorization handler in platforms). 
   That we have so much spam during tests is because we use test-jars of other projects where some test handlers are written. But we shouldn't make production harder to use because of our test setup.
   @zentol may address that in a follow-up work - maybe we can leverage JUnit5 for that.




-- 
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] PatrickRen commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-911266011


   Thanks @AHeise @zentol for the suggestion and sorry for my late response. I re-implemented this using ```RestClient``` for detecting task failure. Could you have another review on this PR? Thanks~


-- 
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] PatrickRen commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904710561


   Thanks @zentol for the review! 
   
   After a second thought I'm kinda doubting whether we need this check in ```triggerTaskManagerFailover```. Initially I was thinking we need to make sure that the job indeed suffers a failover after terminating the TM, so I used ```waitForJobStatus``` to wait until job getting into FAILED, FAILING or RESTART status after killing the TM. Actually this is not necessary since we always terminate the only TM and start a new one to trigger failover, so the job will definitely suffer a failover.
   
   I'd like to just remove the ```waitForJobStatus``` in ```MiniCluster#triggerTaskManagerFailover``` instead of using metric to detect restart:
   ```java
   @Override
   public void triggerTaskManagerFailover(JobClient jobClient, Runnable afterFailAction) throws Exception {
       terminateTaskManager();
       afterFailAction.run();
       startTaskManager();
   }
   ```
   
   What do you think @zentol @AHeise ?


-- 
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] AHeise merged pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
AHeise merged pull request #16951:
URL: https://github.com/apache/flink/pull/16951


   


-- 
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 edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 742fef0394b295c4e35fa1c698ba067846ffea19 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697) 
   * 23fae801fb3e30f167a8d08886ef9a7d199ca55c Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] zentol commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r694770859



##########
File path: flink-test-utils-parent/flink-connector-testing/src/main/java/org/apache/flink/connectors/test/common/environment/MiniClusterTestEnvironment.java
##########
@@ -128,6 +142,38 @@ private void startTaskManager() throws Exception {
         LOG.debug("New TaskManager {} has been launched.", latestTMIndex);
     }
 
+    @SuppressWarnings("unchecked")
+    private void waitUntilJobRestarted(JobClient jobClient, Deadline timeout) throws Exception {
+        checkNotNull(this.metricReporter, "In-memory metric reporter should exists");
+
+        // Get metric group of the running job
+        final Optional<JobManagerJobMetricGroup> jobMetricGroup =
+                metricReporter.findGroups("jobmanager").stream()
+                        .filter(group -> group instanceof JobManagerJobMetricGroup)

Review comment:
       ideally we avoid references to the internal metrics groups; can we not search for a pattern like `*<jobID>*numRestarts`?

##########
File path: flink-test-utils-parent/flink-connector-testing/src/main/java/org/apache/flink/connectors/test/common/environment/MiniClusterTestEnvironment.java
##########
@@ -103,6 +113,9 @@ public void startUp() throws Exception {
             return;
         }
         this.miniCluster.before();
+        this.metricReporter =

Review comment:
       I'm sorry but how does this even work? Where are we configuring the mini cluster to even use the reporter?

##########
File path: flink-test-utils-parent/flink-connector-testing/src/main/java/org/apache/flink/connectors/test/common/environment/MiniClusterTestEnvironment.java
##########
@@ -128,6 +142,38 @@ private void startTaskManager() throws Exception {
         LOG.debug("New TaskManager {} has been launched.", latestTMIndex);
     }
 
+    @SuppressWarnings("unchecked")
+    private void waitUntilJobRestarted(JobClient jobClient, Deadline timeout) throws Exception {
+        checkNotNull(this.metricReporter, "In-memory metric reporter should exists");
+
+        // Get metric group of the running job
+        final Optional<JobManagerJobMetricGroup> jobMetricGroup =
+                metricReporter.findGroups("jobmanager").stream()
+                        .filter(group -> group instanceof JobManagerJobMetricGroup)
+                        .map(group -> (JobManagerJobMetricGroup) group)
+                        .filter(group -> group.jobId().equals(jobClient.getJobID()))
+                        .findFirst();
+        if (!jobMetricGroup.isPresent()) {
+            throw new IllegalStateException(
+                    String.format(
+                            "Cannot find metric group of the running job with ID %s",
+                            jobClient.getJobID()));
+        }
+
+        // Get numRestarts gauge
+        final Map<String, Metric> metrics = metricReporter.getMetricsByGroup(jobMetricGroup.get());
+        if (!metrics.containsKey(MetricNames.NUM_RESTARTS)) {
+            throw new IllegalStateException(
+                    String.format(
+                            "Cannot find metric \"%s\" in job metric group",
+                            MetricNames.NUM_RESTARTS));
+        }
+        final Gauge<Long> numRestarts = (Gauge<Long>) metrics.get(MetricNames.NUM_RESTARTS);
+
+        // Wait until the job is restarted at least once
+        CommonTestUtils.waitUntilCondition(() -> numRestarts.getValue() > 0, timeout);

Review comment:
       I'm not fond of the implementation because it depends a lot on the assumption that this method is only called once, and that previously the job has not restarted once for any other reason.




-- 
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 #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904295008


   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 (Tue Aug 24 03:32:35 UTC 2021)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
    * **This pull request references an unassigned [Jira ticket](https://issues.apache.org/jira/browse/FLINK-23807).** According to the [code contribution guide](https://flink.apache.org/contributing/contribute-code.html), tickets need to be assigned before starting with the implementation work.
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 23fae801fb3e30f167a8d08886ef9a7d199ca55c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] AHeise commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
AHeise commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r701330242



##########
File path: flink-end-to-end-tests/flink-end-to-end-tests-common/src/main/java/org/apache/flink/tests/util/flink/FlinkContainer.java
##########
@@ -77,6 +82,8 @@
     private final Path logBackupDir;
     private final int numTaskManagers;
 
+    private RestClusterClient<StandaloneClusterId> restClusterClient;

Review comment:
       `@Nullable`

##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/testutils/CommonTestUtils.java
##########
@@ -213,6 +216,19 @@ public static void waitForAllTaskRunning(
                 timeout);
     }
 
+    public static void waitForNoTaskRunning(
+            SupplierWithException<JobDetailsInfo, Exception> jobDetailsSupplier, Deadline timeout)
+            throws Exception {
+        waitUntilCondition(
+                () -> {
+                    final Map<ExecutionState, Integer> state =
+                            jobDetailsSupplier.get().getJobVerticesPerState();
+                    return state.get(ExecutionState.RUNNING).equals(0);

Review comment:
       Couldn't that potentially give an NPE? Maybe
   
   ```suggestion
                       return state.get(ExecutionState.RUNNING) == null || state.get(ExecutionState.RUNNING).equals(0);
   ```

##########
File path: flink-end-to-end-tests/flink-end-to-end-tests-common/src/main/java/org/apache/flink/tests/util/flink/FlinkContainer.java
##########
@@ -126,6 +133,33 @@ public void afterTest(TestDescription description, Optional<Throwable> throwable
         temporaryFolder.delete();
     }
 
+    @Override
+    protected void doStart() {
+        super.doStart();
+        try {
+            final Configuration clientConfiguration = new Configuration();
+            clientConfiguration.set(RestOptions.ADDRESS, getHost());
+            clientConfiguration.set(RestOptions.PORT, getMappedPort(JOB_MANAGER_REST_PORT));
+            this.restClusterClient =
+                    new RestClusterClient<>(clientConfiguration, StandaloneClusterId.getInstance());
+        } catch (Exception e) {
+            throw new IllegalStateException(
+                    "Failed to create client for FlinkContainer cluster", e);
+        }

Review comment:
       How about lazy creation of the client in the getter? The field can serve as a cache.

##########
File path: flink-end-to-end-tests/flink-end-to-end-tests-common/src/main/java/org/apache/flink/tests/util/flink/FlinkContainerTestEnvironment.java
##########
@@ -89,14 +87,16 @@ public void triggerTaskManagerFailover(JobClient jobClient, Runnable afterFailAc
         flinkContainer.restartTaskManager(
                 () -> {
                     try {
-                        CommonTestUtils.waitForJobStatus(
-                                jobClient,
-                                Arrays.asList(
-                                        JobStatus.FAILING, JobStatus.FAILED, JobStatus.RESTARTING),
-                                Deadline.fromNow(Duration.ofSeconds(30)));
+                        CommonTestUtils.waitForNoTaskRunning(
+                                () ->
+                                        flinkContainer
+                                                .getRestClusterClient()
+                                                .getJobDetails(jobClient.getJobID())
+                                                .get(),
+                                Deadline.fromNow(Duration.ofMinutes(1)));
                     } catch (Exception e) {
-                        throw new RuntimeException(
-                                "Error waiting for job entering failure status", e);
+                        throw new IllegalStateException(
+                                "Failed to wait for all task not running", e);
                     }

Review comment:
       I think this exception translation is not really necessary. Just change `public void restartTaskManager(Runnable afterFailAction)` to `RunnableWithException`
   If you want to keep it, then please change the message to be a bit more helpful.

##########
File path: flink-test-utils-parent/flink-connector-testing/src/main/java/org/apache/flink/connectors/test/common/environment/MiniClusterTestEnvironment.java
##########
@@ -84,10 +85,9 @@ public void triggerJobManagerFailover(JobClient jobClient, Runnable afterFailAct
     public void triggerTaskManagerFailover(JobClient jobClient, Runnable afterFailAction)
             throws Exception {
         terminateTaskManager();
-        CommonTestUtils.waitForJobStatus(
-                jobClient,
-                Arrays.asList(JobStatus.FAILING, JobStatus.FAILED, JobStatus.RESTARTING),
-                Deadline.fromNow(Duration.ofMinutes(5)));
+        CommonTestUtils.waitForNoTaskRunning(
+                () -> miniCluster.getRestClusterClient().getJobDetails(jobClient.getJobID()).get(),
+                Deadline.fromNow(Duration.ofMinutes(1)));

Review comment:
       I wouldn't lower the timeout here. There is nothing to be gained.

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java
##########
@@ -138,7 +138,7 @@ public RestClient(Configuration configuration, Executor executor)
                 final OutboundChannelHandlerFactory factory = factories.next();
                 if (factory != null) {
                     outboundChannelHandlerFactories.add(factory);
-                    LOG.info("Loaded channel outbound factory: {}", factory);
+                    LOG.debug("Loaded channel outbound factory: {}", factory);

Review comment:
       Please add some description to the commit message to why this is a good change. I'm completely lost here.




-- 
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] PatrickRen commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r703290419



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java
##########
@@ -138,7 +138,7 @@ public RestClient(Configuration configuration, Executor executor)
                 final OutboundChannelHandlerFactory factory = factories.next();
                 if (factory != null) {
                     outboundChannelHandlerFactories.add(factory);
-                    LOG.info("Loaded channel outbound factory: {}", factory);
+                    LOG.debug("Loaded channel outbound factory: {}", factory);

Review comment:
       Thanks for pointing this out. I removed this commit in the latest push. 




-- 
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 edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 23fae801fb3e30f167a8d08886ef9a7d199ca55c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371) 
   * 742fef0394b295c4e35fa1c698ba067846ffea19 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] PatrickRen commented on a change in pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on a change in pull request #16951:
URL: https://github.com/apache/flink/pull/16951#discussion_r701591943



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java
##########
@@ -138,7 +138,7 @@ public RestClient(Configuration configuration, Executor executor)
                 final OutboundChannelHandlerFactory factory = factories.next();
                 if (factory != null) {
                     outboundChannelHandlerFactories.add(factory);
-                    LOG.info("Loaded channel outbound factory: {}", factory);
+                    LOG.debug("Loaded channel outbound factory: {}", factory);

Review comment:
       This INFO log is too much, and not quite meaningful. I assume this is set by mistake for debugging: 
   ```
   180248 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@4b6e1c0
   180248 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@561b61ed
   180254 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@15400fff
   180254 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@18d910b3
   180299 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio0OutboundChannelHandlerFactory@77774571
   180299 [main] INFO  org.apache.flink.runtime.rest.RestClient [] - Loaded channel outbound factory: org.apache.flink.runtime.rest.Prio1OutboundChannelHandlerFactory@277b8fa4
   ```
   I'll make the commit message more descriptive~




-- 
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 edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use RestClient to detect TaskManager failure in test environments

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     }, {
       "hash" : "46485b5f6490aa7669807d561012974742943b89",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "46485b5f6490aa7669807d561012974742943b89",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3e76937b85614a489177adaaa2f7bb7fd40e2552 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23487) 
   * 46485b5f6490aa7669807d561012974742943b89 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23371",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466",
       "triggerID" : "742fef0394b295c4e35fa1c698ba067846ffea19",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3e76937b85614a489177adaaa2f7bb7fd40e2552",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 742fef0394b295c4e35fa1c698ba067846ffea19 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=23466) 
   * 3e76937b85614a489177adaaa2f7bb7fd40e2552 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] flinkbot edited a comment on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-904302794


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697",
       "triggerID" : "4cd7cc8a0b2034285383f31ff38f7cd380dadaf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "23fae801fb3e30f167a8d08886ef9a7d199ca55c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4cd7cc8a0b2034285383f31ff38f7cd380dadaf2 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=22697) 
   * 23fae801fb3e30f167a8d08886ef9a7d199ca55c UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@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



[GitHub] [flink] zentol commented on pull request #16951: [FLINK-23807][connector/testing-framework] Use numRestarts metric to detect TaskManager termination in MiniClusterTestEnvironment

Posted by GitBox <gi...@apache.org>.
zentol commented on pull request #16951:
URL: https://github.com/apache/flink/pull/16951#issuecomment-905244143


   sure. we have the job ID so for this case it should suffice.


-- 
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