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/20 06:39:00 UTC
[GitHub] [hudi] scxwhite opened a new pull request #4400: [HUDI-3069] compact improve
scxwhite opened a new pull request #4400:
URL: https://github.com/apache/hudi/pull/4400
Brief change log
- compact improve
I found that when the compact plan is generated, the delta log files under each filegroup are arranged in the natural order of instant time. in the majority of cases,We can think that the latest data is in the latest delta log file, so we sort it from large to small according to the instance time, which can largely avoid rewriting the data in the compact process, and then optimize the compact time.
In addition, when reading the delta log file, we compare the data in the external spillablemap with the delta log data. If oldrecord is selected, there is no need to rewrite the data in the external spillablemap. Rewriting data will waste a lot of resources when data is spill to disk
This pull request is already covered by existing tests, such as *(please describe tests)*.
Committer checklist
- [*] Has a corresponding [JIRA](https://issues.apache.org/jira/browse/HUDI-3069) 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997674330
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
<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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1042516540
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 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] vinothchandar commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
vinothchandar commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r772751429
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
I think you are assuming the later writes in the log always overwrites the earlier ones? this is not true always.
##########
File path: hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieMergedLogRecordScanner.java
##########
@@ -142,9 +142,11 @@ protected void processNextRecord(HoodieRecord<? extends HoodieRecordPayload> hoo
HoodieRecord<? extends HoodieRecordPayload> oldRecord = records.get(key);
HoodieRecordPayload oldValue = oldRecord.getData();
HoodieRecordPayload combinedValue = hoodieRecord.getData().preCombine(oldValue);
- boolean choosePrev = combinedValue.equals(oldValue);
- HoodieOperation operation = choosePrev ? oldRecord.getOperation() : hoodieRecord.getOperation();
- records.put(key, new HoodieRecord<>(new HoodieKey(key, hoodieRecord.getPartitionPath()), combinedValue, operation));
+ // If combinedValue is oldValue, no need rePut oldRecord
+ if (!combinedValue.equals(oldValue)) {
Review comment:
This feels like a valid optimization.
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056398637
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
}, {
"hash" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456)
* b7f7a4ecf098943d90395dcbf1916ca86f663e95 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056403518
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
}, {
"hash" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* d67b33696581e91edeec1edb234f02313f9b8bd0 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456)
* b7f7a4ecf098943d90395dcbf1916ca86f663e95 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056384046
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1042517801
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
<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] scxwhite closed pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite closed pull request #4400:
URL: https://github.com/apache/hudi/pull/4400
--
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] scxwhite commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r772869290
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
> Have a clarification on the first fix. Could you add some UTs for this?
OK, I'll try to add some UTs
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1041109494
@yihua : Can you follow up on the review please.
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056388926
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456)
<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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056398637
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
}, {
"hash" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b7f7a4ecf098943d90395dcbf1916ca86f663e95",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456)
* b7f7a4ecf098943d90395dcbf1916ca86f663e95 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056388926
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6456)
<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] scxwhite commented on pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056389257
I found that after modifying the reading order of the delta log, HoodieRecordPayload#preCombine may have some problems when compacting (when the orderingVal of the two data is the same, the latest submitted data will not be selected). Later I will submit a new pr separately to fix this issue.
So this pr just optimizes the code。
--
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] scxwhite commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r785259770
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
In addition, I changed the reading order of deltalog to avoid data rewriting to the greatest extent. Houdierecordpayload#precombine will still execute and select the correct data.
--
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] scxwhite commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r785259224
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
> I think you are assuming the later writes in the log always overwrites the earlier ones? this is not true always.
In the compact plan generation phase, I just changed the order of reading delta log files. In the internal production environment, I have used this method for a month, and no data exceptions have occurred(cluster、clean、compact all inline). Now, I don't know how I should test this place. Can you give me some suggestions
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1042516540
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056384046
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
}, {
"hash" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "d67b33696581e91edeec1edb234f02313f9b8bd0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
* d67b33696581e91edeec1edb234f02313f9b8bd0 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] scxwhite commented on pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1056404213
Very sorry, my fault, there was a problem with the merge. I will split it into two PRs and resubmit.
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997641701
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
<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] scxwhite commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r785259289
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
> I think you are assuming the later writes in the log always overwrites the earlier ones? this is not true always.
In the compact plan generation phase, I just changed the order of reading delta log files. In the internal production environment, I have used this method for a month, and no data exceptions have occurred. Now, I don't know how I should test this place. Can you give me some suggestions
--
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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-1042517801
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
}, {
"hash" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077",
"triggerID" : "4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 4fa5ba742fc6e9d5c8be2ea079ac3a5a61ad94d1 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=6077)
<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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997674330
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
<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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997641701
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=4582)
<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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997640564
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 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 #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#issuecomment-997640564
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "2b453c1f110a29e530071f79fe16fe161d426456",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2b453c1f110a29e530071f79fe16fe161d426456",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b453c1f110a29e530071f79fe16fe161d426456 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] scxwhite commented on a change in pull request #4400: [HUDI-3069] compact improve
Posted by GitBox <gi...@apache.org>.
scxwhite commented on a change in pull request #4400:
URL: https://github.com/apache/hudi/pull/4400#discussion_r772868883
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java
##########
@@ -264,8 +264,11 @@ HoodieCompactionPlan generateCompactionPlan(
.getLatestFileSlices(partitionPath)
.filter(slice -> !fgIdsInPendingCompactionAndClustering.contains(slice.getFileGroupId()))
.map(s -> {
+ // We can think that the latest data is in the latest delta log file, so we sort it from large
Review comment:
You're right, but in most cases, the new data is often in the latest delta log, so we sort it from large to small according to the instance time. The program will avoid updating the data in the externalspillablemap to save compact time. What do you think
--
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