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

[GitHub] [hudi] vinishjail97 opened a new pull request, #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   ### Change Logs
   
   Moving the min and max instants functionality to a static function to improve usability.
   
   ### Impact
   
   No impact, refactoring.
   
   ### 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
   
   - [X] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [X] Change Logs and Impact were stated clearly
   - [X] 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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18848",
       "triggerID" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6cba4c968bcac4760291e3156f5a4b4c364f7e3f Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846) 
   * bb32e693b2349320d38c289fbed2458ee5775630 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18848) 
   
   <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


[GitHub] [hudi] nsivabalan merged pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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


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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6cba4c968bcac4760291e3156f5a4b4c364f7e3f 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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18848",
       "triggerID" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * bb32e693b2349320d38c289fbed2458ee5775630 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18848) 
   
   <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


[GitHub] [hudi] nsivabalan commented on a diff in pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/HoodieTimelineArchiver.java:
##########
@@ -726,4 +687,64 @@ private IndexedRecord convertToAvroRecord(HoodieInstant hoodieInstant)
       throws IOException {
     return MetadataConversionUtils.createMetaWrapper(hoodieInstant, metaClient);
   }
+
+  /**
+   *  getMinAndMaxInstantsToKeep is used by archival service to find the
+   *  min instants and max instants to keep in the active timeline
+   * @param table table implementation extending org.apache.hudi.table.HoodieTable
+   * @param metaClient meta client
+   * @return Pair containing min instants and max instants to keep.
+   */
+  public static Pair<Integer,Integer> getMinAndMaxInstantsToKeep(HoodieTable<?, ?, ?, ?> table, HoodieTableMetaClient metaClient) {

Review Comment:
   can we move this to archiveUtils or something since its static. 



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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6cba4c968bcac4760291e3156f5a4b4c364f7e3f Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846) 
   
   <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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6cba4c968bcac4760291e3156f5a4b4c364f7e3f Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846) 
   
   <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


[GitHub] [hudi] hudi-bot commented on pull request #9293: [HUDI-6595] Move min and max instants to a static function in HoodieTimelineArchiver

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846",
       "triggerID" : "6cba4c968bcac4760291e3156f5a4b4c364f7e3f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "bb32e693b2349320d38c289fbed2458ee5775630",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 6cba4c968bcac4760291e3156f5a4b4c364f7e3f Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=18846) 
   * bb32e693b2349320d38c289fbed2458ee5775630 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