You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/11/28 23:06:34 UTC
[GitHub] [hudi] jonvex opened a new pull request, #7318: current state
jonvex opened a new pull request, #7318:
URL: https://github.com/apache/hudi/pull/7318
### Change Logs
_Describe context and summary for this change. Highlight if any code was copied._
### Impact
_Describe any public API or user-facing feature change or any performance impact._
### Risk level (write none, low medium or high below)
_If medium or high, explain what verification was done to mitigate the risks._
### Documentation Update
_Describe any necessary documentation update if there is any new feature, config, or user-facing change_
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1331581147
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328",
"triggerID" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c35c12695dbacbf6660776e8257927d1c527d6ca Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328)
<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 #7318: current state
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1329883235
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58 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] jonvex closed pull request #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
jonvex closed pull request #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
URL: https://github.com/apache/hudi/pull/7318
--
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] jonvex commented on pull request #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
jonvex commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1333914287
@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 #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1331430690
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328",
"triggerID" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290)
* c35c12695dbacbf6660776e8257927d1c527d6ca Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328)
<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 #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1334206708
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328",
"triggerID" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13384",
"triggerID" : "1333914287",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c35c12695dbacbf6660776e8257927d1c527d6ca Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328) Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13384)
<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 #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1334006161
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328",
"triggerID" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13384",
"triggerID" : "1333914287",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* c35c12695dbacbf6660776e8257927d1c527d6ca Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13328) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13384)
<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 #7318: [HUDI-5295] One meta sync failure should not prevent other meta sync from occurring
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1331423776
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
}, {
"hash" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c35c12695dbacbf6660776e8257927d1c527d6ca",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290)
* c35c12695dbacbf6660776e8257927d1c527d6ca 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] nsivabalan commented on a diff in pull request #7318: current state
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on code in PR #7318:
URL: https://github.com/apache/hudi/pull/7318#discussion_r1034150867
##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/MockHoodieHiveSyncTool1.java:
##########
@@ -0,0 +1,22 @@
+package org.apache.hudi.hive;
+
+import org.apache.hudi.sync.common.HoodieSyncTool;
+
+import org.apache.hadoop.conf.Configuration;
+
+import java.util.Properties;
+
+public class MockHoodieHiveSyncTool1 extends HoodieSyncTool {
+
+ public static boolean syncSuccess;
+
+ public MockHoodieHiveSyncTool1(Properties props, Configuration hadoopConf) {
Review Comment:
I did not mean to suggest mock this way. sorry.
I was meaning to suggest mock using mockito lib.
can you check TestCallbackHttpClient for examples.
--
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 a diff in pull request #7318: current state
Posted by GitBox <gi...@apache.org>.
nsivabalan commented on code in PR #7318:
URL: https://github.com/apache/hudi/pull/7318#discussion_r1034151030
##########
hudi-common/src/main/java/org/apache/hudi/common/util/CollectionUtils.java:
##########
@@ -269,4 +279,70 @@ private static Object checkElementNotNull(Object element, int index) {
return Objects.requireNonNull(element, "Element is null at index " + index);
}
+ public static <T> void forEachParallel(Collection<T> inputs, Consumer<T> function) {
+ forEachParallel(inputs, function, 4, 1000);
+ }
+
+ /**
+ * Executes forEach loops in parallel. The input function will run on all inputs even if exceptions are thrown during the execution of any individual input.
+ * Execution of inputs is not guaranteed to occur if the timeout is reached. Don't use this if your consumer function isn't thread safe
+ * */
+ public static <T> void forEachParallel(Collection<T> inputs, Consumer<T> function, int nThreads, long msTimeout) {
+ long timeoutTime = System.currentTimeMillis() + msTimeout;
+ ExecutorService executorService = Executors.newFixedThreadPool(nThreads);
+
+ //Queue up all consumer functions to run, they may start at any time
+ List<Future<Boolean>> futures = inputs.stream().map(t ->
+ executorService.submit(() -> {
+ function.accept(t);
+ return true;
+ })).collect(Collectors.toList());
+
+ //List of exceptions that consumer functions throw
+ List<Throwable> exceptions = new ArrayList<>();
Review Comment:
can we try to use completable future. might simplify lot of things
--
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 #7318: current state
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1329887597
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290)
<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 #7318: current state
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7318:
URL: https://github.com/apache/hudi/pull/7318#issuecomment-1329982128
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290",
"triggerID" : "7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7e55d94620cffb2b4a9a5e8d7e4036b3125eaa58 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13290)
<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