You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org> on 2024/08/16 21:41:11 UTC

[PR] [ENG-12764] Add new zookeeper based lock provider [hudi]

Davis-Zhang-Onehouse opened a new pull request, #11790:
URL: https://github.com/apache/hudi/pull/11790

   
   Add a new lock provider which is exactly the same as existing zookeeper based one except the way the partition key part is handled. To be specific:
   - It requiresTable name as indicated by "hoodie.table.name".
   - It requiresTable base path "hoodie.base.path".
   - The zookeeper base path key ([hoodie.write.lock.dynamodb.partition_key](https://hudi.apache.org/docs/configurations/#hoodiewritelockdynamodbpartition_key)) is automatically derived as /tmp/<table name>-<hash of the table base path>. To check the exact value, please check relevant log from class 
   org.apache.hudi.client.transaction.lock.ZookeeperBasedImplicitBasePathLockProvider.
   - It will ignore value set by`
   hoodie.write.lock.zookeeper.base_path` and `hoodie.write.lock.zookeeper.lock_key`.
   
   # Test:
   Unit test
   
   # Change Logs
   Add new lock provider implementation. For code shared by the new-old lock provider, they are extracted to a base class.
   Unit test + integration test
   
   # Impact
   None.
   
   # Risk level (write none, low medium or high below)
   no risk as of now since no one is using the new lock provider.
   
   # Documentation Update
   In https://hudi.apache.org/docs/concurrency_control/, we need to add description for the newly added lock provider.


-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * b4b556330281b7dba37c2c30635b7a05da31e66a Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483) 
   * 2d3860184fc0d03fe388263237911bc73f9b5715 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78) 
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78) 
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81) 
   * 5a64bdc730a94007a8916d348de26345b41be207 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78) 
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 5cc73e578002aa9ae19983470281293322d82371 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*

Review Comment:
   Do you want to update the docs of `DynamoDbBasedLockConfig#MAX_PARTITION_KEY_SIZE_BYTE`?



##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.HoodieCommonConfig;
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.table.HoodieTableConfig;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.common.util.hash.HashID;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import static org.apache.hudi.aws.utils.S3Utils.s3aToS3;
+import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ *
+ * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and
+ * table name (hoodie.table.name), with lock key set to a hard-coded value.
+ */
+@NotThreadSafe
+public class BaseZookeeperBasedLockProvider extends ZookeeperBasedLockProviderBase {

Review Comment:
   The class hierarchy does not make sense to me.



-- 
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-8090] Add new zookeeper based lock provider [hudi]

Posted by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org>.
Davis-Zhang-Onehouse commented on code in PR #11790:
URL: https://github.com/apache/hudi/pull/11790#discussion_r1759789329


##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.

Review Comment:
   done



##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.
    *
    * @param a         The first string
    * @param b         The second string
-   * @param threshold The maximum byte length
+   * @param byteLengthThreshold The maximum byte length
    */
