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/09/29 13:42:21 UTC

[GitHub] [flink] rkhachatryan opened a new pull request #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

rkhachatryan opened a new pull request #17387:
URL: https://github.com/apache/flink/pull/17387


   ## What is the purpose of the change
   
   Provide metrics for the changelog state backend (low-level uploader, batching, retries).
   
   ## Verifying this change
   
   TBD
   
   ## 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/Mesos, 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? no
   


-- 
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 #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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






-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305) 
   * 5188cc85916df5679dc56281223209f7079ec65a Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2ab4cb96d4fa163a206dfad002dff2accc9ae9e6 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26575",
       "triggerID" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1a458e189a85566571b071fd0bc54df9317d2db3 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26575) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26575",
       "triggerID" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3f327ff8b27a58f1570c832a7a3e0a75178f2f3e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559) 
   * 1a458e189a85566571b071fd0bc54df9317d2db3 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26575) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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






-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] zentol commented on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   > Would you prefer this change to be in a separate ticket and PR?
   
   A separate ticket for sure; whether we need a separate PR is up to you (as you'll need to manage the discussions/commits, so pick whatever works best for you).


-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5188cc85916df5679dc56281223209f7079ec65a Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(

Review comment:
       Ok...though it looks like there isn't much consistency:)
   ```
   // TaskMetricGroup
       public InternalOperatorMetricGroup getOrAddOperator(String operatorName) {
           return getOrAddOperator(OperatorID.fromJobVertexID(vertexId), operatorName);
       }
   ```




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(
+            JobID jobId, String jobName) {
         Preconditions.checkNotNull(jobId);
-
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
-
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
+        TaskManagerJobMetricGroup jobGroup;
+        synchronized (this) { // synchronization isn't strictly necessary as of FLINK-24864
+            jobGroup = jobs.get(jobId);
+            if (jobGroup == null) {
+                jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+                jobs.put(jobId, jobGroup);
             }
-
-            // else fall through the loop
         }
+        return jobGroup;
     }
 
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
-        }
-
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       Can we mark this as `@VisibleForTesting`?

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerJobMetricGroup.java
##########
@@ -38,6 +39,7 @@
  * <p>Contains extra logic for adding Tasks ({@link TaskMetricGroup}).
  */
 @Internal
+@NotThreadSafe

Review comment:
       I thought we didn't want to change this?

##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2536,6 +2484,61 @@ public void testDynamicSlotAllocation() throws Exception {
         }
     }
 
