You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/11/10 23:13:44 UTC

[GitHub] [hudi] the-other-tim-brown opened a new pull request, #7180: add in minor perf wins in hudi-utilities

the-other-tim-brown opened a new pull request, #7180:
URL: https://github.com/apache/hudi/pull/7180

   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance impact._
   
   ### Risk level (write none, low medium or high below)
   
   _If medium or high, explain what verification was done to mitigate the risks._
   
   ### 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


[GitHub] [hudi] the-other-tim-brown commented on a diff in pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
the-other-tim-brown commented on code in PR #7180:
URL: https://github.com/apache/hudi/pull/7180#discussion_r1020336028


##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/TestHiveIncrementalPuller.java:
##########
@@ -51,11 +53,16 @@
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
-public class TestHiveIncrementalPuller {
+public class TestHiveIncrementalPuller extends UtilitiesTestBase {
 
   private HiveIncrementalPuller.Config config;
   private String targetBasePath = null;
 
+  @BeforeAll
+  public static void setupOnce() throws Exception {
+    initTestServices();
+  }

Review Comment:
   Added to the wrong file, I'll remove 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


[GitHub] [hudi] hudi-bot commented on pull request #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311879502

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ebe0b24821d673634c0811bba28f0dfab2e7677a Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944) 
   * 45efd407b41cce25bca92f7970bae34c4e23f4ca 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] the-other-tim-brown commented on a diff in pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
the-other-tim-brown commented on code in PR #7180:
URL: https://github.com/apache/hudi/pull/7180#discussion_r1020340719


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java:
##########
@@ -280,6 +280,8 @@ private static SparkConf buildSparkConf(String appName, String defaultMaster, Ma
     sparkConf.set("spark.hadoop.mapred.output.compression.codec", "org.apache.hadoop.io.compress.GzipCodec");
     sparkConf.set("spark.hadoop.mapred.output.compression.type", "BLOCK");
     sparkConf.set("spark.driver.allowMultipleContexts", "true");
+    sparkConf.set("spark.sql.shuffle.partitions", "4");
+    sparkConf.set("spark.default.parallelism", "4");

Review Comment:
   My mistake, reverting



-- 
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 #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1312186090

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958",
       "triggerID" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * 45efd407b41cce25bca92f7970bae34c4e23f4ca Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958) 
   
   <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 #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1312383821

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 45efd407b41cce25bca92f7970bae34c4e23f4ca 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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311054127

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936) 
   
   <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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311339820

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ebe0b24821d673634c0811bba28f0dfab2e7677a Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944) 
   
   <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 #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311952029

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958",
       "triggerID" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ebe0b24821d673634c0811bba28f0dfab2e7677a Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944) 
   * 45efd407b41cce25bca92f7970bae34c4e23f4ca Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958) 
   
   <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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311051093

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4 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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311047999

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311233825

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936) 
   * ebe0b24821d673634c0811bba28f0dfab2e7677a 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] xushiyan commented on a diff in pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
xushiyan commented on code in PR #7180:
URL: https://github.com/apache/hudi/pull/7180#discussion_r1020298273