-  public static String concatenateWithThreshold(String a, String b, int threshold) {
+  public static String concatenateWithThreshold(String a, String b, int byteLengthThreshold) {
     // Convert both strings to byte arrays in UTF-8 encoding
     byte[] bytesA = getUTF8Bytes(a);
     byte[] bytesB = getUTF8Bytes(b);
-    if (bytesB.length > threshold) {
+    if (bytesB.length > byteLengthThreshold) {
       throw new IllegalArgumentException(String.format(
-          "Length of the Second string to concatenate exceeds the threshold (%d > %d)",
-          bytesB.length, threshold));
+          "Length of the Second string to concatenate exceeds the byteLengthThreshold (%d > %d)",
+          bytesB.length, byteLengthThreshold));
     }
 
     // Calculate total bytes
     int totalBytes = bytesA.length + bytesB.length;
 
-    // If total bytes is within the threshold, return concatenated string
-    if (totalBytes <= threshold) {
+    // If total bytes is within the byteLengthThreshold, return concatenated string

Review Comment:
   done



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78) 
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448) 
   * b4b556330281b7dba37c2c30635b7a05da31e66a Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=485",
       "triggerID" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * b4b556330281b7dba37c2c30635b7a05da31e66a Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483) 
   * 2d3860184fc0d03fe388263237911bc73f9b5715 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=485) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 235b291866f5346519ca747e6ec33492288da67d 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105) 
   * fe09772ad57945ec00ade8b579789662d10adec6 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105) 
   * fe09772ad57945ec00ade8b579789662d10adec6 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105) 
   * fe09772ad57945ec00ade8b579789662d10adec6 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442) 
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 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-8090] Add new zookeeper based lock provider [hudi]

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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/ZookeeperBasedImplicitBasePathLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.HoodieCommonConfig;
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.table.HoodieTableConfig;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.common.util.hash.HashID;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import static org.apache.hudi.aws.utils.S3Utils.s3aToS3;
+import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ *
+ * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and
+ * table name (hoodie.table.name), with lock key set to a hard-coded value.
+ */
+@NotThreadSafe
+public class ZookeeperBasedImplicitBasePathLockProvider extends BaseZookeeperBasedLockProvider {
+
+  public static final String LOCK_KEY = "lock_key";
+
+  public static String getLockBasePath(String hudiTableBasePath, String hudiTableName) {
+    // Ensure consistent format for S3 URI.
+    String hashPart = '-' + HashID.generateXXHashAsString(s3aToS3(hudiTableBasePath), HashID.Size.BITS_64);
+    String folderName = concatenateWithThreshold(hudiTableName, hashPart, MAX_ZK_BASE_PATH_NUM_BYTES);
+    return "/tmp/" + folderName;
+  }
+
+  public ZookeeperBasedImplicitBasePathLockProvider(final LockConfiguration lockConfiguration, final StorageConfiguration<?> conf) {
+    super(lockConfiguration, conf);
+  }
+
+  @Override
+  protected String getZkBasePath(LockConfiguration lockConfiguration) {
+    String hudiTableBasePath = lockConfiguration.getConfig().getString(HoodieCommonConfig.BASE_PATH.key());

Review Comment:
   Use `ConfigUtils#getStringWithAltKeys`



##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java:
##########
@@ -0,0 +1,196 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.lock.LockState;
+import org.apache.hudi.common.util.StringUtils;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.exception.HoodieLockException;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import org.apache.curator.framework.CuratorFramework;
+import org.apache.curator.framework.CuratorFrameworkFactory;
+import org.apache.curator.framework.recipes.locks.InterProcessMutex;
+import org.apache.curator.retry.BoundedExponentialBackoffRetry;
+import org.apache.zookeeper.KeeperException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import java.io.Serializable;
+import java.util.concurrent.TimeUnit;
+
+import static org.apache.hudi.common.config.LockConfiguration.DEFAULT_ZK_CONNECTION_TIMEOUT_MS;
+import static org.apache.hudi.common.config.LockConfiguration.DEFAULT_ZK_SESSION_TIMEOUT_MS;
+import static org.apache.hudi.common.config.LockConfiguration.LOCK_ACQUIRE_NUM_RETRIES_PROP_KEY;
+import static org.apache.hudi.common.config.LockConfiguration.LOCK_ACQUIRE_RETRY_MAX_WAIT_TIME_IN_MILLIS_PROP_KEY;
+import static org.apache.hudi.common.config.LockConfiguration.LOCK_ACQUIRE_RETRY_WAIT_TIME_IN_MILLIS_PROP_KEY;
+import static org.apache.hudi.common.config.LockConfiguration.ZK_CONNECTION_TIMEOUT_MS_PROP_KEY;
+import static org.apache.hudi.common.config.LockConfiguration.ZK_CONNECT_URL_PROP_KEY;
+import static org.apache.hudi.common.config.LockConfiguration.ZK_SESSION_TIMEOUT_MS_PROP_KEY;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ */
+@NotThreadSafe
+public abstract class BaseZookeeperBasedLockProvider implements LockProvider<InterProcessMutex>, Serializable {
+
+  private static final Logger LOG = LoggerFactory.getLogger(BaseZookeeperBasedLockProvider.class);
+
+  private final transient CuratorFramework curatorFrameworkClient;
+  private volatile InterProcessMutex lock = null;
+  protected final LockConfiguration lockConfiguration;
+  protected final String zkBasePath;
+  protected final String lockKey;
+
+  public static final int MAX_ZK_BASE_PATH_NUM_BYTES = 4096;
+
+  public BaseZookeeperBasedLockProvider(final LockConfiguration lockConfiguration, final StorageConfiguration<?> conf) {
+    checkRequiredProps(lockConfiguration);
+    this.lockConfiguration = lockConfiguration;
+    zkBasePath = getZkBasePath(lockConfiguration);
+    lockKey = getLockKey(lockConfiguration);
+    this.curatorFrameworkClient = CuratorFrameworkFactory.builder()
+        .connectString(lockConfiguration.getConfig().getString(ZK_CONNECT_URL_PROP_KEY))
+        .retryPolicy(new BoundedExponentialBackoffRetry(lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_RETRY_WAIT_TIME_IN_MILLIS_PROP_KEY),
+            lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_RETRY_MAX_WAIT_TIME_IN_MILLIS_PROP_KEY),
+            lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_NUM_RETRIES_PROP_KEY)))
+        .sessionTimeoutMs(lockConfiguration.getConfig().getInteger(ZK_SESSION_TIMEOUT_MS_PROP_KEY, DEFAULT_ZK_SESSION_TIMEOUT_MS))
+        .connectionTimeoutMs(lockConfiguration.getConfig().getInteger(ZK_CONNECTION_TIMEOUT_MS_PROP_KEY, DEFAULT_ZK_CONNECTION_TIMEOUT_MS))
+        .build();
+    this.curatorFrameworkClient.start();
+    createPathIfNotExists();
+  }
+
+  protected abstract String getZkBasePath(LockConfiguration lockConfiguration);
+
+  protected abstract String getLockKey(LockConfiguration lockConfiguration);
+
+  protected String generateLogSuffixString() {
+    return StringUtils.join("ZkBasePath = ", zkBasePath, ", lock key = ", lockKey);
+  }
+
+  protected String getLockPath() {
+    return zkBasePath + '/' + lockKey;
+  }
+
+  private void createPathIfNotExists() {
+    try {
+      String lockPath = getLockPath();
+      LOG.info(String.format("Creating zookeeper path %s if not exists", lockPath));
+      String[] parts = lockPath.split("/");
+      StringBuilder currentPath = new StringBuilder();
+      for (String part : parts) {
+        if (!part.isEmpty()) {
+          currentPath.append("/").append(part);
+          createNodeIfNotExists(currentPath.toString());
+        }
+      }
+    } catch (Exception e) {
+      LOG.error("Failed to create ZooKeeper path: " + e.getMessage());
+      throw new HoodieLockException("Failed to initialize ZooKeeper path", e);
+    }
+  }
+
+  private void createNodeIfNotExists(String path) throws Exception {

Review Comment:
   Do we want to keep the same logic as before:
   ```
   private void createNodeIfNotExists(String path) throws Exception {
       if (this.curatorFrameworkClient.checkExists().forPath(path) == null) {
         try {
           this.curatorFrameworkClient.create().forPath(path);
           // to avoid failure due to synchronous calls.
         } catch (KeeperException e) {
           if (e.code() == KeeperException.Code.NODEEXISTS) {
             LOG.debug(String.format("Node already exist for path = %s", path));
           } else {
             throw new HoodieLockException("Failed to create zookeeper node", e);
           }
         }
       }
     }
   ```



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * b4b556330281b7dba37c2c30635b7a05da31e66a Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * fe09772ad57945ec00ade8b579789662d10adec6 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442) 
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448) 
   * b4b556330281b7dba37c2c30635b7a05da31e66a 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 5cc73e578002aa9ae19983470281293322d82371 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82) 
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81) 
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 5cc73e578002aa9ae19983470281293322d82371 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-8090] Add new zookeeper based lock provider [hudi]

