StefanXiepj commented on a change in pull request #33648: URL: https://github.com/apache/spark/pull/33648#discussion_r683900907
########## File path: graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala ########## @@ -137,12 +137,12 @@ object Pregel extends Logging { val messageCheckpointer = new PeriodicRDDCheckpointer[(VertexId, A)]( checkpointInterval, graph.vertices.sparkContext) messageCheckpointer.update(messages.asInstanceOf[RDD[(VertexId, A)]]) - var activeMessages = messages.count() + var stillHaveActiveMsg = !messages.isEmpty() Review comment: thanks, done -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org