Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/15370#discussion_r82142674
--- Diff:
core/src/main/scala/org/apache/spark/rdd/ReliableCheckpointRDD.scala ---
@@ -72,7 +72,8 @@ private[spark] class ReliableCheckpointRDD[T: ClassTag](
.sortBy(_.toString)
// Fail fast if input files are invalid
inputFiles.zipWithIndex.foreach { case (path, i) =>
- if
(!path.toString.endsWith(ReliableCheckpointRDD.checkpointFileName(i))) {
+ if (path.getName != ReliableCheckpointRDD.checkpointFileName(i) &
--- End diff --
You may be right that you can assume this code won't encounter files with
older shorter split numbers. But it seems easier to just look for a file name
ending in "part-[0-9]+" here rather than special case an "old format"
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]