viirya commented on a change in pull request #26633: [SPARK-29994][CORE] Add WILDCARD task location URL: https://github.com/apache/spark/pull/26633#discussion_r349441768
########## File path: core/src/main/scala/org/apache/spark/scheduler/TaskLocation.scala ########## @@ -49,6 +49,16 @@ private [spark] case class HDFSCacheTaskLocation(override val host: String) exte override def toString: String = TaskLocation.inMemoryLocationTag + host } +/** + * A location that can match any host. This can be used as the last location in the list of + * preferred locations to indicate that the task can be assigned to any host if it cannot get any + * desired location immediately. + */ +private [spark] case class WildcardLocation() extends TaskLocation { Review comment: case object/object? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org