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/07 01:54:24 UTC
[GitHub] [hudi] alexeykudinkin opened a new pull request #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
alexeykudinkin opened a new pull request #4234:
URL: https://github.com/apache/hudi/pull/4234
## *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
NOTE: This stacked on top of https://github.com/apache/hudi/pull/4106
This PR targets addressing performance traps found during [Perf Benchmarking of the Layout Optimization implementation](https://issues.apache.org/jira/browse/HUDI-2949)
## Brief change log
- Reducing small objects churn due to Scala/Java conversions by re-using `RowFactory`, passing `Object[]`
- Replaced `OverwriteAvroPayloadRecord` w/ `RewriteRecordPayload` to avoid unnecessary Avro ser/de loop
- Added PathCachingFileName to avoid fetching substrings every time file-name is fetched;
- Drastically reducing size of the ArrayDeque allocated by `ObjectSizeCalculator`
## Verify this pull request
This pull request is a trivial rework / code cleanup without any test coverage.
This pull request is already covered by existing tests, such as *(please describe tests)*.
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] 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] hudi-bot commented on pull request #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987496885
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab 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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993066341
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
* 1fa571cb29aa8933feca97787b1d716810a1414d 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006113075
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
* b20af432125673c827183b7c2e1e9ac2ff7089e2 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#discussion_r778545196
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/cluster/SparkExecuteClusteringCommitActionExecutor.java
##########
@@ -82,6 +82,7 @@ public SparkExecuteClusteringCommitActionExecutor(HoodieEngineContext context,
.performClustering(clusteringPlan, schema, instantTime);
JavaRDD<WriteStatus> writeStatusRDD = writeMetadata.getWriteStatuses();
JavaRDD<WriteStatus> statuses = updateIndex(writeStatusRDD, writeMetadata);
+ // TODO review, this pulls in all of the RDDs into driver's memory
Review comment:
Was leaving these TODOs for myself, accidentally committed, will clean up
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/sort/SpaceCurveSortingHelper.java
##########
@@ -205,48 +179,91 @@ public boolean hasNext() {
@Override
public Row next() {
Row row = rows.next();
- List<Long> longList = fieldMap.entrySet().stream().map(entry -> {
- int index = entry.getKey();
- StructField field = entry.getValue();
- DataType dataType = field.dataType();
- if (dataType instanceof LongType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getLong(index);
- } else if (dataType instanceof DoubleType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits(row.getDouble(index));
- } else if (dataType instanceof IntegerType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getInt(index);
- } else if (dataType instanceof FloatType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits((double) row.getFloat(index));
- } else if (dataType instanceof StringType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertStringToLong(row.getString(index));
- } else if (dataType instanceof DateType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDate(index).getTime();
- } else if (dataType instanceof TimestampType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getTimestamp(index).getTime();
- } else if (dataType instanceof ByteType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong(new byte[] {row.getByte(index)});
- } else if (dataType instanceof ShortType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getShort(index);
- } else if (dataType instanceof DecimalType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDecimal(index).longValue();
- } else if (dataType instanceof BooleanType) {
- boolean value = row.isNullAt(index) ? false : row.getBoolean(index);
- return value ? Long.MAX_VALUE : 0;
- } else if (dataType instanceof BinaryType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong((byte[]) row.get(index));
- }
- return null;
- }).filter(f -> f != null).collect(Collectors.toList());
+ long[] longs = fieldMap.entrySet().stream()
+ .mapToLong(entry -> {
+ int index = entry.getKey();
+ StructField field = entry.getValue();
+ return mapColumnValueToLong(row, index, field.dataType());
+ })
+ .toArray();
- byte[] hilbertValue = HilbertCurveUtils.indexBytes(
- hilbertCurve, longList.stream().mapToLong(l -> l).toArray(), 63);
- List<Object> values = new ArrayList<>();
- values.addAll(scala.collection.JavaConverters.bufferAsJavaListConverter(row.toSeq().toBuffer()).asJava());
- values.add(hilbertValue);
- return Row$.MODULE$.apply(JavaConversions.asScalaBuffer(values));
+ // Map N-dimensional coordinates into position on the Hilbert curve
+ byte[] hilbertCurvePosBytes = HilbertCurveUtils.indexBytes(hilbertCurve, longs, 63);
+ return appendToRow(row, hilbertCurvePosBytes);
}
};
- }).sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ })
+ .sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ }
+
+ private static Row appendToRow(Row row, Object value) {
+ // NOTE: This is an ugly hack to avoid array re-allocation --
+ // Spark's {@code Row#toSeq} returns array of Objects
+ Object[] currentValues = (Object[]) ((WrappedArray<Object>) row.toSeq()).array();
+ return RowFactory.create(CollectionUtils.append(currentValues, value));
+ }
+
+ @Nonnull
+ private static byte[] mapColumnValueTo8Bytes(Row row, int index, DataType dataType) {
Review comment:
Agreed. This actually should have been in the previous change (the one this was stacked on top) let me see why it didn't land after rebase.
##########
File path: hudi-common/src/main/java/org/apache/hudi/hadoop/PathCachingFileName.java
##########
@@ -0,0 +1,48 @@
+/*
+ * 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.hadoop;
+
+import org.apache.hadoop.fs.Path;
+
+import java.net.URI;
+
+/**
+ * NOTE: This class is thread-safe
+ */
+public class PathCachingFileName extends Path {
+
+ // NOTE: volatile keyword is redundant here and put mostly for reader notice, since all
Review comment:
But its goal is the opposite: volatile isn't required here and i added a comment for those who might decide that it isn't needed, removing it (while the purpose of volatile here is to hint to the reader that the read/write of the ref doesn't need to be synchronized 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] hudi-bot commented on pull request #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987497932
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987499072
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993067638
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006111092
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#discussion_r779161580
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/execution/bulkinsert/RDDSpatialCurveOptimizationSortPartitioner.java
##########
@@ -62,16 +61,12 @@ public RDDSpatialCurveOptimizationSortPartitioner(HoodieSparkEngineContext spark
@Override
public JavaRDD<HoodieRecord<T>> repartitionRecords(JavaRDD<HoodieRecord<T>> records, int outputSparkPartitions) {
- String payloadClass = config.getPayloadClass();
- // do sort
JavaRDD<GenericRecord> preparedRecord = prepareGenericRecord(records, outputSparkPartitions, serializableSchema.get());
return preparedRecord.map(record -> {
String key = record.get(HoodieRecord.RECORD_KEY_METADATA_FIELD).toString();
String partition = record.get(HoodieRecord.PARTITION_PATH_METADATA_FIELD).toString();
HoodieKey hoodieKey = new HoodieKey(key, partition);
- HoodieRecordPayload avroPayload = ReflectionUtils.loadPayload(payloadClass,
- new Object[] {Option.of(record)}, Option.class);
- HoodieRecord hoodieRecord = new HoodieRecord(hoodieKey, avroPayload);
+ HoodieRecord hoodieRecord = new HoodieRecord(hoodieKey, new RewriteAvroPayload(record));
Review comment:
Correct. This is done by `MultipleSparkJobExecutionStrategy.readRecordsForGroup` method prior to calling into Partitioner
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/sort/SpaceCurveSortingHelper.java
##########
@@ -205,48 +179,91 @@ public boolean hasNext() {
@Override
public Row next() {
Row row = rows.next();
- List<Long> longList = fieldMap.entrySet().stream().map(entry -> {
- int index = entry.getKey();
- StructField field = entry.getValue();
- DataType dataType = field.dataType();
- if (dataType instanceof LongType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getLong(index);
- } else if (dataType instanceof DoubleType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits(row.getDouble(index));
- } else if (dataType instanceof IntegerType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getInt(index);
- } else if (dataType instanceof FloatType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits((double) row.getFloat(index));
- } else if (dataType instanceof StringType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertStringToLong(row.getString(index));
- } else if (dataType instanceof DateType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDate(index).getTime();
- } else if (dataType instanceof TimestampType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getTimestamp(index).getTime();
- } else if (dataType instanceof ByteType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong(new byte[] {row.getByte(index)});
- } else if (dataType instanceof ShortType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getShort(index);
- } else if (dataType instanceof DecimalType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDecimal(index).longValue();
- } else if (dataType instanceof BooleanType) {
- boolean value = row.isNullAt(index) ? false : row.getBoolean(index);
- return value ? Long.MAX_VALUE : 0;
- } else if (dataType instanceof BinaryType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong((byte[]) row.get(index));
- }
- return null;
- }).filter(f -> f != null).collect(Collectors.toList());
+ long[] longs = fieldMap.entrySet().stream()
+ .mapToLong(entry -> {
+ int index = entry.getKey();
+ StructField field = entry.getValue();
+ return mapColumnValueToLong(row, index, field.dataType());
+ })
+ .toArray();
- byte[] hilbertValue = HilbertCurveUtils.indexBytes(
- hilbertCurve, longList.stream().mapToLong(l -> l).toArray(), 63);
- List<Object> values = new ArrayList<>();
- values.addAll(scala.collection.JavaConverters.bufferAsJavaListConverter(row.toSeq().toBuffer()).asJava());
- values.add(hilbertValue);
- return Row$.MODULE$.apply(JavaConversions.asScalaBuffer(values));
+ // Map N-dimensional coordinates into position on the Hilbert curve
+ byte[] hilbertCurvePosBytes = HilbertCurveUtils.indexBytes(hilbertCurve, longs, 63);
+ return appendToRow(row, hilbertCurvePosBytes);
}
};
- }).sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ })
+ .sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ }
+
+ private static Row appendToRow(Row row, Object value) {
+ // NOTE: This is an ugly hack to avoid array re-allocation --
+ // Spark's {@code Row#toSeq} returns array of Objects
+ Object[] currentValues = (Object[]) ((WrappedArray<Object>) row.toSeq()).array();
+ return RowFactory.create(CollectionUtils.append(currentValues, value));
+ }
+
+ @Nonnull
+ private static byte[] mapColumnValueTo8Bytes(Row row, int index, DataType dataType) {
Review comment:
Yeah, this commit was incorrectly placed into this branch instead of the one it was stacked on.
Summary of the changes here:
1. This large conditional was extracted to standalone method (no changes w/in conditional itself)
2. In the surrounding context following things change
2.a Added `appendToRow` method to avoid double conversion from Scala > Java > Scala
2.b Use primitive Stream methods (`mapToLong`) to avoid unnecessary boxing
--
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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993067638
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998350190
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998349210
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
* b4eb85f627dd27824ffc2485eac5841837c881dd 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007699087
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990",
"triggerID" : "1007698786",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006160112
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998350190
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006115064
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006109084
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006115064
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007699087
--
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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993069017
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993066341
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
* 1fa571cb29aa8933feca97787b1d716810a1414d 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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987499072
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
<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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998349210
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
* b4eb85f627dd27824ffc2485eac5841837c881dd 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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987497932
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068)
<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 pull request #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998240220
@vinothchandar yes, just need to rebase on master since this one was stacked
--
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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998373689
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
<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 pull request #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007698786
@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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006111092
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-998373689
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
<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 pull request #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007698786
@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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006109084
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006160112
--
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 merged pull request #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
vinothchandar merged pull request #4234:
URL: https://github.com/apache/hudi/pull/4234
--
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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-993069017
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1fa571cb29aa8933feca97787b1d716810a1414d Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246)
<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] vinothchandar commented on pull request #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-997604547
@alexeykudinkin Is this ready to be reviewed?
--
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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007699087
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990",
"triggerID" : "1007698786",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1007738996
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990",
"triggerID" : "1007698786",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917) Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4990)
<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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006113075
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b4eb85f627dd27824ffc2485eac5841837c881dd Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612)
* 24a23036f633ef6f6b717d5e4ba4319ac30dbe71 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914)
* b20af432125673c827183b7c2e1e9ac2ff7089e2 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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
alexeykudinkin commented on a change in pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#discussion_r778543602
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/util/ObjectSizeCalculator.java
##########
@@ -90,7 +90,7 @@ public static long getObjectSize(Object obj) throws UnsupportedOperationExceptio
private final Map<Class<?>, ClassSizeInfo> classSizeInfos = new IdentityHashMap<>();
private final Set<Object> alreadyVisited = Collections.newSetFromMap(new IdentityHashMap<>());
- private final Deque<Object> pending = new ArrayDeque<>(16 * 1024);
+ private final Deque<Object> pending = new ArrayDeque<>(64);
Review comment:
Reducing upfront allocation w/ every Calculator object from 128kb to 512b
--
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 #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-1006160112
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4068",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
}, {
"hash" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4246",
"triggerID" : "1fa571cb29aa8933feca97787b1d716810a1414d",
"triggerType" : "PUSH"
}, {
"hash" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4612",
"triggerID" : "b4eb85f627dd27824ffc2485eac5841837c881dd",
"triggerType" : "PUSH"
}, {
"hash" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4914",
"triggerID" : "24a23036f633ef6f6b717d5e4ba4319ac30dbe71",
"triggerType" : "PUSH"
}, {
"hash" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917",
"triggerID" : "b20af432125673c827183b7c2e1e9ac2ff7089e2",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b20af432125673c827183b7c2e1e9ac2ff7089e2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4917)
<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] vinothchandar commented on a change in pull request #4234: [HUDI-2950] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on a change in pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#discussion_r775959711
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/util/ObjectSizeCalculator.java
##########
@@ -90,7 +90,7 @@ public static long getObjectSize(Object obj) throws UnsupportedOperationExceptio
private final Map<Class<?>, ClassSizeInfo> classSizeInfos = new IdentityHashMap<>();
private final Set<Object> alreadyVisited = Collections.newSetFromMap(new IdentityHashMap<>());
- private final Deque<Object> pending = new ArrayDeque<>(16 * 1024);
+ private final Deque<Object> pending = new ArrayDeque<>(64);
Review comment:
Can you explain this change?
##########
File path: hudi-common/src/main/java/org/apache/hudi/hadoop/PathCachingFileName.java
##########
@@ -0,0 +1,48 @@
+/*
+ * 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.hadoop;
+
+import org.apache.hadoop.fs.Path;
+
+import java.net.URI;
+
+/**
+ * NOTE: This class is thread-safe
+ */
+public class PathCachingFileName extends Path {
+
+ // NOTE: volatile keyword is redundant here and put mostly for reader notice, since all
Review comment:
remove this comment? Don't want to overload the code with these. I'd expect people to understand `volatile`
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/sort/SpaceCurveSortingHelper.java
##########
@@ -205,48 +179,91 @@ public boolean hasNext() {
@Override
public Row next() {
Row row = rows.next();
- List<Long> longList = fieldMap.entrySet().stream().map(entry -> {
- int index = entry.getKey();
- StructField field = entry.getValue();
- DataType dataType = field.dataType();
- if (dataType instanceof LongType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getLong(index);
- } else if (dataType instanceof DoubleType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits(row.getDouble(index));
- } else if (dataType instanceof IntegerType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getInt(index);
- } else if (dataType instanceof FloatType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : Double.doubleToLongBits((double) row.getFloat(index));
- } else if (dataType instanceof StringType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertStringToLong(row.getString(index));
- } else if (dataType instanceof DateType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDate(index).getTime();
- } else if (dataType instanceof TimestampType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getTimestamp(index).getTime();
- } else if (dataType instanceof ByteType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong(new byte[] {row.getByte(index)});
- } else if (dataType instanceof ShortType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : (long)row.getShort(index);
- } else if (dataType instanceof DecimalType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : row.getDecimal(index).longValue();
- } else if (dataType instanceof BooleanType) {
- boolean value = row.isNullAt(index) ? false : row.getBoolean(index);
- return value ? Long.MAX_VALUE : 0;
- } else if (dataType instanceof BinaryType) {
- return row.isNullAt(index) ? Long.MAX_VALUE : BinaryUtil.convertBytesToLong((byte[]) row.get(index));
- }
- return null;
- }).filter(f -> f != null).collect(Collectors.toList());
+ long[] longs = fieldMap.entrySet().stream()
+ .mapToLong(entry -> {
+ int index = entry.getKey();
+ StructField field = entry.getValue();
+ return mapColumnValueToLong(row, index, field.dataType());
+ })
+ .toArray();
- byte[] hilbertValue = HilbertCurveUtils.indexBytes(
- hilbertCurve, longList.stream().mapToLong(l -> l).toArray(), 63);
- List<Object> values = new ArrayList<>();
- values.addAll(scala.collection.JavaConverters.bufferAsJavaListConverter(row.toSeq().toBuffer()).asJava());
- values.add(hilbertValue);
- return Row$.MODULE$.apply(JavaConversions.asScalaBuffer(values));
+ // Map N-dimensional coordinates into position on the Hilbert curve
+ byte[] hilbertCurvePosBytes = HilbertCurveUtils.indexBytes(hilbertCurve, longs, 63);
+ return appendToRow(row, hilbertCurvePosBytes);
}
};
- }).sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ })
+ .sortBy(f -> new ByteArraySorting((byte[]) f.get(fieldNum)), true, fileNum);
+ }
+
+ private static Row appendToRow(Row row, Object value) {
+ // NOTE: This is an ugly hack to avoid array re-allocation --
+ // Spark's {@code Row#toSeq} returns array of Objects
+ Object[] currentValues = (Object[]) ((WrappedArray<Object>) row.toSeq()).array();
+ return RowFactory.create(CollectionUtils.append(currentValues, value));
+ }
+
+ @Nonnull
+ private static byte[] mapColumnValueTo8Bytes(Row row, int index, DataType dataType) {
Review comment:
this is very hard to review. and pushes all the overhead to the reviewer. Can you comment on the PR to call out what has actually changed?
> please separate refactoring with the actual implementation of functionality
I'd also prefer if we did these restructuring/moving in a separate PR when possible. makes for an easier review.
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/cluster/SparkExecuteClusteringCommitActionExecutor.java
##########
@@ -82,6 +82,7 @@ public SparkExecuteClusteringCommitActionExecutor(HoodieEngineContext context,
.performClustering(clusteringPlan, schema, instantTime);
JavaRDD<WriteStatus> writeStatusRDD = writeMetadata.getWriteStatuses();
JavaRDD<WriteStatus> statuses = updateIndex(writeStatusRDD, writeMetadata);
+ // TODO review, this pulls in all of the RDDs into driver's memory
Review comment:
This only pulls the write stats, not the entire RDD. lets remove the comment.
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/execution/bulkinsert/RDDSpatialCurveOptimizationSortPartitioner.java
##########
@@ -62,16 +61,12 @@ public RDDSpatialCurveOptimizationSortPartitioner(HoodieSparkEngineContext spark
@Override
public JavaRDD<HoodieRecord<T>> repartitionRecords(JavaRDD<HoodieRecord<T>> records, int outputSparkPartitions) {
- String payloadClass = config.getPayloadClass();
- // do sort
JavaRDD<GenericRecord> preparedRecord = prepareGenericRecord(records, outputSparkPartitions, serializableSchema.get());
return preparedRecord.map(record -> {
String key = record.get(HoodieRecord.RECORD_KEY_METADATA_FIELD).toString();
String partition = record.get(HoodieRecord.PARTITION_PATH_METADATA_FIELD).toString();
HoodieKey hoodieKey = new HoodieKey(key, partition);
- HoodieRecordPayload avroPayload = ReflectionUtils.loadPayload(payloadClass,
- new Object[] {Option.of(record)}, Option.class);
- HoodieRecord hoodieRecord = new HoodieRecord(hoodieKey, avroPayload);
+ HoodieRecord hoodieRecord = new HoodieRecord(hoodieKey, new RewriteAvroPayload(record));
Review comment:
this is okay, as long as the new base and log files have been merged already in `records`. I think this is the case. Could you confirm again? the case for using the user-defined payload class for clustering, is when the clustering also implicitly compacts the base and log files.
##########
File path: hudi-common/src/main/java/org/apache/hudi/hadoop/PathCachingFileName.java
##########
@@ -0,0 +1,48 @@
+/*
+ * 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.hadoop;
+
+import org.apache.hadoop.fs.Path;
+
+import java.net.URI;
+
+/**
+ * NOTE: This class is thread-safe
+ */
+public class PathCachingFileName extends Path {
Review comment:
rename: FileNameCachingPath or NameCachedPath, ending with `Path`
--
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 #4234: [HUDI-2950][Stacked 4106] Addressing performance traps in Bulk Insert/Layout Optimization
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4234:
URL: https://github.com/apache/hudi/pull/4234#issuecomment-987496885
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "45b092771c86e8955133699742a1f9bb9cbc18ab",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 45b092771c86e8955133699742a1f9bb9cbc18ab 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