+    @Test
+    public void testReleasingJobResources() throws Exception {
+        AllocationID[] slots =
+                range(0, 5).mapToObj(i -> new AllocationID()).toArray(AllocationID[]::new);
+        try (TaskExecutorTestingContext ctx = createTaskExecutorTestingContext(slots.length)) {
+            ctx.start();
+            ResourceManagerId rmId;
+            {
+                CompletableFuture<Tuple3<ResourceID, InstanceID, SlotReport>>
+                        initialSlotReportFuture = new CompletableFuture<>();
+                rmId = createAndRegisterResourceManager(initialSlotReportFuture);
+                initialSlotReportFuture.get();
+            }
+
+            TaskExecutorGateway gateway =
+                    ctx.taskExecutor.getSelfGateway(TaskExecutorGateway.class);
+
+            for (int i = 0; i < slots.length; i++) {
+                requestSlot(
+                        gateway,
+                        jobId,
+                        slots[i],
+                        buildSlotID(i),
+                        ResourceProfile.UNKNOWN,
+                        ctx.jobMasterGateway.getAddress(),
+                        rmId);
+            }
+            ExecutionAttemptID attemptID =
+                    submitNoOpInvokableTask(
+                            slots[0], new TestingJobMasterGatewayBuilder().build(), gateway);
+            assertNotNull(ctx.changelogStoragesManager.getChangelogStoragesByJobId(jobId));
+            assertNotNull(ctx.metricGroup.getJobMetricsGroup(jobId));
+
+            // cancel tasks before releasing the slots - so that TM will release job resources on
+            // the last slot release
+            gateway.cancelTask(attemptID, timeout).get();
+            while (ctx.taskSlotTable.getTasks(jobId).hasNext()) {

Review comment:
       this access isn't thread-safe; it's backed by a plain HashMap but the test and TM thread are accessing it.
   You need to run this within `ctx.taskExecutor.getMainThreadExecutableForTesting()`.

##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroupTest.java
##########
@@ -0,0 +1,92 @@
+package org.apache.flink.runtime.metrics.groups;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.flink.api.common.JobID;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.apache.flink.runtime.metrics.NoOpMetricRegistry.INSTANCE;
+import static org.junit.Assert.assertNotSame;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;

Review comment:
       new tests should use junit5.

##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2536,6 +2484,61 @@ public void testDynamicSlotAllocation() throws Exception {
         }
     }
 
+    @Test
+    public void testReleasingJobResources() throws Exception {
+        AllocationID[] slots =
+                range(0, 5).mapToObj(i -> new AllocationID()).toArray(AllocationID[]::new);
+        try (TaskExecutorTestingContext ctx = createTaskExecutorTestingContext(slots.length)) {
+            ctx.start();
+            ResourceManagerId rmId;
+            {
+                CompletableFuture<Tuple3<ResourceID, InstanceID, SlotReport>>
+                        initialSlotReportFuture = new CompletableFuture<>();
+                rmId = createAndRegisterResourceManager(initialSlotReportFuture);
+                initialSlotReportFuture.get();
+            }
+
+            TaskExecutorGateway gateway =
+                    ctx.taskExecutor.getSelfGateway(TaskExecutorGateway.class);
+
+            for (int i = 0; i < slots.length; i++) {
+                requestSlot(
+                        gateway,
+                        jobId,
+                        slots[i],
+                        buildSlotID(i),
+                        ResourceProfile.UNKNOWN,
+                        ctx.jobMasterGateway.getAddress(),
+                        rmId);
+            }
+            ExecutionAttemptID attemptID =
+                    submitNoOpInvokableTask(
+                            slots[0], new TestingJobMasterGatewayBuilder().build(), gateway);
+            assertNotNull(ctx.changelogStoragesManager.getChangelogStoragesByJobId(jobId));
+            assertNotNull(ctx.metricGroup.getJobMetricsGroup(jobId));
+
+            // cancel tasks before releasing the slots - so that TM will release job resources on
+            // the last slot release
+            gateway.cancelTask(attemptID, timeout).get();
+            while (ctx.taskSlotTable.getTasks(jobId).hasNext()) {
+                // wait for task thread to notify TM about its final state
+                Thread.sleep(50);
+            }
+
+            for (int i = 0; i < slots.length; i++) {
+                gateway.freeSlot(slots[i], new RuntimeException("test exception"), timeout).get();
+                boolean isLast = i == slots.length - 1;
+                if (isLast) {
+                    assertNull(ctx.changelogStoragesManager.getChangelogStoragesByJobId(jobId));

Review comment:
       this is also not thread-safe, same as above.

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(

Review comment:
       this could be named `addJob` to be consistent with the `JobManagerMetricGroup`, and, well, pretty much all other methods? :D




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5188cc85916df5679dc56281223209f7079ec65a Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312) 
   * 44c4ce9fcbdd66f25dcb82d52224e98064cea4ad 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



[GitHub] [flink] flinkbot commented on pull request #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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






-- 
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] rkhachatryan commented on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   Thanks for the feedback @zentol !
   > I'd say the change to the TMJMG lifecycle exceeds the scope of a hotfix by quite a bit.
   
   Would you prefer this change to be in a separate ticket and PR?


-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 947cf916e75db07707842940dab5dac62b5c71c5 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0f01642b3727de33291a80227de7a59f1fa38603 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   * 4bf81a6ae130675e8b799616d4a517dd1db7df4f 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0f01642b3727de33291a80227de7a59f1fa38603 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028) 
   * 440340a1c25c8678f019fdeb802623704f0963d9 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5687d3421ac109903b1317ab84d06ed97f046699 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417) 
   * 3f327ff8b27a58f1570c832a7a3e0a75178f2f3e Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559) 
   
   <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



[GitHub] [flink] rkhachatryan merged pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   


-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {
+            jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+            jobs.put(jobId, jobGroup);
         }
 
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+        // note that a pre-existing job group can NOT be closed concurrently - this is done by the
+        // same TM thread in removeJobMetricsGroup
+        return jobGroup.addTask(
+                jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
+    }
 
-            // check if another group was actually contained, and restore that one
-            if (containedGroup != null && containedGroup != group) {
-                jobs.put(jobId, containedGroup);
+    public void removeJobMetricsGroup(JobID jobId) {

Review comment:
       Fair enough, but let's at least add a test that it doesn't throw an exception if no group exists under the given job ID. That shouldn't take much time.




-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0f01642b3727de33291a80227de7a59f1fa38603 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028) 
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 947cf916e75db07707842940dab5dac62b5c71c5 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964) 
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4bf81a6ae130675e8b799616d4a517dd1db7df4f Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016) 
   * 0f01642b3727de33291a80227de7a59f1fa38603 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * 2db1ab776228ba573da1b098ef6692de3b583323 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



