You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "xuzifu666 (via GitHub)" <gi...@apache.org> on 2024/01/23 09:02:32 UTC
[PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
xuzifu666 opened a new pull request, #10554:
URL: https://github.com/apache/hudi/pull/10554
### Change Logs
https://github.com/apache/hudi/pull/9866 aim to judge number of task in query job,but is not accurate to get number of tasks,need add a sparkListener to check task numbers exactly
### Impact
none
### Risk level (write none, low medium or high below)
none
### 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
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1465887278
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2174,8 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ val stageClassName = classOf[HoodieSparkEngineContext].getSimpleName
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = stageClassName))
Review Comment:
@bvaradar OK,had add a counter to assert called atleast once. PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1909439147
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
}, {
"hash" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144)
* 58eaae52e37c5be3354346cab9a4f22769ff8129 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1465887278
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2174,8 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ val stageClassName = classOf[HoodieSparkEngineContext].getSimpleName
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = stageClassName))
Review Comment:
@bvaradar OK,had add a counter to assert called atleast once. PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1908112403
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1464195977
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2172,7 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = "collect at HoodieSparkEngineContext.java"))
Review Comment:
Thanks,good advice. I would change it @bvaradar
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905744858
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116)
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905658229
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1464799184
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2172,7 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = "collect at HoodieSparkEngineContext.java"))
Review Comment:
Hi,I had try dependent to the class,in this case all query stage would relate to HoodieSparkEngineContext class,so change it with this class to check @bvaradar PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1906051116
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905643834
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "bvaradar (via GitHub)" <gi...@apache.org>.
bvaradar merged PR #10554:
URL: https://github.com/apache/hudi/pull/10554
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905966143
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116)
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1908022512
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117)
* c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "bvaradar (via GitHub)" <gi...@apache.org>.
bvaradar commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1465256370
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2174,8 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ val stageClassName = classOf[HoodieSparkEngineContext].getSimpleName
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = stageClassName))
Review Comment:
@xuzifu666 Can you have StageParallelismListener update a shared counter (static) and assert here that the count increased by atleast one to ensure StageParallelismListener was indeed called as expected ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1464196931
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2081,6 +2082,16 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
})
}
+ // add a listener for stages for parallelism checking with stage name
+ class StageParallelismListener(var stageName: String) extends SparkListener {
+ override def onStageSubmitted(stageSubmitted: SparkListenerStageSubmitted): Unit = {
+ if (stageSubmitted.stageInfo.name.contains(stageName)) {
+ assertResult(1)(stageSubmitted.stageInfo.numTasks)
Review Comment:
This scenario just need the count equal to 1,otherwise affirm partition pruning is not accurate. @bvaradar
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905758733
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116)
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1909446353
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
}, {
"hash" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22158",
"triggerID" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144)
* 58eaae52e37c5be3354346cab9a4f22769ff8129 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22158)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1909674651
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
}, {
"hash" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22158",
"triggerID" : "58eaae52e37c5be3354346cab9a4f22769ff8129",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 58eaae52e37c5be3354346cab9a4f22769ff8129 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22158)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1467343919
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2174,8 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ val stageClassName = classOf[HoodieSparkEngineContext].getSimpleName
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = stageClassName))
Review Comment:
@bvaradar Had add assert to make sure be called atleast once,PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "bvaradar (via GitHub)" <gi...@apache.org>.
bvaradar commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1463747359
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2160,6 +2172,7 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
|union
|select '1' as id, 'aa' as name, 123 as dt, '2023-10-12' as `day`, 12 as `hour`
|""".stripMargin)
+ spark.sparkContext.addSparkListener(new StageParallelismListener(stageName = "collect at HoodieSparkEngineContext.java"))
Review Comment:
@xuzifu666 : Relying of class name string here would be highly fragile here. Can you make this explicit dependent to the class and also validate if the callback is indeed being called.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "bvaradar (via GitHub)" <gi...@apache.org>.
bvaradar commented on code in PR #10554:
URL: https://github.com/apache/hudi/pull/10554#discussion_r1463747974
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala:
##########
@@ -2081,6 +2082,16 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
})
}
+ // add a listener for stages for parallelism checking with stage name
+ class StageParallelismListener(var stageName: String) extends SparkListener {
+ override def onStageSubmitted(stageSubmitted: SparkListenerStageSubmitted): Unit = {
+ if (stageSubmitted.stageInfo.name.contains(stageName)) {
+ assertResult(1)(stageSubmitted.stageInfo.numTasks)
Review Comment:
Should the count be configurable ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1905730546
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1908034214
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "e6934024c687f7deb7942e0edb833818aa96b843",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e6934024c687f7deb7942e0edb833818aa96b843",
"triggerType" : "PUSH"
}, {
"hash" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22116",
"triggerID" : "9f9b9648acd52d3bd19d8c3e1ddd3a801c3593fc",
"triggerType" : "PUSH"
}, {
"hash" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117",
"triggerID" : "6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c",
"triggerType" : "PUSH"
}, {
"hash" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144",
"triggerID" : "c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e6934024c687f7deb7942e0edb833818aa96b843 UNKNOWN
* 6af5f8ec3a1fb5459e4a0eb65f9ed152b4bbab2c Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22117)
* c3c58fa1feb8bf451e9d0d6cf7e074fe08010dbe Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22144)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [MINOR] Fix UT error in HUDI-6941 with stage task numbers [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on PR #10554:
URL: https://github.com/apache/hudi/pull/10554#issuecomment-1912921553
@danny0405 All had addressed,could you give the final review?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org