anshulbaliga7 commented on PR #58167:
URL: https://github.com/apache/spark/pull/58167#issuecomment-6892618787

   Thanks for the review @LuciferYang , have addressed and fixed in 5a53ef83daa.
   
   - The saved value of the flag is now removed in `createSparkConf` next to 
the ports and the driver host, so it comes from the current launch only. The 
test recovers with the flag off, builds a `Checkpoint` from the recovered 
context, clears the property and asserts that the next `createSparkConf()` has 
no value. It stops the context the SPARK-6331 block leaves running first and it 
fails without the `remove`.
   - I checked the keyed-state failure modes in the code and `getPartitions` 
returns one partition per file found while `partitioner` comes from the 
recorded file, `MapWithStateRDD` sizes itself from the previous state but 
partitions the incoming data with the recorded partitioner, and the cogroup in 
`updateStateByKey` and `reduceByKeyAndWindow` is narrow against the previous 
state. Both sub-condition texts and the config doc now warn that for keyed 
DStream state, loading as-is can fail the next batch or silently drop state. 
For `UNEXPECTED_FILES` I worded it more generally ("fail ... or part of the 
state can be silently ignored") because from reading the code `mapWithState` 
fails there while the cogroup-based operators ignore the extra files. I kept 
the behavior fix itself, ignoring a recorded partitioner whose count no longer 
matches, out of this PR as you suggested.
   
   Can you PTAL again? Thanks!


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