##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/TestHiveIncrementalPuller.java:
##########
@@ -51,11 +53,16 @@
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
-public class TestHiveIncrementalPuller {
+public class TestHiveIncrementalPuller extends UtilitiesTestBase {
 
   private HiveIncrementalPuller.Config config;
   private String targetBasePath = null;
 
+  @BeforeAll
+  public static void setupOnce() throws Exception {
+    initTestServices();
+  }

Review Comment:
   but this did not need utilities test base, what test resources we are adding here?



##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/testutils/HoodieClientTestUtils.java:
##########
@@ -92,7 +92,9 @@ public class HoodieClientTestUtils {
    */
   public static SparkConf getSparkConfForTest(String appName) {
     SparkConf sparkConf = new SparkConf().setAppName(appName)
-        .set("spark.serializer", "org.apache.spark.serializer.KryoSerializer").setMaster("local[8]");
+        .set("spark.serializer", "org.apache.spark.serializer.KryoSerializer").setMaster("local[8]")
+        .set("spark.sql.shuffle.partitions", "4")
+        .set("spark.default.parallelism", "4");

Review Comment:
   we can reduce to `local[4]` if set to parallelism to 4



##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java:
##########
@@ -155,6 +155,11 @@ public static void initTestServices(boolean needsHdfs, boolean needsHive, boolea
       zookeeperTestService = new ZookeeperTestService(hadoopConf);
       zookeeperTestService.start();
     }
+
+    jsc = UtilHelpers.buildSparkContext(UtilitiesTestBase.class.getName() + "-hoodie", "local[2]");

Review Comment:
   should we make a constant for spark master local[4] for test cases?



##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java:
##########
@@ -280,6 +280,8 @@ private static SparkConf buildSparkConf(String appName, String defaultMaster, Ma
     sparkConf.set("spark.hadoop.mapred.output.compression.codec", "org.apache.hadoop.io.compress.GzipCodec");
     sparkConf.set("spark.hadoop.mapred.output.compression.type", "BLOCK");
     sparkConf.set("spark.driver.allowMultipleContexts", "true");
+    sparkConf.set("spark.sql.shuffle.partitions", "4");
+    sparkConf.set("spark.default.parallelism", "4");

Review Comment:
   but this is not test class, is 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: commits-unsubscribe@hudi.apache.org

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


[GitHub] [hudi] the-other-tim-brown commented on a diff in pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
the-other-tim-brown commented on code in PR #7180:
URL: https://github.com/apache/hudi/pull/7180#discussion_r1020335149


##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java:
##########
@@ -155,6 +155,11 @@ public static void initTestServices(boolean needsHdfs, boolean needsHive, boolea
       zookeeperTestService = new ZookeeperTestService(hadoopConf);
       zookeeperTestService.start();
     }
+
+    jsc = UtilHelpers.buildSparkContext(UtilitiesTestBase.class.getName() + "-hoodie", "local[2]");

Review Comment:
   I think we should find a way to standardize on how to initialize spark for testing. There are a few patterns in the repo like bring up and teardown per test method vs per test class and which settings to add. Most are very similar so we can do that as a follow up.



-- 
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 #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1312384902

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958",
       "triggerID" : "45efd407b41cce25bca92f7970bae34c4e23f4ca",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 45efd407b41cce25bca92f7970bae34c4e23f4ca Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12958) 
   
   <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] the-other-tim-brown commented on pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
the-other-tim-brown commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311268344

   Some results
   
   BEFORE:
   hudi-client-common ................................. SUCCESS [01:53 min]
   hudi-utilities_2.11 ................................ SUCCESS [07:38 min]
   
   
   AFTER:
   hudi-client-common ................................. SUCCESS [ 13.033 s]
   hudi-utilities_2.11 ................................ SUCCESS [06:47 min]
   


-- 
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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311144993

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936) 
   
   <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 #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311236582

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "3bf8572de90c275b7139f216cdd033d9dfc008e4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936",
       "triggerID" : "ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944",
       "triggerID" : "ebe0b24821d673634c0811bba28f0dfab2e7677a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 3bf8572de90c275b7139f216cdd033d9dfc008e4 UNKNOWN
   * ba1ede9840ed3ae5a4ce3d74f25ff7d2895dfde4 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12936) 
   * ebe0b24821d673634c0811bba28f0dfab2e7677a Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=12944) 
   
   <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] xushiyan commented on pull request #7180: [MINOR] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
xushiyan commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1311822706

   @the-other-tim-brown let's also file a jira under https://issues.apache.org/jira/browse/HUDI-3303? normally need jira for +/- 50 LOC 


-- 
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] xushiyan merged pull request #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
xushiyan merged PR #7180:
URL: https://github.com/apache/hudi/pull/7180


-- 
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 #7180: [HUDI-5198] add in minor perf wins in hudi-utilities and locking related tests

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7180:
URL: https://github.com/apache/hudi/pull/7180#issuecomment-1312403078

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