Posted by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org>.
Davis-Zhang-Onehouse commented on code in PR #11790:
URL: https://github.com/apache/hudi/pull/11790#discussion_r1759790140


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/ZookeeperBasedImplicitBasePathLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.HoodieCommonConfig;
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.table.HoodieTableConfig;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.common.util.hash.HashID;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import static org.apache.hudi.aws.utils.S3Utils.s3aToS3;
+import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ *
+ * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and
+ * table name (hoodie.table.name), with lock key set to a hard-coded value.
+ */
+@NotThreadSafe
+public class ZookeeperBasedImplicitBasePathLockProvider extends BaseZookeeperBasedLockProvider {
+
+  public static final String LOCK_KEY = "lock_key";
+
+  public static String getLockBasePath(String hudiTableBasePath, String hudiTableName) {
+    // Ensure consistent format for S3 URI.
+    String hashPart = '-' + HashID.generateXXHashAsString(s3aToS3(hudiTableBasePath), HashID.Size.BITS_64);
+    String folderName = concatenateWithThreshold(hudiTableName, hashPart, MAX_ZK_BASE_PATH_NUM_BYTES);
+    return "/tmp/" + folderName;
+  }
+
+  public ZookeeperBasedImplicitBasePathLockProvider(final LockConfiguration lockConfiguration, final StorageConfiguration<?> conf) {
+    super(lockConfiguration, conf);
+  }
+
+  @Override
+  protected String getZkBasePath(LockConfiguration lockConfiguration) {
+    String hudiTableBasePath = lockConfiguration.getConfig().getString(HoodieCommonConfig.BASE_PATH.key());

Review Comment:
   done



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * fe09772ad57945ec00ade8b579789662d10adec6 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442) 
   * d90f3ba6075b109f973019020e0faaf7d3b1ac25 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

Posted by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org>.
Davis-Zhang-Onehouse commented on code in PR #11790:
URL: https://github.com/apache/hudi/pull/11790#discussion_r1758061960


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.HoodieCommonConfig;
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.table.HoodieTableConfig;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.common.util.hash.HashID;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import static org.apache.hudi.aws.utils.S3Utils.s3aToS3;
+import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ *
+ * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and
+ * table name (hoodie.table.name), with lock key set to a hard-coded value.
+ */
+@NotThreadSafe
+public class BaseZookeeperBasedLockProvider extends ZookeeperBasedLockProviderBase {

Review Comment:
   fixed, will be more careful next time. There are a lot of conflicts.



##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*

Review Comment:
   done



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81) 
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 5cc73e578002aa9ae19983470281293322d82371 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82) 
   * 8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e 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-8090] Add new Zookeeper-based lock provider with automatically derived base path and lock key [hudi]

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


