You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "asl3 (via GitHub)" <gi...@apache.org> on 2023/06/01 16:18:20 UTC
[GitHub] [spark] asl3 commented on a diff in pull request #41387: [SPARK-42299] Assign name to _LEGACY_ERROR_TEMP_2206
asl3 commented on code in PR #41387:
URL: https://github.com/apache/spark/pull/41387#discussion_r1213395143
##########
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala:
##########
@@ -899,6 +899,29 @@ class QueryExecutionErrorsSuite
)
}
}
+
+ test("CANNOT_FIND_BATCH: cannot find batchMetadataFile") {
+ withTempPath { p =>
+ withSQLConf(
+ "spark.sql.streaming.checkpointFileManagerClass" ->
+ classOf[FileSystemBasedCheckpointFileManager].getName,
+ "fs.file.impl" -> classOf[FakeFileSystemNeverExists].getName,
+ "fs.file.impl.disable.cache" -> "true"
+ ) {
+ val checkpointLocation = p.getAbsolutePath
+ val batchMetadataFileName = new Path(checkpointLocation, "0")
+ val metadataLog = new HDFSMetadataLog[String](spark, checkpointLocation)
+ val e = intercept[SparkFileNotFoundException] (metadataLog.get(0))
Review Comment:
seems that the error is not easy to reproduce using public API, marking as internal error
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org