You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "manuzhang (via GitHub)" <gi...@apache.org> on 2024/01/09 04:07:33 UTC
[PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
manuzhang opened a new pull request, #9445:
URL: https://github.com/apache/iceberg/pull/9445
This fixes #8855
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra merged PR #9445:
URL: https://github.com/apache/iceberg/pull/9445
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#issuecomment-1882502379
@ajantha-bhat please help 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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#discussion_r1453220284
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestSparkReaderDeletes.java:
##########
@@ -126,6 +126,7 @@ public static void startMetastoreAndSpark() {
SparkSession.builder()
.master("local[2]")
.config("spark.appStateStore.asyncTracking.enable", false)
+ .config("spark.ui.liveUpdate.period", 0)
Review Comment:
We don't want to disable update but async update. Please check the logic below.
https://github.com/apache/spark/blob/v3.5.0/sql/core/src/main/scala/org/apache/spark/sql/execution/ui/SQLAppStatusListener.scala#L457
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#issuecomment-1893429962
> @ajantha-bhat please help review
Can you please elaborate how `spark.ui.liveUpdate.period` is linked to `lastExecutedMetricValue`. Are we suspecting that some other query is ran and our metric is lost? (sorry I don't work closely with Spark. So, I am not sure about what these configs do).
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#discussion_r1453194254
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestSparkReaderDeletes.java:
##########
@@ -126,6 +126,7 @@ public static void startMetastoreAndSpark() {
SparkSession.builder()
.master("local[2]")
.config("spark.appStateStore.asyncTracking.enable", false)
+ .config("spark.ui.liveUpdate.period", 0)
Review Comment:
I think -1 is the value for disabling?
https://spark.apache.org/docs/latest/configuration.html
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#discussion_r1454480833
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestSparkReaderDeletes.java:
##########
@@ -126,6 +126,7 @@ public static void startMetastoreAndSpark() {
SparkSession.builder()
.master("local[2]")
.config("spark.appStateStore.asyncTracking.enable", false)
+ .config("spark.ui.liveUpdate.period", 0)
Review Comment:
There's a chance that our metric is not updated yet when we check its existence if `spark.ui.liveUpdate.period > 0`
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on code in PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#discussion_r1454609460
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestSparkReaderDeletes.java:
##########
@@ -126,6 +126,7 @@ public static void startMetastoreAndSpark() {
SparkSession.builder()
.master("local[2]")
.config("spark.appStateStore.asyncTracking.enable", false)
+ .config("spark.ui.liveUpdate.period", 0)
Review Comment:
I see, you are configuring it to zero because you want it to update always. Not just asynchronously (which can cause flakiness when we check within the update interval).
Got it. Adding it in PR description can help for reviewers too.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#discussion_r1445607629
##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/TestSparkReaderDeletes.java:
##########
@@ -126,6 +126,7 @@ public static void startMetastoreAndSpark() {
SparkSession.builder()
.master("local[2]")
.config("spark.appStateStore.asyncTracking.enable", false)
+ .config("spark.ui.liveUpdate.period", 0)
Review Comment:
This effectively disables async update.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#issuecomment-1895234940
@manuzhang Is this test still flaky? The logic around `SparkSQLExecutionHelper` has been updated in the meantime. If https://github.com/apache/iceberg/blob/7e9e02c0e3f1304be89d094b0eab238da46c34ab/spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/source/SparkSQLExecutionHelper.java#L44-L50 is the issue, then we could also add some polling with `Awaitility` to make this more robust
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#issuecomment-1895263171
@nastra yes. I think updating metrics synchronously will be more robust. Any reason not to do so?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Spark: Fix flaky TestSparkReaderDeletes tests due to metric not found [iceberg]
Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #9445:
URL: https://github.com/apache/iceberg/pull/9445#issuecomment-2367238607
This issue happened again recently https://github.com/apache/iceberg/actions/runs/10948554965/job/30399833980
```
TestSparkReaderDeletes > testMultipleEqualityDeleteSchemas() > format = orc, vectorized = false, planningMode = DISTRIBUTED FAILED
java.lang.AssertionError: [Metric values were not finalized]
Expecting actual not to be null
at org.apache.iceberg.spark.source.SparkSQLExecutionHelper.lastExecutedMetricValue(SparkSQLExecutionHelper.java:63)
at org.apache.iceberg.spark.source.TestSparkReaderDeletes.deleteCount(TestSparkReaderDeletes.java:205)
```
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org