-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * fef709834534bbffda5ed03f368a6ef8f5fffdb2 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81) 
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 5cc73e578002aa9ae19983470281293322d82371 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82) 
   
   <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-8090] Add new zookeeper based lock provider [hudi]

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


##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.
    *
    * @param a         The first string
    * @param b         The second string
-   * @param threshold The maximum byte length
+   * @param byteLengthThreshold The maximum byte length
    */
-  public static String concatenateWithThreshold(String a, String b, int threshold) {
+  public static String concatenateWithThreshold(String a, String b, int byteLengthThreshold) {
     // Convert both strings to byte arrays in UTF-8 encoding
     byte[] bytesA = getUTF8Bytes(a);
     byte[] bytesB = getUTF8Bytes(b);
-    if (bytesB.length > threshold) {
+    if (bytesB.length > byteLengthThreshold) {
       throw new IllegalArgumentException(String.format(
-          "Length of the Second string to concatenate exceeds the threshold (%d > %d)",
-          bytesB.length, threshold));
+          "Length of the Second string to concatenate exceeds the byteLengthThreshold (%d > %d)",

Review Comment:
   For error message clarify, should this be kept the same, i.e., "threshold" instead of "byteLengthThreshold"?



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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


##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.
    *
    * @param a         The first string
    * @param b         The second string
-   * @param threshold The maximum byte length
+   * @param byteLengthThreshold The maximum byte length
    */
-  public static String concatenateWithThreshold(String a, String b, int threshold) {
+  public static String concatenateWithThreshold(String a, String b, int byteLengthThreshold) {
     // Convert both strings to byte arrays in UTF-8 encoding
     byte[] bytesA = getUTF8Bytes(a);
     byte[] bytesB = getUTF8Bytes(b);
-    if (bytesB.length > threshold) {
+    if (bytesB.length > byteLengthThreshold) {
       throw new IllegalArgumentException(String.format(
-          "Length of the Second string to concatenate exceeds the threshold (%d > %d)",
-          bytesB.length, threshold));
+          "Length of the Second string to concatenate exceeds the byteLengthThreshold (%d > %d)",
+          bytesB.length, byteLengthThreshold));
     }
 
     // Calculate total bytes
     int totalBytes = bytesA.length + bytesB.length;
 
-    // If total bytes is within the threshold, return concatenated string
-    if (totalBytes <= threshold) {
+    // If total bytes is within the byteLengthThreshold, return concatenated string

Review Comment:
   Same here on the docs



##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.

Review Comment:
   Still use the "threshold word"?



-- 
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-8090] Add new zookeeper based lock provider [hudi]

Posted by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org>.
Davis-Zhang-Onehouse commented on code in PR #11790:
URL: https://github.com/apache/hudi/pull/11790#discussion_r1759789302


##########
hudi-io/src/main/java/org/apache/hudi/common/util/StringUtils.java:
##########
@@ -329,34 +329,34 @@ public static String stripEnd(final String str, final String stripChars) {
   }
 
   /**
-   * Concatenates two strings such that the total byte length does not exceed the threshold.
-   * If the total byte length exceeds the threshold, the function will find the maximum length of the first string
-   * that fits within the threshold and concatenate that with the second string.
+   * Concatenates two strings such that the total byte length does not exceed the byteLengthThreshold.
+   * If the total byte length exceeds the byteLengthThreshold, the function will find the maximum length of the first string
+   * that fits within the byteLengthThreshold and concatenate that with the second string.
    *
    * @param a         The first string
    * @param b         The second string
-   * @param threshold The maximum byte length
+   * @param byteLengthThreshold The maximum byte length
    */
-  public static String concatenateWithThreshold(String a, String b, int threshold) {
+  public static String concatenateWithThreshold(String a, String b, int byteLengthThreshold) {
     // Convert both strings to byte arrays in UTF-8 encoding
     byte[] bytesA = getUTF8Bytes(a);
     byte[] bytesB = getUTF8Bytes(b);
-    if (bytesB.length > threshold) {
+    if (bytesB.length > byteLengthThreshold) {
       throw new IllegalArgumentException(String.format(
-          "Length of the Second string to concatenate exceeds the threshold (%d > %d)",
-          bytesB.length, threshold));
+          "Length of the Second string to concatenate exceeds the byteLengthThreshold (%d > %d)",

Review Comment:
   done



-- 
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-8090] Add new zookeeper based lock provider [hudi]

Posted by "Davis-Zhang-Onehouse (via GitHub)" <gi...@apache.org>.
Davis-Zhang-Onehouse commented on code in PR #11790:
URL: https://github.com/apache/hudi/pull/11790#discussion_r1759790140


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/ZookeeperBasedImplicitBasePathLockProvider.java:
##########
@@ -0,0 +1,70 @@
+/*
+ * 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.hudi.client.transaction.lock;
+
+import org.apache.hudi.common.config.HoodieCommonConfig;
+import org.apache.hudi.common.config.LockConfiguration;
+import org.apache.hudi.common.lock.LockProvider;
+import org.apache.hudi.common.table.HoodieTableConfig;
+import org.apache.hudi.common.util.ValidationUtils;
+import org.apache.hudi.common.util.hash.HashID;
+import org.apache.hudi.storage.StorageConfiguration;
+
+import javax.annotation.concurrent.NotThreadSafe;
+
+import static org.apache.hudi.aws.utils.S3Utils.s3aToS3;
+import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold;
+
+/**
+ * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations
+ * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock.
+ *
+ * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and
+ * table name (hoodie.table.name), with lock key set to a hard-coded value.
+ */
+@NotThreadSafe
+public class ZookeeperBasedImplicitBasePathLockProvider extends BaseZookeeperBasedLockProvider {
+
+  public static final String LOCK_KEY = "lock_key";
+
+  public static String getLockBasePath(String hudiTableBasePath, String hudiTableName) {
+    // Ensure consistent format for S3 URI.
+    String hashPart = '-' + HashID.generateXXHashAsString(s3aToS3(hudiTableBasePath), HashID.Size.BITS_64);
+    String folderName = concatenateWithThreshold(hudiTableName, hashPart, MAX_ZK_BASE_PATH_NUM_BYTES);
+    return "/tmp/" + folderName;
+  }
+
+  public ZookeeperBasedImplicitBasePathLockProvider(final LockConfiguration lockConfiguration, final StorageConfiguration<?> conf) {
+    super(lockConfiguration, conf);
+  }
+
+  @Override
+  protected String getZkBasePath(LockConfiguration lockConfiguration) {
+    String hudiTableBasePath = lockConfiguration.getConfig().getString(HoodieCommonConfig.BASE_PATH.key());

Review Comment:
   done for all occurences



-- 
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-8090] Add new zookeeper based lock provider [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "235b291866f5346519ca747e6ec33492288da67d",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=78",
       "triggerID" : "235b291866f5346519ca747e6ec33492288da67d",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=81",
       "triggerID" : "fef709834534bbffda5ed03f368a6ef8f5fffdb2",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5a64bdc730a94007a8916d348de26345b41be207",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5a64bdc730a94007a8916d348de26345b41be207",
       "triggerType" : "PUSH"
     }, {
       "hash" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "44dece3a83d8680b227c9a55a0b643defe7cc915",
       "triggerType" : "PUSH"
     }, {
       "hash" : "5cc73e578002aa9ae19983470281293322d82371",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=82",
       "triggerID" : "5cc73e578002aa9ae19983470281293322d82371",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=105",
       "triggerID" : "8314f0b9ba8e0f3583dc3cf64ac3dab4fcc3506e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=442",
       "triggerID" : "fe09772ad57945ec00ade8b579789662d10adec6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=448",
       "triggerID" : "d90f3ba6075b109f973019020e0faaf7d3b1ac25",
       "triggerType" : "PUSH"
     }, {
       "hash" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=483",
       "triggerID" : "b4b556330281b7dba37c2c30635b7a05da31e66a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=485",
       "triggerID" : "2d3860184fc0d03fe388263237911bc73f9b5715",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5a64bdc730a94007a8916d348de26345b41be207 UNKNOWN
   * 44dece3a83d8680b227c9a55a0b643defe7cc915 UNKNOWN
   * 2d3860184fc0d03fe388263237911bc73f9b5715 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=485) 
   
   <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