[GitHub] [flink] zentol commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -682,7 +682,9 @@ private void stopTaskExecutorServices() throws Exception {
             try {
                 changelogStorage =
                         changelogStoragesManager.stateChangelogStorageForJob(
-                                jobId, taskManagerConfiguration.getConfiguration());
+                                jobId,
+                                taskManagerConfiguration.getConfiguration(),
+                                taskManagerMetricGroup.getJobMetricsGroup(jobId));

Review comment:
       Split `addTaskForJob` into 2 separate methods instead, and explicitly create the TMJMG at the start of `submitTask.`

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -39,6 +41,7 @@
  * tasks any more
  */
 @Internal
+@NotThreadSafe

Review comment:
       Let's stick to the current threading model. While it is indeed strictly speaking not necessary to synchronize here it adds an odd inconsistency and just makes it more difficult to understand.

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -163,4 +141,8 @@ protected void putVariables(Map<String, String> variables) {
     protected String getGroupName(CharacterFilter filter) {
         return "taskmanager";
     }
+
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       This seems to have slipped into the wrong commit because it is referenced in the metrics lifecycle commit.

##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2764,6 +2821,14 @@ private TestingTaskExecutor createTestingTaskExecutor(TaskManagerServices taskMa
 
     private TestingTaskExecutor createTestingTaskExecutor(
             TaskManagerServices taskManagerServices, HeartbeatServices heartbeatServices) {
+        return createTestingTaskExecutor(
+                taskManagerServices, heartbeatServices, createUnregisteredTaskManagerMetricGroup());
+    }
+
+    private TestingTaskExecutor createTestingTaskExecutor(

Review comment:
       this change seems unnecessary, at least looking at this commit alone.

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {

Review comment:
       why are you no longer checking whether the `jobGroup` is closed?

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {
+            jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+            jobs.put(jobId, jobGroup);
         }
 
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+        // note that a pre-existing job group can NOT be closed concurrently - this is done by the
+        // same TM thread in removeJobMetricsGroup
+        return jobGroup.addTask(
+                jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
+    }
 
-            // check if another group was actually contained, and restore that one
-            if (containedGroup != null && containedGroup != group) {
-                jobs.put(jobId, containedGroup);
+    public void removeJobMetricsGroup(JobID jobId) {

Review comment:
       There are no tests for this method.

##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerJobMetricGroup.java
##########
@@ -78,46 +80,35 @@ public TaskMetricGroup addTask(
         checkNotNull(executionAttemptID);
         checkNotNull(taskName);
 
-        synchronized (this) {
-            if (!isClosed()) {
-                TaskMetricGroup prior = tasks.get(executionAttemptID);
-                if (prior != null) {
-                    return prior;
-                } else {
-                    TaskMetricGroup task =
-                            new TaskMetricGroup(
-                                    registry,
-                                    this,
-                                    jobVertexId,
-                                    executionAttemptID,
-                                    taskName,
-                                    subtaskIndex,
-                                    attemptNumber);
-                    tasks.put(executionAttemptID, task);
-                    return task;
-                }
+        if (!isClosed()) {
+            TaskMetricGroup prior = tasks.get(executionAttemptID);
+            if (prior != null) {
+                return prior;
             } else {
-                return null;
+                TaskMetricGroup task =
+                        new TaskMetricGroup(
+                                registry,
+                                this,
+                                jobVertexId,
+                                executionAttemptID,
+                                taskName,
+                                subtaskIndex,
+                                attemptNumber);
+                tasks.put(executionAttemptID, task);
+                return task;
             }
+        } else {
+            return null;
         }
     }
 
     public void removeTaskMetricGroup(ExecutionAttemptID executionId) {
         checkNotNull(executionId);
 
-        boolean removeFromParent = false;
-        synchronized (this) {
-            if (!isClosed() && tasks.remove(executionId) != null && tasks.isEmpty()) {
-                // this call removed the last task. close this group.
-                removeFromParent = true;
-                close();
-            }
-        }
-
-        // IMPORTANT: removing from the parent must not happen while holding the this group's lock,
-        //      because it would violate the "first parent then subgroup" lock acquisition order
-        if (removeFromParent) {
-            parent.removeJobMetricsGroup(jobId, this);
+        if (!isClosed()) {

Review comment:
       This guard is no longer necessary. It was only relevant because `close()` had side-effects on the parent.




-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {
+            jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+            jobs.put(jobId, jobGroup);
         }
 
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+        // note that a pre-existing job group can NOT be closed concurrently - this is done by the
+        // same TM thread in removeJobMetricsGroup
+        return jobGroup.addTask(
+                jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
+    }
 
-            // check if another group was actually contained, and restore that one
-            if (containedGroup != null && containedGroup != group) {
-                jobs.put(jobId, containedGroup);
+    public void removeJobMetricsGroup(JobID jobId) {

Review comment:
       Added `TaskManagerMetricGroupTest` (with some more tests).




-- 
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] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/ChangelogStorageMetricGroup.java
##########
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.changelog.fs;
+
+import org.apache.flink.metrics.Counter;
+import org.apache.flink.metrics.Gauge;
+import org.apache.flink.metrics.Histogram;
+import org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram;
+import org.apache.flink.runtime.metrics.groups.ProxyMetricGroup;
+import org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup;
+
+import javax.annotation.concurrent.ThreadSafe;
+
+import java.util.concurrent.atomic.LongAdder;
+
+/**
+ * Metrics related to the Changelog Storage used by the Changelog State Backend. Thread-safety is
+ * required because it is used by multiple uploader threads.
+ */
+@ThreadSafe
+public class ChangelogStorageMetricGroup extends ProxyMetricGroup<TaskManagerJobMetricGroup> {
+    private static final int WINDOW_SIZE = 1000;
+
+    private final Counter uploadsCounter;
+    private final Counter uploadFailures;
+    private final Histogram logsPerUpload;
+    private final Histogram uploadSizes;
+    private final Histogram uploadLatencies;
+    private final Histogram attemptsPerUpload;
+
+    public ChangelogStorageMetricGroup(TaskManagerJobMetricGroup parent) {

Review comment:
       Done in 643a25496b3c7ccce9f7c796a095fe5e5be83400 (extracted PR).




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305) 
   
   <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



[GitHub] [flink] rkhachatryan commented on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   I've created a separate ticket (FLINK-24864) and PR (#17757) for changelog-related changes.
   This PR and ticket now only contains TMJMG lifecycle changes.
   
   I've also rebased it onto latest master and addressed your feedback, PTAL.


-- 
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] rkhachatryan commented on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   Build failure unrelated (FLINK-24806).


-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * 2db1ab776228ba573da1b098ef6692de3b583323 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -39,6 +41,7 @@
  * tasks any more
  */
 @Internal
+@NotThreadSafe

Review comment:
       Makes sense, I'll revert this change.




-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * d8834dea7c7bb6c3fb0005137ede85ee9e98518d 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629) 
   
   <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] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerJobMetricGroup.java
##########
@@ -78,46 +80,35 @@ public TaskMetricGroup addTask(
         checkNotNull(executionAttemptID);
         checkNotNull(taskName);
 
-        synchronized (this) {
-            if (!isClosed()) {
-                TaskMetricGroup prior = tasks.get(executionAttemptID);
-                if (prior != null) {
-                    return prior;
-                } else {
-                    TaskMetricGroup task =
-                            new TaskMetricGroup(
-                                    registry,
-                                    this,
-                                    jobVertexId,
-                                    executionAttemptID,
-                                    taskName,
-                                    subtaskIndex,
-                                    attemptNumber);
-                    tasks.put(executionAttemptID, task);
-                    return task;
-                }
+        if (!isClosed()) {
+            TaskMetricGroup prior = tasks.get(executionAttemptID);
+            if (prior != null) {
+                return prior;
             } else {
-                return null;
+                TaskMetricGroup task =
+                        new TaskMetricGroup(
+                                registry,
+                                this,
+                                jobVertexId,
+                                executionAttemptID,
+                                taskName,
+                                subtaskIndex,
+                                attemptNumber);
+                tasks.put(executionAttemptID, task);
+                return task;
             }
+        } else {
+            return null;
         }
     }
 
     public void removeTaskMetricGroup(ExecutionAttemptID executionId) {
         checkNotNull(executionId);
 
-        boolean removeFromParent = false;
-        synchronized (this) {
-            if (!isClosed() && tasks.remove(executionId) != null && tasks.isEmpty()) {
-                // this call removed the last task. close this group.
-                removeFromParent = true;
-                close();
-            }
-        }
-
-        // IMPORTANT: removing from the parent must not happen while holding the this group's lock,
-        //      because it would violate the "first parent then subgroup" lock acquisition order
-        if (removeFromParent) {
-            parent.removeJobMetricsGroup(jobId, this);
+        if (!isClosed()) {

Review comment:
       Thanks, I'll remove it.




-- 
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] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {

Review comment:
       The check is already done in `close()` method itself (and it cannot be removed from there because of concurrency).
   And IIUC, this method `removeJobMetricsGroup` can not be called after `close` because they are called from
   `TaskExecutor.releaseJobResources` and `stopTaskExecutorServices` respectively.




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5687d3421ac109903b1317ab84d06ed97f046699 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerJobMetricGroup.java
##########
@@ -38,6 +39,7 @@
  * <p>Contains extra logic for adding Tasks ({@link TaskMetricGroup}).
  */
 @Internal
+@NotThreadSafe

Review comment:
       You're right, I only restored thread safety for `TaskManagerMetricGroup`.




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(
+            JobID jobId, String jobName) {
         Preconditions.checkNotNull(jobId);
-
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
-
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
+        TaskManagerJobMetricGroup jobGroup;
+        synchronized (this) { // synchronization isn't strictly necessary as of FLINK-24864
+            jobGroup = jobs.get(jobId);
+            if (jobGroup == null) {
+                jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+                jobs.put(jobId, jobGroup);
             }
-
-            // else fall through the loop
         }
+        return jobGroup;
     }
 
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
-        }
-
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       But...couldn't you just pass `jobGroup`?




-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/ChangelogStorageMetricGroup.java
##########
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.changelog.fs;
+
+import org.apache.flink.metrics.Counter;
+import org.apache.flink.metrics.Gauge;
+import org.apache.flink.metrics.Histogram;
+import org.apache.flink.runtime.metrics.DescriptiveStatisticsHistogram;
+import org.apache.flink.runtime.metrics.groups.ProxyMetricGroup;
+import org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup;
+
+import javax.annotation.concurrent.ThreadSafe;
+
+import java.util.concurrent.atomic.LongAdder;
+
+/**
+ * Metrics related to the Changelog Storage used by the Changelog State Backend. Thread-safety is
+ * required because it is used by multiple uploader threads.
+ */
+@ThreadSafe
+public class ChangelogStorageMetricGroup extends ProxyMetricGroup<TaskManagerJobMetricGroup> {
+    private static final int WINDOW_SIZE = 1000;
+
+    private final Counter uploadsCounter;
+    private final Counter uploadFailures;
+    private final Histogram logsPerUpload;
+    private final Histogram uploadSizes;
+    private final Histogram uploadLatencies;
+    private final Histogram attemptsPerUpload;
+
+    public ChangelogStorageMetricGroup(TaskManagerJobMetricGroup parent) {

Review comment:
       This could work against the plain `MetricGroup` interface, correct? It would be good to reduce their usage to a minimum to ease maintenance.




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 44c4ce9fcbdd66f25dcb82d52224e98064cea4ad Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330) 
   * 2ab4cb96d4fa163a206dfad002dff2accc9ae9e6 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 44c4ce9fcbdd66f25dcb82d52224e98064cea4ad Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -682,7 +682,9 @@ private void stopTaskExecutorServices() throws Exception {
             try {
                 changelogStorage =
                         changelogStoragesManager.stateChangelogStorageForJob(
-                                jobId, taskManagerConfiguration.getConfiguration());
+                                jobId,
+                                taskManagerConfiguration.getConfiguration(),
+                                taskManagerMetricGroup.getJobMetricsGroup(jobId));

Review comment:
       Thanks for clarifying. I''ve added two commits to split it (for production and test code, to be squashed into one upon merging).




-- 
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] rkhachatryan commented on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   Thanks @zentol  for reviewing.
   Merged as f849ef304088f2fec15c433c2077b7a7e53ab890 into master.


-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 947cf916e75db07707842940dab5dac62b5c71c5 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964) 
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2764,6 +2821,14 @@ private TestingTaskExecutor createTestingTaskExecutor(TaskManagerServices taskMa
 
     private TestingTaskExecutor createTestingTaskExecutor(
             TaskManagerServices taskManagerServices, HeartbeatServices heartbeatServices) {
+        return createTestingTaskExecutor(
+                taskManagerServices, heartbeatServices, createUnregisteredTaskManagerMetricGroup());
+    }
+
+    private TestingTaskExecutor createTestingTaskExecutor(

Review comment:
       This adds a new overloaded `createTestingTaskExecutor` version with an additional argument `TaskManagerMetricGroup metricGroup`. The value for argument differs depending on caller (`createUnregisteredTaskManagerMetricGroup` vs a "real" `metricGroup` in `createTaskExecutorTestingContext`) - in the same commit. So I think it's necessary.




-- 
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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * 2db1ab776228ba573da1b098ef6692de3b583323 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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






-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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






-- 
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 #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629) 
   
   <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 #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(
+            JobID jobId, String jobName) {
         Preconditions.checkNotNull(jobId);
-
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
-
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
+        TaskManagerJobMetricGroup jobGroup;
+        synchronized (this) { // synchronization isn't strictly necessary as of FLINK-24864
+            jobGroup = jobs.get(jobId);
+            if (jobGroup == null) {
+                jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+                jobs.put(jobId, jobGroup);
             }
-
-            // else fall through the loop
         }
+        return jobGroup;
     }
 
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
-        }
-
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       I'm planning to use it in `TaskExecutor` in #17757.




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305) 
   * 5188cc85916df5679dc56281223209f7079ec65a 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * d8834dea7c7bb6c3fb0005137ede85ee9e98518d 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1a458e189a85566571b071fd0bc54df9317d2db3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3f327ff8b27a58f1570c832a7a3e0a75178f2f3e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559) 
   * 1a458e189a85566571b071fd0bc54df9317d2db3 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629) 
   * a89506ce35582d88432cd6ceecbf2caea233f0ac Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3825d668c7048e4de2c273f9dee3cac33c44faf2 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629) 
   * a89506ce35582d88432cd6ceecbf2caea233f0ac 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a89506ce35582d88432cd6ceecbf2caea233f0ac Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901) 
   * 947cf916e75db07707842940dab5dac62b5c71c5 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   * 4bf81a6ae130675e8b799616d4a517dd1db7df4f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3f327ff8b27a58f1570c832a7a3e0a75178f2f3e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26559) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   * 4bf81a6ae130675e8b799616d4a517dd1db7df4f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016) 
   * 0f01642b3727de33291a80227de7a59f1fa38603 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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






-- 
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 #17387: [WIP][FLINK-23486][state] Changelog Backend metrics

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


   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 3825d668c7048e4de2c273f9dee3cac33c44faf2 (Wed Sep 29 13:46:18 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-23486).** 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] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -93,49 +96,24 @@ public TaskMetricGroup addTaskForJob(
 
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
 
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
-            }
+        TaskManagerJobMetricGroup jobGroup = jobs.get(jobId);
 
-            // else fall through the loop
-        }
-    }
-
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
+        if (jobGroup == null) {
+            jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+            jobs.put(jobId, jobGroup);
         }
 
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+        // note that a pre-existing job group can NOT be closed concurrently - this is done by the
+        // same TM thread in removeJobMetricsGroup
+        return jobGroup.addTask(
+                jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
+    }
 
-            // check if another group was actually contained, and restore that one
-            if (containedGroup != null && containedGroup != group) {
-                jobs.put(jobId, containedGroup);
+    public void removeJobMetricsGroup(JobID jobId) {

Review comment:
       The method is called from `TaskExecutor.releaseJobResources` which is covered by `TaskExecutorTest.testReleasingJobResources` (new test).
   IMO, the method is too simple to have it's own unit test. WDYT?




-- 
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] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -163,4 +141,8 @@ protected void putVariables(Map<String, String> variables) {
     protected String getGroupName(CharacterFilter filter) {
         return "taskmanager";
     }
+
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       You're right, I need to fix it.




-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a89506ce35582d88432cd6ceecbf2caea233f0ac Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d8834dea7c7bb6c3fb0005137ede85ee9e98518d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * d8834dea7c7bb6c3fb0005137ede85ee9e98518d 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) 
   
   <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



[GitHub] [flink] zentol commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2764,6 +2821,14 @@ private TestingTaskExecutor createTestingTaskExecutor(TaskManagerServices taskMa
 
     private TestingTaskExecutor createTestingTaskExecutor(
             TaskManagerServices taskManagerServices, HeartbeatServices heartbeatServices) {
+        return createTestingTaskExecutor(
+                taskManagerServices, heartbeatServices, createUnregisteredTaskManagerMetricGroup());
+    }
+
+    private TestingTaskExecutor createTestingTaskExecutor(

Review comment:
       👍 




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 44c4ce9fcbdd66f25dcb82d52224e98064cea4ad Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330) 
   * 2ab4cb96d4fa163a206dfad002dff2accc9ae9e6 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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(
+            JobID jobId, String jobName) {
         Preconditions.checkNotNull(jobId);
-
         String resolvedJobName = jobName == null || jobName.isEmpty() ? jobId.toString() : jobName;
-
-        // we cannot strictly lock both our map modification and the job group modification
-        // because it might lead to a deadlock
-        while (true) {
-            // get or create a jobs metric group
-            TaskManagerJobMetricGroup currentJobGroup;
-            synchronized (this) {
-                currentJobGroup = jobs.get(jobId);
-
-                if (currentJobGroup == null || currentJobGroup.isClosed()) {
-                    currentJobGroup =
-                            new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
-                    jobs.put(jobId, currentJobGroup);
-                }
-            }
-
-            // try to add another task. this may fail if we found a pre-existing job metrics
-            // group and it is closed concurrently
-            TaskMetricGroup taskGroup =
-                    currentJobGroup.addTask(
-                            jobVertexId, executionAttemptId, taskName, subtaskIndex, attemptNumber);
-
-            if (taskGroup != null) {
-                // successfully added the next task
-                return taskGroup;
+        TaskManagerJobMetricGroup jobGroup;
+        synchronized (this) { // synchronization isn't strictly necessary as of FLINK-24864
+            jobGroup = jobs.get(jobId);
+            if (jobGroup == null) {
+                jobGroup = new TaskManagerJobMetricGroup(registry, this, jobId, resolvedJobName);
+                jobs.put(jobId, jobGroup);
             }
-
-            // else fall through the loop
         }
+        return jobGroup;
     }
 
-    public void removeJobMetricsGroup(JobID jobId, TaskManagerJobMetricGroup group) {
-        if (jobId == null || group == null || !group.isClosed()) {
-            return;
-        }
-
-        synchronized (this) {
-            // optimistically remove the currently contained group, and check later if it was
-            // correct
-            TaskManagerJobMetricGroup containedGroup = jobs.remove(jobId);
+    public TaskManagerJobMetricGroup getJobMetricsGroup(JobID jobId) {

Review comment:
       Yes, you're right :) 




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskManagerMetricGroup.java
##########
@@ -81,61 +79,33 @@ public String taskManagerId() {
     //  job groups
     // ------------------------------------------------------------------------
 
-    public TaskMetricGroup addTaskForJob(
-            final JobID jobId,
-            final String jobName,
-            final JobVertexID jobVertexId,
-            final ExecutionAttemptID executionAttemptId,
-            final String taskName,
-            final int subtaskIndex,
-            final int attemptNumber) {
+    public TaskManagerJobMetricGroup getOrCreateTaskManagerJobMetricGroup(

Review comment:
       ha! fair point.




-- 
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 #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2ab4cb96d4fa163a206dfad002dff2accc9ae9e6 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380) 
   * 5687d3421ac109903b1317ab84d06ed97f046699 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2ab4cb96d4fa163a206dfad002dff2accc9ae9e6 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380) 
   * 5687d3421ac109903b1317ab84d06ed97f046699 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5188cc85916df5679dc56281223209f7079ec65a Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312) 
   * 44c4ce9fcbdd66f25dcb82d52224e98064cea4ad Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26330",
       "triggerID" : "44c4ce9fcbdd66f25dcb82d52224e98064cea4ad",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26380",
       "triggerID" : "2ab4cb96d4fa163a206dfad002dff2accc9ae9e6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417",
       "triggerID" : "5687d3421ac109903b1317ab84d06ed97f046699",
       "triggerType" : "PUSH"
     }, {
       "hash" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3f327ff8b27a58f1570c832a7a3e0a75178f2f3e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5687d3421ac109903b1317ab84d06ed97f046699 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26417) 
   * 3f327ff8b27a58f1570c832a7a3e0a75178f2f3e 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5188cc85916df5679dc56281223209f7079ec65a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312",
       "triggerID" : "5188cc85916df5679dc56281223209f7079ec65a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26305) 
   * 5188cc85916df5679dc56281223209f7079ec65a Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26312) 
   
   <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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-24864][metrics] Release TaskManagerJobMetricGroup with the last slot rather than task

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



##########
File path: flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
##########
@@ -2536,6 +2484,61 @@ public void testDynamicSlotAllocation() throws Exception {
         }
     }
 
+    @Test
+    public void testReleasingJobResources() throws Exception {
+        AllocationID[] slots =
+                range(0, 5).mapToObj(i -> new AllocationID()).toArray(AllocationID[]::new);
+        try (TaskExecutorTestingContext ctx = createTaskExecutorTestingContext(slots.length)) {
+            ctx.start();
+            ResourceManagerId rmId;
+            {
+                CompletableFuture<Tuple3<ResourceID, InstanceID, SlotReport>>
+                        initialSlotReportFuture = new CompletableFuture<>();
+                rmId = createAndRegisterResourceManager(initialSlotReportFuture);
+                initialSlotReportFuture.get();
+            }
+
+            TaskExecutorGateway gateway =
+                    ctx.taskExecutor.getSelfGateway(TaskExecutorGateway.class);
+
+            for (int i = 0; i < slots.length; i++) {
+                requestSlot(
+                        gateway,
+                        jobId,
+                        slots[i],
+                        buildSlotID(i),
+                        ResourceProfile.UNKNOWN,
+                        ctx.jobMasterGateway.getAddress(),
+                        rmId);
+            }
+            ExecutionAttemptID attemptID =
+                    submitNoOpInvokableTask(
+                            slots[0], new TestingJobMasterGatewayBuilder().build(), gateway);
+            assertNotNull(ctx.changelogStoragesManager.getChangelogStoragesByJobId(jobId));
+            assertNotNull(ctx.metricGroup.getJobMetricsGroup(jobId));
+
+            // cancel tasks before releasing the slots - so that TM will release job resources on
+            // the last slot release
+            gateway.cancelTask(attemptID, timeout).get();
+            while (ctx.taskSlotTable.getTasks(jobId).hasNext()) {

Review comment:
       Good point.




-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * a89506ce35582d88432cd6ceecbf2caea233f0ac Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901) 
   * 947cf916e75db07707842940dab5dac62b5c71c5 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



[GitHub] [flink] zentol commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -682,7 +682,9 @@ private void stopTaskExecutorServices() throws Exception {
             try {
                 changelogStorage =
                         changelogStoragesManager.stateChangelogStorageForJob(
-                                jobId, taskManagerConfiguration.getConfiguration());
+                                jobId,
+                                taskManagerConfiguration.getConfiguration(),
+                                taskManagerMetricGroup.getJobMetricsGroup(jobId));

Review comment:
       On the one hand it is about consistency; we only use getters for things like the IOMetricGroups, because there we can guarantee that they actually exists because they are created in the constructor of the containing group.
   
   Here, we rely on some other call above that is _technically_ not quite related to the changelog storage metrics to implicitly create the TMJMG. To someone who doesn't know how `addTaskForJob` works (aka, that it even creates 2 groups), this isn't intuitive.
   
   Doing 2 steps at once was fine previously because no one needed the TMJMG anyway, but this has changed now. It should thus be split.
   




-- 
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 #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   * 4bf81a6ae130675e8b799616d4a517dd1db7df4f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016) 
   * 0f01642b3727de33291a80227de7a59f1fa38603 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072",
       "triggerID" : "2db1ab776228ba573da1b098ef6692de3b583323",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * 2db1ab776228ba573da1b098ef6692de3b583323 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26072) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [WIP][FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 441c4b009499984fbf1bea466ab8c8c44de8ff73 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987) 
   
   <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



[GitHub] [flink] flinkbot edited a comment on pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=24629",
       "triggerID" : "3825d668c7048e4de2c273f9dee3cac33c44faf2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25901",
       "triggerID" : "a89506ce35582d88432cd6ceecbf2caea233f0ac",
       "triggerType" : "PUSH"
     }, {
       "hash" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25964",
       "triggerID" : "947cf916e75db07707842940dab5dac62b5c71c5",
       "triggerType" : "PUSH"
     }, {
       "hash" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=25987",
       "triggerID" : "441c4b009499984fbf1bea466ab8c8c44de8ff73",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26016",
       "triggerID" : "4bf81a6ae130675e8b799616d4a517dd1db7df4f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26028",
       "triggerID" : "0f01642b3727de33291a80227de7a59f1fa38603",
       "triggerType" : "PUSH"
     }, {
       "hash" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058",
       "triggerID" : "440340a1c25c8678f019fdeb802623704f0963d9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071",
       "triggerID" : "1736c549da6932a76be1268ba1f2091b825d3925",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fc8a945beb1ed3c20af3958a13222937e933aaa6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 440340a1c25c8678f019fdeb802623704f0963d9 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26058) 
   * 1736c549da6932a76be1268ba1f2091b825d3925 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=26071) 
   * fc8a945beb1ed3c20af3958a13222937e933aaa6 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



[GitHub] [flink] rkhachatryan commented on a change in pull request #17387: [FLINK-23486][state] ChangelogUploader metrics

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



##########
File path: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java
##########
@@ -682,7 +682,9 @@ private void stopTaskExecutorServices() throws Exception {
             try {
                 changelogStorage =
                         changelogStoragesManager.stateChangelogStorageForJob(
-                                jobId, taskManagerConfiguration.getConfiguration());
+                                jobId,
+                                taskManagerConfiguration.getConfiguration(),
+                                taskManagerMetricGroup.getJobMetricsGroup(jobId));

Review comment:
       Could you elaborate why this should be changed?
   
   To me, it doesn't seem directly related to my change; I also don't see any obvious reasons why one way is better than the 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