You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ksmou (via GitHub)" <gi...@apache.org> on 2023/11/30 11:22:46 UTC

[PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

ksmou opened a new pull request, #10221:
URL: https://github.com/apache/hudi/pull/10221

   ### Change Logs
   
   When using multi-writer, flink job may not close the failed instant's heartbeat that causing the lazy clean not process the corresponding commit.
   
   ### Impact
   
   none
   
   ### Risk level (write none, low medium or high below)
   
   low
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, config, or user-facing change_
   
   - _The config description must be updated if new configs are added or the default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
     ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #10221:
URL: https://github.com/apache/hudi/pull/10221#discussion_r1411468982


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -420,6 +420,10 @@ private void initInstant(String instant) {
       }
       commitInstant(instant);
     }
+    // stop the heartbeat for old instant

Review Comment:
   We should, would add one in another 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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10221:
URL: https://github.com/apache/hudi/pull/10221#issuecomment-1834034535

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21253",
       "triggerID" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * d4b158514967304a585ed0be889008339c4fc9aa Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21253) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot 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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on code in PR #10221:
URL: https://github.com/apache/hudi/pull/10221#discussion_r1410812404


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -420,6 +420,10 @@ private void initInstant(String instant) {
       }
       commitInstant(instant);
     }
+    // stop the heartbeat for old instant

Review Comment:
   is it possible to write a test for this ?



-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "ksmou (via GitHub)" <gi...@apache.org>.
ksmou commented on code in PR #10221:
URL: https://github.com/apache/hudi/pull/10221#discussion_r1413290959


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -420,6 +420,10 @@ private void initInstant(String instant) {
       }
       commitInstant(instant);
     }
+    // stop the heartbeat for old instant

Review Comment:
   ut added. https://github.com/apache/hudi/pull/10230 @nsivabalan @danny0405 



-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10221:
URL: https://github.com/apache/hudi/pull/10221#issuecomment-1833626237

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21253",
       "triggerID" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * d4b158514967304a585ed0be889008339c4fc9aa Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=21253) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot 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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10221:
URL: https://github.com/apache/hudi/pull/10221#issuecomment-1833615297

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d4b158514967304a585ed0be889008339c4fc9aa",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * d4b158514967304a585ed0be889008339c4fc9aa UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot 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: commits-unsubscribe@hudi.apache.org

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


Re: [PR] [HUDI-7165] Flink multi writer not close the failed instant heartbeat [hudi]

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


-- 
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: commits-unsubscribe@hudi.apache.org

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