gaborgsomogyi commented on a change in pull request #25654:
[SPARK-28912][STREAMING] Fixed MatchError in getCheckpointFiles()
URL: https://github.com/apache/spark/pull/25654#discussion_r321746775
##########
File path: streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala
##########
@@ -131,8 +131,8 @@ object Checkpoint extends Logging {
try {
val statuses = fs.listStatus(path)
if (statuses != null) {
- val paths = statuses.map(_.getPath)
- val filtered = paths.filter(p =>
REGEX.findFirstIn(p.toString).nonEmpty)
+ val paths = statuses.filterNot(_.isDirectory).map(_.getPath)
Review comment:
The test pass without `filterNot` change, why needed then?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]