Repository navigation
[#41254] Spark 4 streaming: keep each leaf on its own checkpoint across restarts - #41256
Merged
Merged
Conversation
Contributor
Author
|
R: @Abacn |
Contributor
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
This was referenced Nov 13, 2026
Merged
tkaymak
force-pushed
the
spark4-streaming-leaf-order
branch
from
November 16, 2026 09:36
edbba4c to
2035e73
Compare
Contributor
Author
|
@Abacn, a friendly ping on this one, whenever you have time. It fixes #41254, where a leaf could resume from another leaf's checkpoint after a restart. #41426 is ready too, stateful ParDo with additional outputs. I also have a small fix for #41466 ready, a Spark 4 batch bug since 2.74.0, and I will open it on Monday unless you want it earlier. |
Contributor
|
Thanks, this lgtm |
Abacn
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #41254, part of #36841.
The Spark 4 streaming runner starts one query per leaf and checkpoints leaf
iunder<checkpointDir>/<i>. The leaves were collected in aHashSetofTranslationResult, which has noequalsorhashCode, so their order followed identity hash codes. For the same 8 leaf pipeline three JVM runs gave two different orders, so after a restart a leaf could resume from another leaf's checkpoint without an error. The leaves now keep translation order in aLinkedHashSet.PipelineTranslatorTest.leavesFollowTranslationOrdertranslates 8 leaves and asserts the order. It failed before the change and passes on Spark 3 and 4. Locally gates, the streaming and both batch Structured Streaming ValidatesRunner suites and the full:runners:spark:4:testand:runners:spark:3:testpass. The trigger files run the Spark 4 and SparkStructuredStreaming ValidatesRunner PostCommits here, the batch suites also evaluate leaves in this order now.Merge order: independent of #41307 and #41220. It conflicts with #40265 only in two adjacent lines of
PipelineTranslator, I rebase whichever lands second.