You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/12/31 06:20:33 UTC
[GitHub] [hudi] YuweiXiao opened a new pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
YuweiXiao opened a new pull request #4480:
URL: https://github.com/apache/hudi/pull/4480
## *Tips*
- *Thank you very much for contributing to Apache Hudi.*
- *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.*
## What is the purpose of the pull request
Basic write path (upsert/insert) implementation of Consistent hashing bucket index.
## Brief change log
1. bucket index abstraction, with `BUCKET_INDEX_ENGINE_TYPE` config to choose which bucket index to use (e.g., SIMPLE or CONSISTENT_HASHING)
2. write path(insert/upsert) implementation for consistent hashing bucket index
3. metadata handling of consistent hashing
## Verify this pull request
This change added tests and can be verified as follows:
- Unit test of newly add classes (Identifier, Config)
- Functional test of the consistent hashing bucket index
## Committer checklist
- [x] Has a corresponding JIRA in PR title & commit
- [x] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816409922
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
+ /**
+ * mapping from fileId -> hashing node
Review comment:
Will fix
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816410118
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieBucketIndex.java
##########
@@ -37,28 +36,30 @@
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.List;
/**
* Hash indexing mechanism.
*/
-public class HoodieBucketIndex extends HoodieIndex<Object, Object> {
+public abstract class HoodieBucketIndex extends HoodieIndex<Object, Object> {
- private static final Logger LOG = LogManager.getLogger(HoodieBucketIndex.class);
+ private static final Logger LOG = LogManager.getLogger(HoodieBucketIndex.class);
- private final int numBuckets;
+ protected int numBuckets;
+ protected String indexKeyFields;
public HoodieBucketIndex(HoodieWriteConfig config) {
super(config);
- numBuckets = config.getBucketIndexNumBuckets();
- LOG.info("use bucket index, numBuckets=" + numBuckets);
+
+ this.numBuckets = config.getBucketIndexNumBuckets();
+ this.indexKeyFields = config.getBucketIndexHashField();
+ LOG.info("use bucket index, numBuckets = " + numBuckets + ", indexFields: " + indexKeyFields);
Review comment:
Will check all logs to make them consistent
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816415619
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
Review comment:
Yeah, just checked it. Will see how `ConsistencyGuard` fits in this scenario.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816418906
##########
File path: hudi-client/hudi-client-common/src/test/java/org/apache/hudi/index/bucket/TestBucketIdentifier.java
##########
@@ -0,0 +1,122 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieAvroRecord;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecord;
+import org.apache.hudi.keygen.KeyGenUtils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecord;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+public class TestBucketIdentifier {
+
+ public static final String NESTED_COL_SCHEMA = "{\"type\":\"record\", \"name\":\"nested_col\",\"fields\": ["
+ + "{\"name\": \"prop1\",\"type\": \"string\"},{\"name\": \"prop2\", \"type\": \"long\"}]}";
+ public static final String EXAMPLE_SCHEMA = "{\"type\": \"record\",\"name\": \"testrec\",\"fields\": [ "
+ + "{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\": \"string\"},"
+ + "{\"name\": \"ts_ms\", \"type\": \"string\"},"
+ + "{\"name\": \"pii_col\", \"type\": \"string\"},"
+ + "{\"name\": \"nested_col\",\"type\": "
+ + NESTED_COL_SCHEMA + "}"
+ + "]}";
+
+ @Test
+ public void testBucketFileId() {
+ for (int i = 0; i < 1000; i++) {
Review comment:
I moved it from the original BUCKET_INDEX test. I guess it should be the max size of allowed bucket number. So 2^n should be reasonable. maybe 2^16.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079057901
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003289603
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003309138
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
* 874be971351618f3f7024eb7836428f6d10d2d7c UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009537716
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
* 4314dccc4029df3e638d974e4d380dec73bbad31 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078690187
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078667746
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
* fe9d115804dc3b0aa0a27e2476316bf13759405e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1077029291
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] nsivabalan commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1041109912
@alexeykudinkin : Can you review this PR.
I will get to review as well. but thought would be good for you to ramp up on indexing part.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816410681
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieBucketIndex.java
##########
@@ -68,62 +69,46 @@ public HoodieBucketIndex(HoodieWriteConfig config) {
HoodieData<HoodieRecord<R>> records, HoodieEngineContext context,
HoodieTable hoodieTable)
throws HoodieIndexException {
- HoodieData<HoodieRecord<R>> taggedRecords = records.mapPartitions(recordIter -> {
- // partitionPath -> bucketId -> fileInfo
- Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList = new HashMap<>();
- return new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(recordIter) {
+ // initialize necessary information before tagging. e.g., hashing metadata
+ List<String> partitions = records.map(HoodieRecord::getPartitionPath).distinct().collectAsList();
+ LOG.info("Initializing hashing metadata for partitions: " + partitions);
+ initialize(hoodieTable, partitions);
- @Override
- protected void start() {
+ return records.mapPartitions(iterator ->
+ new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(iterator) {
- }
+ @Override
+ protected void start() {
Review comment:
Yeah, good idea. It is a utility class existed long ago, will add a default impl to it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816418906
##########
File path: hudi-client/hudi-client-common/src/test/java/org/apache/hudi/index/bucket/TestBucketIdentifier.java
##########
@@ -0,0 +1,122 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieAvroRecord;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecord;
+import org.apache.hudi.keygen.KeyGenUtils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecord;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+public class TestBucketIdentifier {
+
+ public static final String NESTED_COL_SCHEMA = "{\"type\":\"record\", \"name\":\"nested_col\",\"fields\": ["
+ + "{\"name\": \"prop1\",\"type\": \"string\"},{\"name\": \"prop2\", \"type\": \"long\"}]}";
+ public static final String EXAMPLE_SCHEMA = "{\"type\": \"record\",\"name\": \"testrec\",\"fields\": [ "
+ + "{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\": \"string\"},"
+ + "{\"name\": \"ts_ms\", \"type\": \"string\"},"
+ + "{\"name\": \"pii_col\", \"type\": \"string\"},"
+ + "{\"name\": \"nested_col\",\"type\": "
+ + NESTED_COL_SCHEMA + "}"
+ + "]}";
+
+ @Test
+ public void testBucketFileId() {
+ for (int i = 0; i < 1000; i++) {
Review comment:
I moved it from the original BUCKET_INDEX test. I guess it should be the max allowed size of bucket number. So 2^n should be reasonable. maybe 2^16.
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/model/HoodieConsistentHashingMetadata.java
##########
@@ -0,0 +1,165 @@
+/*
+ * 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.common.model;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * All the metadata that is used for consistent hashing bucket index
+ */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class HoodieConsistentHashingMetadata implements Serializable {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieConsistentHashingMetadata.class);
+
+ public static final int MAX_HASH_VALUE = Integer.MAX_VALUE;
+ public static final String HASHING_METADATA_FILE_SUFFIX = ".hashing_meta";
+
+ protected short version;
+ protected String partitionPath;
+ protected String instant;
+ protected int numBuckets;
+ protected int seqNo;
+ protected List<ConsistentHashingNode> nodes;
+
+ public HoodieConsistentHashingMetadata() {
+ }
+
+ public HoodieConsistentHashingMetadata(String partitionPath, int numBuckets) {
+ this((short) 0, partitionPath, HoodieTimeline.INIT_INSTANT_TS, numBuckets);
+ }
+
+ /**
+ * Construct default metadata with all bucket's file group uuid initialized
+ *
+ * @param partitionPath
+ * @param numBuckets
+ */
+ private HoodieConsistentHashingMetadata(short version, String partitionPath, String instant, int numBuckets) {
+ this.version = version;
+ this.partitionPath = partitionPath;
+ this.instant = instant;
+ this.numBuckets = numBuckets;
+
+ nodes = new ArrayList<>();
+ long step = ((long) MAX_HASH_VALUE + numBuckets - 1) / numBuckets;
+ for (int i = 1; i <= numBuckets; ++i) {
+ nodes.add(new ConsistentHashingNode((int) Math.min(step * i, MAX_HASH_VALUE), FSUtils.createNewFileIdPfx()));
+ }
+ }
+
+ public short getVersion() {
+ return version;
+ }
+
+ public String getPartitionPath() {
+ return partitionPath;
+ }
+
+ public String getInstant() {
+ return instant;
+ }
+
+ public int getNumBuckets() {
+ return numBuckets;
+ }
+
+ public int getSeqNo() {
+ return seqNo;
+ }
+
+ public List<ConsistentHashingNode> getNodes() {
+ return nodes;
+ }
+
+ public void setInstant(String instant) {
+ this.instant = instant;
+ }
+
+ public void setNodes(List<ConsistentHashingNode> nodes) {
+ this.nodes = nodes;
+ this.numBuckets = nodes.size();
+ }
+
+ public void setSeqNo(int seqNo) {
+ this.seqNo = seqNo;
+ }
+
+ public String getFilename() {
+ return instant + HASHING_METADATA_FILE_SUFFIX;
+ }
+
+ public byte[] toBytes() throws IOException {
+ return toJsonString().getBytes(StandardCharsets.UTF_8);
+ }
+
+ public static HoodieConsistentHashingMetadata fromBytes(byte[] bytes) throws IOException {
+ try {
+ return fromJsonString(new String(bytes, StandardCharsets.UTF_8), HoodieConsistentHashingMetadata.class);
+ } catch (Exception e) {
+ throw new IOException("unable to read hashing metadata", e);
+ }
+ }
+
+ private String toJsonString() throws IOException {
+ return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(this);
+ }
+
+ protected static <T> T fromJsonString(String jsonStr, Class<T> clazz) throws Exception {
+ if (jsonStr == null || jsonStr.isEmpty()) {
+ // For empty commit file (no data or somethings bad happen).
+ return clazz.newInstance();
+ }
+ return getObjectMapper().readValue(jsonStr, clazz);
+ }
+
+ protected static ObjectMapper getObjectMapper() {
+ ObjectMapper mapper = new ObjectMapper();
Review comment:
Sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] vinothchandar commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1063664153
@YuweiXiao is this ready for review?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009561902
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056141641
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1077029291
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079057901
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003289113
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003283841
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009561902
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009591034
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816413282
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
Review comment:
Commits that don't modify the hashing metadata will reuse the latest valid metadata. So without split&merge, a complete write normally will not create new metadata unless it is doesn't exist. ps. split&merge (re-balancing) logic is not included in this pr.
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
Review comment:
Sure!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1063665168
> @YuweiXiao is this ready for review?
Yes :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao edited a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao edited a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079878103
@hudi-bot run azure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1033225969
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003289113
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003336882
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003284346
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003283841
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003295706
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1080257094
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
}, {
"hash" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
* 45c2df4b21d99b4d322542f091b7a50f7ab8e4ce UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079892625
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056971715
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1080286231
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
}, {
"hash" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442",
"triggerID" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
* 45c2df4b21d99b4d322542f091b7a50f7ab8e4ce Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1080478754
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
}, {
"hash" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442",
"triggerID" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 45c2df4b21d99b4d322542f091b7a50f7ab8e4ce Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056096125
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
* 754931ba448157b905feb75c34913919d215e5ab Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816410681
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieBucketIndex.java
##########
@@ -68,62 +69,46 @@ public HoodieBucketIndex(HoodieWriteConfig config) {
HoodieData<HoodieRecord<R>> records, HoodieEngineContext context,
HoodieTable hoodieTable)
throws HoodieIndexException {
- HoodieData<HoodieRecord<R>> taggedRecords = records.mapPartitions(recordIter -> {
- // partitionPath -> bucketId -> fileInfo
- Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList = new HashMap<>();
- return new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(recordIter) {
+ // initialize necessary information before tagging. e.g., hashing metadata
+ List<String> partitions = records.map(HoodieRecord::getPartitionPath).distinct().collectAsList();
+ LOG.info("Initializing hashing metadata for partitions: " + partitions);
+ initialize(hoodieTable, partitions);
- @Override
- protected void start() {
+ return records.mapPartitions(iterator ->
+ new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(iterator) {
- }
+ @Override
+ protected void start() {
Review comment:
Yeah, good idea. It is a utility class exists long ago, will add a default impl to it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003289603
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003284825
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003323368
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1076991714
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078666216
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
* fe9d115804dc3b0aa0a27e2476316bf13759405e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003305890
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003309138
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
* 874be971351618f3f7024eb7836428f6d10d2d7c UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056911719
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1057049434
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816416961
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
+ HoodieConsistentHashingMetadata metadata = loadMetadata(table, partition);
+ if (metadata == null) {
+ metadata = new HoodieConsistentHashingMetadata(partition, numBuckets);
+ if (saveMetadata(table, metadata, false)) {
+ return metadata;
+ }
+ } else {
+ return metadata;
+ }
+ }
+ throw new HoodieIndexException("Failed to load or create metadata, partition: " + partition);
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, return null
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata or null if it does not exist
+ */
+ public static HoodieConsistentHashingMetadata loadMetadata(HoodieTable table, String partition) {
+ Path metadataPath = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), partition);
+
+ try {
+ if (!table.getMetaClient().getFs().exists(metadataPath)) {
+ return null;
+ }
+ FileStatus[] metaFiles = table.getMetaClient().getFs().listStatus(metadataPath);
+ HoodieTimeline completedCommits = table.getMetaClient().getActiveTimeline().getCommitTimeline().filterCompletedInstants();
Review comment:
In the current design, index (metadata) of a partition will be created in the first write and be updated in clustering (split&merge bucket). Compaction will not modify the metadata and is exclusive with clustering.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1076991714
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1080286231
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
}, {
"hash" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442",
"triggerID" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
* 45c2df4b21d99b4d322542f091b7a50f7ab8e4ce Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7442)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078660318
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1032376929
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
* 56a911718e615762ca5718e79741f8a242355170 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1032376929
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
* 56a911718e615762ca5718e79741f8a242355170 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056141641
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056918243
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056911719
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056084745
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
* 754931ba448157b905feb75c34913919d215e5ab UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r817300071
##########
File path: hudi-client/hudi-client-common/src/test/java/org/apache/hudi/index/bucket/TestBucketIdentifier.java
##########
@@ -0,0 +1,122 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieAvroRecord;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecord;
+import org.apache.hudi.keygen.KeyGenUtils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecord;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+public class TestBucketIdentifier {
+
+ public static final String NESTED_COL_SCHEMA = "{\"type\":\"record\", \"name\":\"nested_col\",\"fields\": ["
+ + "{\"name\": \"prop1\",\"type\": \"string\"},{\"name\": \"prop2\", \"type\": \"long\"}]}";
+ public static final String EXAMPLE_SCHEMA = "{\"type\": \"record\",\"name\": \"testrec\",\"fields\": [ "
+ + "{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\": \"string\"},"
+ + "{\"name\": \"ts_ms\", \"type\": \"string\"},"
+ + "{\"name\": \"pii_col\", \"type\": \"string\"},"
+ + "{\"name\": \"nested_col\",\"type\": "
+ + NESTED_COL_SCHEMA + "}"
+ + "]}";
+
+ @Test
+ public void testBucketFileId() {
+ for (int i = 0; i < 1000; i++) {
Review comment:
ah ok. yeah, edge-cases check would be better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816417808
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/model/ConsistentHashingNode.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.common.model;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * Used in consistent hashing index, representing nodes in the consistent hash ring.
+ * Record the end hash range value and its corresponding file group id.
+ */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ConsistentHashingNode implements Serializable {
+
+ private int value;
+ private String fileIdPfx;
+
+ public ConsistentHashingNode() {
+ }
+
+ public ConsistentHashingNode(int value, String fileIdPfx) {
+ this.value = value;
+ this.fileIdPfx = fileIdPfx;
+ }
+
+ public static String toJsonString(List<ConsistentHashingNode> nodes) throws IOException {
+ return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(nodes);
+ }
+
+ public static List<ConsistentHashingNode> fromJsonString(String json) throws Exception {
+ if (json == null || json.isEmpty()) {
+ return Collections.emptyList();
+ }
+
+ ConsistentHashingNode[] nodes = getObjectMapper().readValue(json, ConsistentHashingNode[].class);
+ return Arrays.asList(nodes);
+ }
+
+ protected static ObjectMapper getObjectMapper() {
+ ObjectMapper mapper = new ObjectMapper();
Review comment:
Got it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079878178
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1077003409
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1077003409
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078641744
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078641744
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003284346
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003295706
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1014464602
@vinothchandar @nsivabalan Hi, could you please help review this PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003305890
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816415030
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
Review comment:
Sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816419638
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
Review comment:
Yeah, there will be some follow-up PRs. Just want to see some reviews from community before I raise a STACKED PR for the re-balancing (split/merge). Thanks for the review!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056096125
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
* 754931ba448157b905feb75c34913919d215e5ab Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056918243
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1033225969
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078666216
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
* fe9d115804dc3b0aa0a27e2476316bf13759405e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078667746
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
* fe9d115804dc3b0aa0a27e2476316bf13759405e UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079878103
@hudi-bot run azure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009591034
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 4314dccc4029df3e638d974e4d380dec73bbad31 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao edited a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao edited a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1076991851
@nsivabalan @alexeykudinkin @vinothchandar Hey, could it be possible that we push forward together to land this PR in the coming release 0.11?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003323368
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* b8335b109c31a3defc5a93d0e08bcb77f5567192 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827)
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003284825
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 107569356716649b14ba96674ee9559989906f2b Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1004647179
cc @minihippo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1009537716
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
* 4314dccc4029df3e638d974e4d380dec73bbad31 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1003336882
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 874be971351618f3f7024eb7836428f6d10d2d7c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079878178
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1079892625
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1057049434
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1076991851
@nsivabalan @alexeykudinkin @vinothchandar Hey, could it be possible that we push forward to land this PR in the coming release 0.11?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1078660318
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* 1daa7609a5ac69dced0f27d57f983be58fd138d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262)
* 00a04e9715ae4f76f17b80207667e227bebf706e Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1080257094
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
}, {
"hash" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7262",
"triggerID" : "1daa7609a5ac69dced0f27d57f983be58fd138d9",
"triggerType" : "PUSH"
}, {
"hash" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7345",
"triggerID" : "00a04e9715ae4f76f17b80207667e227bebf706e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350",
"triggerID" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"triggerType" : "PUSH"
}, {
"hash" : "fe9d115804dc3b0aa0a27e2476316bf13759405e",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413",
"triggerID" : "1079878103",
"triggerType" : "MANUAL"
}, {
"hash" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "45c2df4b21d99b4d322542f091b7a50f7ab8e4ce",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* fe9d115804dc3b0aa0a27e2476316bf13759405e Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7350) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=7413)
* 45c2df4b21d99b4d322542f091b7a50f7ab8e4ce UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816736220
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
Review comment:
Dig into it and find out `HoodieWrapperFileSystem` already includes `ConsistencyGuard` to handle the consistency problem. Will remove the retry logic here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] alexeykudinkin commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r817287291
##########
File path: hudi-client/hudi-client-common/src/test/java/org/apache/hudi/index/bucket/TestBucketIdentifier.java
##########
@@ -0,0 +1,122 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieAvroRecord;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecord;
+import org.apache.hudi.keygen.KeyGenUtils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecord;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+public class TestBucketIdentifier {
+
+ public static final String NESTED_COL_SCHEMA = "{\"type\":\"record\", \"name\":\"nested_col\",\"fields\": ["
+ + "{\"name\": \"prop1\",\"type\": \"string\"},{\"name\": \"prop2\", \"type\": \"long\"}]}";
+ public static final String EXAMPLE_SCHEMA = "{\"type\": \"record\",\"name\": \"testrec\",\"fields\": [ "
+ + "{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\": \"string\"},"
+ + "{\"name\": \"ts_ms\", \"type\": \"string\"},"
+ + "{\"name\": \"pii_col\", \"type\": \"string\"},"
+ + "{\"name\": \"nested_col\",\"type\": "
+ + NESTED_COL_SCHEMA + "}"
+ + "]}";
+
+ @Test
+ public void testBucketFileId() {
+ for (int i = 0; i < 1000; i++) {
Review comment:
I actually was thinking that we should just check the edge-cases (to avoid wasting the compute for no reason)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056084745
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 56a911718e615762ca5718e79741f8a242355170 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799)
* 754931ba448157b905feb75c34913919d215e5ab UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] alexeykudinkin commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816374506
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
Review comment:
Typo
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
+ /**
+ * mapping from fileId -> hashing node
+ */
+ private Map<String, ConsistentHashingNode> fileIdToBucket;
+
+ public ConsistentBucketIdentifier(HoodieConsistentHashingMetadata metadata) {
+ this.metadata = metadata;
+ initialize();
+ }
+
+ public Collection<ConsistentHashingNode> getNodes() {
+ return ring.values();
+ }
+
+ public HoodieConsistentHashingMetadata getMetadata() {
+ return metadata;
+ }
+
+ public int getNumBuckets() {
+ return getNodes().size();
+ }
+
+ /**
+ * Get bucket of the given file group
+ *
+ * @param fileId the file group id. NOTE: not filePfx (i.e., uuid)
+ * @return
+ */
+ public ConsistentHashingNode getBucketByFileId(String fileId) {
+ return fileIdToBucket.get(fileId);
+ }
+
+ public ConsistentHashingNode getBucket(HoodieKey hoodieKey, String indexKeyFields) {
+ return getBucket(getHashKeys(hoodieKey, indexKeyFields));
+ }
+
+ protected ConsistentHashingNode getBucket(List<String> hashKeys) {
+ int hashValue = 0;
+ for (int i = 0; i < hashKeys.size(); ++i) {
+ hashValue = HashID.getXXHash32(hashKeys.get(i), hashValue);
+ }
+ return getBucket(hashValue & HoodieConsistentHashingMetadata.MAX_HASH_VALUE);
Review comment:
Let's rename `MAX_HASH_VALUE` to be `HASH_VALUE_MASK` to make it clear that it's used as a mask
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
Review comment:
But what about completed commits?
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieBucketIndex.java
##########
@@ -68,62 +69,46 @@ public HoodieBucketIndex(HoodieWriteConfig config) {
HoodieData<HoodieRecord<R>> records, HoodieEngineContext context,
HoodieTable hoodieTable)
throws HoodieIndexException {
- HoodieData<HoodieRecord<R>> taggedRecords = records.mapPartitions(recordIter -> {
- // partitionPath -> bucketId -> fileInfo
- Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList = new HashMap<>();
- return new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(recordIter) {
+ // initialize necessary information before tagging. e.g., hashing metadata
+ List<String> partitions = records.map(HoodieRecord::getPartitionPath).distinct().collectAsList();
+ LOG.info("Initializing hashing metadata for partitions: " + partitions);
+ initialize(hoodieTable, partitions);
- @Override
- protected void start() {
+ return records.mapPartitions(iterator ->
+ new LazyIterableIterator<HoodieRecord<R>, HoodieRecord<R>>(iterator) {
- }
+ @Override
+ protected void start() {
Review comment:
If these methods are clearly optional, should we add default implementations for them to avoid this boilerplate?
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
Review comment:
Same comment as above regarding `final`, please fix across the PR
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
Review comment:
Can you please explicitly call out convention you're referring to?
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
+ /**
+ * mapping from fileId -> hashing node
+ */
+ private Map<String, ConsistentHashingNode> fileIdToBucket;
Review comment:
Please make all fields final
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieSimpleBucketIndex.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.util.collection.Pair;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.index.HoodieIndexUtils;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Simple bucket index implementation, with fixed bucket number.
+ */
+public class HoodieSimpleBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSimpleBucketIndex.class);
+
+ /**
+ * partitionPath -> bucketId -> fileInfo
+ */
+ Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList;
+
+ public HoodieSimpleBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ private Map<Integer, Pair<String, String>> loadPartitionBucketIdFileIdMapping(
+ HoodieTable hoodieTable,
+ String partition) {
+ // bucketId -> fileIds
+ Map<Integer, Pair<String, String>> fileIDList = new HashMap<>();
Review comment:
`fileIdList` doesn't seem to be particularly representative, shall we call it `bucketIdToFileIdMapping`?
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
+ /**
+ * mapping from fileId -> hashing node
Review comment:
Let's make comments consistent (should start with capitalized)
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieBucketIndex.java
##########
@@ -37,28 +36,30 @@
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.List;
/**
* Hash indexing mechanism.
*/
-public class HoodieBucketIndex extends HoodieIndex<Object, Object> {
+public abstract class HoodieBucketIndex extends HoodieIndex<Object, Object> {
- private static final Logger LOG = LogManager.getLogger(HoodieBucketIndex.class);
+ private static final Logger LOG = LogManager.getLogger(HoodieBucketIndex.class);
- private final int numBuckets;
+ protected int numBuckets;
+ protected String indexKeyFields;
public HoodieBucketIndex(HoodieWriteConfig config) {
super(config);
- numBuckets = config.getBucketIndexNumBuckets();
- LOG.info("use bucket index, numBuckets=" + numBuckets);
+
+ this.numBuckets = config.getBucketIndexNumBuckets();
+ this.indexKeyFields = config.getBucketIndexHashField();
+ LOG.info("use bucket index, numBuckets = " + numBuckets + ", indexFields: " + indexKeyFields);
Review comment:
Please fix log statement to start w/ capital
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
Review comment:
That indeed seems like a perfect candidate for abstraction w/in `ConsistencyGuard`
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieSimpleBucketIndex.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.util.collection.Pair;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.index.HoodieIndexUtils;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Simple bucket index implementation, with fixed bucket number.
+ */
+public class HoodieSimpleBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSimpleBucketIndex.class);
+
+ /**
+ * partitionPath -> bucketId -> fileInfo
+ */
+ Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList;
+
+ public HoodieSimpleBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ private Map<Integer, Pair<String, String>> loadPartitionBucketIdFileIdMapping(
+ HoodieTable hoodieTable,
+ String partition) {
+ // bucketId -> fileIds
+ Map<Integer, Pair<String, String>> fileIDList = new HashMap<>();
+ hoodieTable.getMetaClient().reloadActiveTimeline();
+ HoodieIndexUtils
+ .getLatestBaseFilesForPartition(partition, hoodieTable)
+ .forEach(file -> {
+ String fileId = file.getFileId();
+ String commitTime = file.getCommitTime();
+ int bucketId = BucketIdentifier.bucketIdFromFileId(fileId);
+ if (!fileIDList.containsKey(bucketId)) {
+ fileIDList.put(bucketId, Pair.of(fileId, commitTime));
+ } else {
+ // check if bucket data is valid
+ throw new HoodieIOException("Find multiple files at partition path="
+ + partition + " belongs to the same bucket id = " + bucketId);
+ }
+ });
+ return fileIDList;
+ }
+
+ @Override
+ public boolean canIndexLogFiles() {
+ return false;
+ }
+
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionPathFileIDList = new HashMap<>();
+ partitions.forEach(p -> partitionPathFileIDList.put(p, loadPartitionBucketIdFileIdMapping(table, p)));
+ }
+
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ int bucketId = BucketIdentifier.getBucketId(key, config.getBucketIndexHashField(), numBuckets);
+ if (partitionPathFileIDList.get(partitionPath).containsKey(bucketId)) {
Review comment:
Let's do just 2 hash-table lookup instead of 4
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieSimpleBucketIndex.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.util.collection.Pair;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.index.HoodieIndexUtils;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Simple bucket index implementation, with fixed bucket number.
+ */
+public class HoodieSimpleBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSimpleBucketIndex.class);
+
+ /**
+ * partitionPath -> bucketId -> fileInfo
+ */
+ Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList;
Review comment:
Please make this `private final`, ditto everywhere
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
+ HoodieConsistentHashingMetadata metadata = loadMetadata(table, partition);
+ if (metadata == null) {
+ metadata = new HoodieConsistentHashingMetadata(partition, numBuckets);
+ if (saveMetadata(table, metadata, false)) {
+ return metadata;
+ }
+ } else {
+ return metadata;
+ }
+ }
+ throw new HoodieIndexException("Failed to load or create metadata, partition: " + partition);
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, return null
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata or null if it does not exist
+ */
+ public static HoodieConsistentHashingMetadata loadMetadata(HoodieTable table, String partition) {
+ Path metadataPath = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), partition);
+
+ try {
+ if (!table.getMetaClient().getFs().exists(metadataPath)) {
+ return null;
+ }
+ FileStatus[] metaFiles = table.getMetaClient().getFs().listStatus(metadataPath);
+ HoodieTimeline completedCommits = table.getMetaClient().getActiveTimeline().getCommitTimeline().filterCompletedInstants();
Review comment:
What about compactions? Can the index be updated after compaction?
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
+ HoodieConsistentHashingMetadata metadata = loadMetadata(table, partition);
+ if (metadata == null) {
+ metadata = new HoodieConsistentHashingMetadata(partition, numBuckets);
+ if (saveMetadata(table, metadata, false)) {
+ return metadata;
+ }
+ } else {
+ return metadata;
+ }
+ }
+ throw new HoodieIndexException("Failed to load or create metadata, partition: " + partition);
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, return null
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata or null if it does not exist
+ */
+ public static HoodieConsistentHashingMetadata loadMetadata(HoodieTable table, String partition) {
+ Path metadataPath = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), partition);
+
+ try {
+ if (!table.getMetaClient().getFs().exists(metadataPath)) {
+ return null;
+ }
+ FileStatus[] metaFiles = table.getMetaClient().getFs().listStatus(metadataPath);
+ HoodieTimeline completedCommits = table.getMetaClient().getActiveTimeline().getCommitTimeline().filterCompletedInstants();
+ Predicate<FileStatus> metaFilePredicate = fileStatus -> {
+ String filename = fileStatus.getPath().getName();
+ return filename.contains(HoodieConsistentHashingMetadata.HASHING_METADATA_FILE_SUFFIX)
+ && (completedCommits.containsInstant(HoodieConsistentHashingMetadata.getTimestampFromFile(filename))
+ || HoodieConsistentHashingMetadata.getTimestampFromFile(filename).equals(HoodieTimeline.INIT_INSTANT_TS));
+ };
+
+ FileStatus metaFile = Arrays.stream(metaFiles).filter(metaFilePredicate)
+ .max(Comparator.comparing(a -> a.getPath().getName())).orElse(null);
+
+ if (metaFile != null) {
+ byte[] content = FileIOUtils.readAsByteArray(table.getMetaClient().getFs().open(metaFile.getPath()));
+ return HoodieConsistentHashingMetadata.fromBytes(content);
+ }
+
+ return null;
+ } catch (IOException e) {
+ LOG.warn("Error when loading hashing metadata, partition: " + partition + ", error meg: " + e.getMessage());
+ throw new HoodieIndexException("Error while loading hashing metadata, " + e.getMessage());
+ }
+ }
+
+ /**
+ * Save metadata into storage
+ * @param table
+ * @param metadata
+ * @param overwrite
+ * @return
+ */
+ private static boolean saveMetadata(HoodieTable table, HoodieConsistentHashingMetadata metadata, boolean overwrite) {
+ FSDataOutputStream fsOut = null;
+ HoodieWrapperFileSystem fs = table.getMetaClient().getFs();
+ Path dir = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), metadata.getPartitionPath());
+ Path fullPath = new Path(dir, metadata.getFilename());
+ try {
+ byte[] bytes = metadata.toBytes();
+ fsOut = fs.create(fullPath, overwrite);
+ fsOut.write(bytes);
+ fsOut.close();
+ return true;
+ } catch (IOException e) {
+ e.printStackTrace();
Review comment:
Please clean this up, instead log as error with exception
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIdentifier.java
##########
@@ -0,0 +1,108 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.util.hash.HashID;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.SortedMap;
+import java.util.TreeMap;
+
+public class ConsistentBucketIdentifier extends BucketIdentifier {
+
+ /**
+ * Hashing metadata of a partition
+ */
+ private final HoodieConsistentHashingMetadata metadata;
+ /**
+ * in-memory structure to speed up rang mapping (hashing value -> hashing node)
+ */
+ private TreeMap<Integer, ConsistentHashingNode> ring;
Review comment:
I actually didn't see us ever re-balancing that ring. Is this going to be added in a follow-up PR?
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/model/HoodieConsistentHashingMetadata.java
##########
@@ -0,0 +1,165 @@
+/*
+ * 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.common.model;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * All the metadata that is used for consistent hashing bucket index
+ */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class HoodieConsistentHashingMetadata implements Serializable {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieConsistentHashingMetadata.class);
+
+ public static final int MAX_HASH_VALUE = Integer.MAX_VALUE;
+ public static final String HASHING_METADATA_FILE_SUFFIX = ".hashing_meta";
+
+ protected short version;
+ protected String partitionPath;
+ protected String instant;
+ protected int numBuckets;
+ protected int seqNo;
+ protected List<ConsistentHashingNode> nodes;
+
+ public HoodieConsistentHashingMetadata() {
+ }
+
+ public HoodieConsistentHashingMetadata(String partitionPath, int numBuckets) {
+ this((short) 0, partitionPath, HoodieTimeline.INIT_INSTANT_TS, numBuckets);
+ }
+
+ /**
+ * Construct default metadata with all bucket's file group uuid initialized
+ *
+ * @param partitionPath
+ * @param numBuckets
+ */
+ private HoodieConsistentHashingMetadata(short version, String partitionPath, String instant, int numBuckets) {
+ this.version = version;
+ this.partitionPath = partitionPath;
+ this.instant = instant;
+ this.numBuckets = numBuckets;
+
+ nodes = new ArrayList<>();
+ long step = ((long) MAX_HASH_VALUE + numBuckets - 1) / numBuckets;
+ for (int i = 1; i <= numBuckets; ++i) {
+ nodes.add(new ConsistentHashingNode((int) Math.min(step * i, MAX_HASH_VALUE), FSUtils.createNewFileIdPfx()));
+ }
+ }
+
+ public short getVersion() {
+ return version;
+ }
+
+ public String getPartitionPath() {
+ return partitionPath;
+ }
+
+ public String getInstant() {
+ return instant;
+ }
+
+ public int getNumBuckets() {
+ return numBuckets;
+ }
+
+ public int getSeqNo() {
+ return seqNo;
+ }
+
+ public List<ConsistentHashingNode> getNodes() {
+ return nodes;
+ }
+
+ public void setInstant(String instant) {
+ this.instant = instant;
+ }
+
+ public void setNodes(List<ConsistentHashingNode> nodes) {
+ this.nodes = nodes;
+ this.numBuckets = nodes.size();
+ }
+
+ public void setSeqNo(int seqNo) {
+ this.seqNo = seqNo;
+ }
+
+ public String getFilename() {
+ return instant + HASHING_METADATA_FILE_SUFFIX;
+ }
+
+ public byte[] toBytes() throws IOException {
+ return toJsonString().getBytes(StandardCharsets.UTF_8);
+ }
+
+ public static HoodieConsistentHashingMetadata fromBytes(byte[] bytes) throws IOException {
+ try {
+ return fromJsonString(new String(bytes, StandardCharsets.UTF_8), HoodieConsistentHashingMetadata.class);
+ } catch (Exception e) {
+ throw new IOException("unable to read hashing metadata", e);
+ }
+ }
+
+ private String toJsonString() throws IOException {
+ return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(this);
+ }
+
+ protected static <T> T fromJsonString(String jsonStr, Class<T> clazz) throws Exception {
+ if (jsonStr == null || jsonStr.isEmpty()) {
+ // For empty commit file (no data or somethings bad happen).
+ return clazz.newInstance();
+ }
+ return getObjectMapper().readValue(jsonStr, clazz);
+ }
+
+ protected static ObjectMapper getObjectMapper() {
+ ObjectMapper mapper = new ObjectMapper();
Review comment:
Please check my other comment regarding `ObjectMapper`
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/model/HoodieConsistentHashingMetadata.java
##########
@@ -0,0 +1,165 @@
+/*
+ * 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.common.model;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * All the metadata that is used for consistent hashing bucket index
+ */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class HoodieConsistentHashingMetadata implements Serializable {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieConsistentHashingMetadata.class);
+
+ public static final int MAX_HASH_VALUE = Integer.MAX_VALUE;
+ public static final String HASHING_METADATA_FILE_SUFFIX = ".hashing_meta";
+
+ protected short version;
+ protected String partitionPath;
+ protected String instant;
+ protected int numBuckets;
+ protected int seqNo;
+ protected List<ConsistentHashingNode> nodes;
+
+ public HoodieConsistentHashingMetadata() {
Review comment:
As far as i can tell this is only serialized/de by Jackson. Let's make this object immutable (all fields final, no setters) and instead use `@JsonCreator` annotations
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/storage/HoodieConsistentBucketLayout.java
##########
@@ -0,0 +1,71 @@
+/*
+ * 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.table.storage;
+
+import org.apache.hudi.common.model.WriteOperationType;
+import org.apache.hudi.common.util.Option;
+import org.apache.hudi.config.HoodieWriteConfig;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Storage layout when using consistent hashing bucket index.
+ */
+public class HoodieConsistentBucketLayout extends HoodieStorageLayout {
+ public static final Set<WriteOperationType> SUPPORTED_OPERATIONS = new HashSet<WriteOperationType>() {
Review comment:
You can use `CollectionUtils.createImmutableSet` for that
##########
File path: hudi-client/hudi-client-common/src/test/java/org/apache/hudi/index/bucket/TestBucketIdentifier.java
##########
@@ -0,0 +1,122 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieAvroRecord;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecord;
+import org.apache.hudi.keygen.KeyGenUtils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericRecord;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+public class TestBucketIdentifier {
+
+ public static final String NESTED_COL_SCHEMA = "{\"type\":\"record\", \"name\":\"nested_col\",\"fields\": ["
+ + "{\"name\": \"prop1\",\"type\": \"string\"},{\"name\": \"prop2\", \"type\": \"long\"}]}";
+ public static final String EXAMPLE_SCHEMA = "{\"type\": \"record\",\"name\": \"testrec\",\"fields\": [ "
+ + "{\"name\": \"timestamp\",\"type\": \"long\"},{\"name\": \"_row_key\", \"type\": \"string\"},"
+ + "{\"name\": \"ts_ms\", \"type\": \"string\"},"
+ + "{\"name\": \"pii_col\", \"type\": \"string\"},"
+ + "{\"name\": \"nested_col\",\"type\": "
+ + NESTED_COL_SCHEMA + "}"
+ + "]}";
+
+ @Test
+ public void testBucketFileId() {
+ for (int i = 0; i < 1000; i++) {
Review comment:
What's the point of doing 1000 iterations?
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
+ HoodieConsistentHashingMetadata metadata = loadMetadata(table, partition);
+ if (metadata == null) {
+ metadata = new HoodieConsistentHashingMetadata(partition, numBuckets);
+ if (saveMetadata(table, metadata, false)) {
+ return metadata;
+ }
+ } else {
+ return metadata;
+ }
+ }
+ throw new HoodieIndexException("Failed to load or create metadata, partition: " + partition);
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, return null
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata or null if it does not exist
+ */
+ public static HoodieConsistentHashingMetadata loadMetadata(HoodieTable table, String partition) {
+ Path metadataPath = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), partition);
+
+ try {
+ if (!table.getMetaClient().getFs().exists(metadataPath)) {
+ return null;
+ }
+ FileStatus[] metaFiles = table.getMetaClient().getFs().listStatus(metadataPath);
+ HoodieTimeline completedCommits = table.getMetaClient().getActiveTimeline().getCommitTimeline().filterCompletedInstants();
+ Predicate<FileStatus> metaFilePredicate = fileStatus -> {
+ String filename = fileStatus.getPath().getName();
+ return filename.contains(HoodieConsistentHashingMetadata.HASHING_METADATA_FILE_SUFFIX)
+ && (completedCommits.containsInstant(HoodieConsistentHashingMetadata.getTimestampFromFile(filename))
+ || HoodieConsistentHashingMetadata.getTimestampFromFile(filename).equals(HoodieTimeline.INIT_INSTANT_TS));
Review comment:
Please extract to a var
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
+
+ // TODO maybe parallel
+ partitions.stream().forEach(p -> {
+ HoodieConsistentHashingMetadata metadata = loadOrCreateMetadata(table, p);
+ ConsistentBucketIdentifier identifier = new ConsistentBucketIdentifier(metadata);
+ partitionToIdentifier.put(p, identifier);
+ });
+ }
+
+ /**
+ * Get bucket location for given key and partition
+ *
+ * @param key
+ * @param partitionPath
+ * @return
+ */
+ @Override
+ protected HoodieRecordLocation getBucket(HoodieKey key, String partitionPath) {
+ ConsistentHashingNode node = partitionToIdentifier.get(partitionPath).getBucket(key, indexKeyFields);
+ if (node.getFileIdPfx() != null && !node.getFileIdPfx().isEmpty()) {
+ /**
+ * Dynamic Bucket Index doesn't need the instant time of the latest file group.
+ * We add suffix 0 here to the file uuid, following the naming convention.
+ */
+ return new HoodieRecordLocation(null, FSUtils.createNewFileId(node.getFileIdPfx(), 0));
+ }
+
+ LOG.error("Consistent hashing node has no file group, partition: " + partitionPath + ", meta: "
+ + partitionToIdentifier.get(partitionPath).getMetadata().getFilename() + ", record_key: " + key.toString());
+ throw new HoodieIndexException("Failed to getBucket as hashing node has no file group");
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, create a new one (also persist it into storage)
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata
+ */
+ public HoodieConsistentHashingMetadata loadOrCreateMetadata(HoodieTable table, String partition) {
+ int retry = 3;
+ // TODO maybe use ConsistencyGuard to do the retry thing
+ // retry to allow concurrent creation of metadata (only one attempt can succeed)
+ while (retry-- > 0) {
+ HoodieConsistentHashingMetadata metadata = loadMetadata(table, partition);
+ if (metadata == null) {
+ metadata = new HoodieConsistentHashingMetadata(partition, numBuckets);
+ if (saveMetadata(table, metadata, false)) {
+ return metadata;
+ }
+ } else {
+ return metadata;
+ }
+ }
+ throw new HoodieIndexException("Failed to load or create metadata, partition: " + partition);
+ }
+
+ /**
+ * Load hashing metadata of the given partition, if it is not existed, return null
+ *
+ * @param table hoodie table
+ * @param partition table partition
+ * @return Consistent hashing metadata or null if it does not exist
+ */
+ public static HoodieConsistentHashingMetadata loadMetadata(HoodieTable table, String partition) {
+ Path metadataPath = FSUtils.getPartitionPath(table.getMetaClient().getHashingMetadataPath(), partition);
+
+ try {
+ if (!table.getMetaClient().getFs().exists(metadataPath)) {
+ return null;
+ }
+ FileStatus[] metaFiles = table.getMetaClient().getFs().listStatus(metadataPath);
+ HoodieTimeline completedCommits = table.getMetaClient().getActiveTimeline().getCommitTimeline().filterCompletedInstants();
+ Predicate<FileStatus> metaFilePredicate = fileStatus -> {
+ String filename = fileStatus.getPath().getName();
+ return filename.contains(HoodieConsistentHashingMetadata.HASHING_METADATA_FILE_SUFFIX)
+ && (completedCommits.containsInstant(HoodieConsistentHashingMetadata.getTimestampFromFile(filename))
+ || HoodieConsistentHashingMetadata.getTimestampFromFile(filename).equals(HoodieTimeline.INIT_INSTANT_TS));
+ };
+
+ FileStatus metaFile = Arrays.stream(metaFiles).filter(metaFilePredicate)
+ .max(Comparator.comparing(a -> a.getPath().getName())).orElse(null);
+
+ if (metaFile != null) {
Review comment:
General rule of thumb is to return as early as possible so that it's easier to comprehend control-flow while going top-to-bottom w/o the need to rewind back to understand it. As such. please invert the conditional
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bucket/HoodieSimpleBucketIndex.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.util.collection.Pair;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.index.HoodieIndexUtils;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Simple bucket index implementation, with fixed bucket number.
+ */
+public class HoodieSimpleBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSimpleBucketIndex.class);
+
+ /**
+ * partitionPath -> bucketId -> fileInfo
+ */
+ Map<String, Map<Integer, Pair<String, String>>> partitionPathFileIDList;
Review comment:
Why storing `Pair<String, String>` instead of `HoodieRecordLocation`?
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
Review comment:
Why overallocating?
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/model/ConsistentHashingNode.java
##########
@@ -0,0 +1,95 @@
+/*
+ * 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.common.model;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * Used in consistent hashing index, representing nodes in the consistent hash ring.
+ * Record the end hash range value and its corresponding file group id.
+ */
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ConsistentHashingNode implements Serializable {
+
+ private int value;
+ private String fileIdPfx;
+
+ public ConsistentHashingNode() {
+ }
+
+ public ConsistentHashingNode(int value, String fileIdPfx) {
+ this.value = value;
+ this.fileIdPfx = fileIdPfx;
+ }
+
+ public static String toJsonString(List<ConsistentHashingNode> nodes) throws IOException {
+ return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(nodes);
+ }
+
+ public static List<ConsistentHashingNode> fromJsonString(String json) throws Exception {
+ if (json == null || json.isEmpty()) {
+ return Collections.emptyList();
+ }
+
+ ConsistentHashingNode[] nodes = getObjectMapper().readValue(json, ConsistentHashingNode[].class);
+ return Arrays.asList(nodes);
+ }
+
+ protected static ObjectMapper getObjectMapper() {
+ ObjectMapper mapper = new ObjectMapper();
Review comment:
This isn't a cheap object to throw around and churning it like that chips away its ability to cache encoders.
Let's instead init this as a static object.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] YuweiXiao commented on a change in pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
YuweiXiao commented on a change in pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#discussion_r816414250
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bucket/HoodieSparkConsistentBucketIndex.java
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.index.bucket;
+
+import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.common.data.HoodieData;
+import org.apache.hudi.common.engine.HoodieEngineContext;
+import org.apache.hudi.common.fs.FSUtils;
+import org.apache.hudi.common.fs.HoodieWrapperFileSystem;
+import org.apache.hudi.common.model.ConsistentHashingNode;
+import org.apache.hudi.common.model.HoodieConsistentHashingMetadata;
+import org.apache.hudi.common.model.HoodieKey;
+import org.apache.hudi.common.model.HoodieRecordLocation;
+import org.apache.hudi.common.table.timeline.HoodieTimeline;
+import org.apache.hudi.common.util.FileIOUtils;
+import org.apache.hudi.config.HoodieWriteConfig;
+import org.apache.hudi.exception.HoodieIOException;
+import org.apache.hudi.exception.HoodieIndexException;
+import org.apache.hudi.table.HoodieTable;
+
+import org.apache.hadoop.fs.FSDataOutputStream;
+import org.apache.hadoop.fs.FileStatus;
+import org.apache.hadoop.fs.Path;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Predicate;
+
+/**
+ * Consistent hashing bucket index implementation, with auto-adjust bucket number.
+ * NOTE: bucket resizing is triggered by clustering.
+ */
+public class HoodieSparkConsistentBucketIndex extends HoodieBucketIndex {
+
+ private static final Logger LOG = LogManager.getLogger(HoodieSparkConsistentBucketIndex.class);
+
+ private Map<String, ConsistentBucketIdentifier> partitionToIdentifier;
+
+ public HoodieSparkConsistentBucketIndex(HoodieWriteConfig config) {
+ super(config);
+ }
+
+ @Override
+ public HoodieData<WriteStatus> updateLocation(HoodieData<WriteStatus> writeStatuses, HoodieEngineContext context, HoodieTable hoodieTable) throws HoodieIndexException {
+ return writeStatuses;
+ }
+
+ /**
+ * Do nothing.
+ * A failed write may create a hashing metadata for a partition. In this case, we still do nothing when rolling back
+ * the failed write. Because the hashing metadata created by a write must have 00000000000000 timestamp and can be viewed
+ * as the initialization of a partition rather than as a part of the failed write.
+ * @param instantTime
+ * @return
+ */
+ @Override
+ public boolean rollbackCommit(String instantTime) {
+ return true;
+ }
+
+ /**
+ * Initialize bucket metadata for each partition
+ * @param table
+ * @param partitions partitions that need to be initialized
+ */
+ @Override
+ protected void initialize(HoodieTable table, List<String> partitions) {
+ partitionToIdentifier = new HashMap(partitions.size() + partitions.size() / 3);
Review comment:
The hash map is going to have partition.size() elements, and will do resizing if it reaches the load factor value (which is 0.75 by default). Over-allocating could avoid the resizing costs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot removed a comment on pull request #4480: [HUDI-3123] consistent hashing index: basic write path (upsert/insert)
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4480:
URL: https://github.com/apache/hudi/pull/4480#issuecomment-1056971715
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c4a2ace5e28fafb29394a1448e1a6c2a0645dda9",
"triggerType" : "PUSH"
}, {
"hash" : "107569356716649b14ba96674ee9559989906f2b",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4825",
"triggerID" : "107569356716649b14ba96674ee9559989906f2b",
"triggerType" : "PUSH"
}, {
"hash" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4827",
"triggerID" : "b8335b109c31a3defc5a93d0e08bcb77f5567192",
"triggerType" : "PUSH"
}, {
"hash" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4831",
"triggerID" : "874be971351618f3f7024eb7836428f6d10d2d7c",
"triggerType" : "PUSH"
}, {
"hash" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5083",
"triggerID" : "4314dccc4029df3e638d974e4d380dec73bbad31",
"triggerType" : "PUSH"
}, {
"hash" : "56a911718e615762ca5718e79741f8a242355170",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5799",
"triggerID" : "56a911718e615762ca5718e79741f8a242355170",
"triggerType" : "PUSH"
}, {
"hash" : "754931ba448157b905feb75c34913919d215e5ab",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448",
"triggerID" : "754931ba448157b905feb75c34913919d215e5ab",
"triggerType" : "PUSH"
}, {
"hash" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9e11c164c758d0da2e0c08c0ef849be5030f5753",
"triggerType" : "PUSH"
}, {
"hash" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474",
"triggerID" : "a1416b2efe97803f7dcc3e8a5682369ba18e63ad",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c4a2ace5e28fafb29394a1448e1a6c2a0645dda9 UNKNOWN
* 754931ba448157b905feb75c34913919d215e5ab Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6448)
* 9e11c164c758d0da2e0c08c0ef849be5030f5753 UNKNOWN
* a1416b2efe97803f7dcc3e8a5682369ba18e63ad Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6474)
<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