avkgh commented on a change in pull request #25654: [SPARK-28912][STREAMING] 
Fixed MatchError in getCheckpointFiles()
URL: https://github.com/apache/spark/pull/25654#discussion_r320287493
 
 

 ##########
 File path: streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala
 ##########
 @@ -102,7 +102,7 @@ class Checkpoint(ssc: StreamingContext, val 
checkpointTime: Time)
 private[streaming]
 object Checkpoint extends Logging {
   val PREFIX = "checkpoint-"
-  val REGEX = (PREFIX + """([\d]+)([\w\.]*)""").r
+  val REGEX = (PREFIX + """([\d]{9,})([\w\.]*)""").r
 
 Review comment:
   Please read my previous reply to HyukjinKwon. I explained there what was 
intended.
   In my case `checkpoint-01` is a checkpoint **directory** name which matches 
positively using current regex accepting 1 or more digits.

----------------------------------------------------------------
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]

Reply via email to