siying commented on code in PR #60068:
URL: https://github.com/apache/spark/pull/60068#discussion_r4575579056


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/runtime/MicroBatchExecution.scala:
##########
@@ -856,7 +873,7 @@ class MicroBatchExecution(
       execCtx: MicroBatchExecutionContext,
       sparkSessionToRunBatches: SparkSession): Unit = {
     execCtx.sinkCommitProgress = None
-    offsetLog.getLatest() match {
+    initialLatestOffsetSeq match {

Review Comment:
   CI now reproduces this on head `cd678880ec7143ba2da703e5ef7073f04e98e827`.
   
   [Report test results](https://github.com/siying/spark/runs/132396498126) 
reports a failure in `StreamRealTimeModeWithManualClockSuite.purge offsetLog 
when it doesn't match with the commit log`: **8 expected rows, 14 actual 
rows**. After restart, the sink contains `[2]` through `[8]` twice, consistent 
with the cached-offset recovery path restarting from `initialOffset` and 
replaying committed history.
   
   This adds CI reproduction evidence to the source trace above. I have not run 
the test locally.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to