Skip to content

[SPARK-55999][SS] Enable forceSnapshotUploadOnLag by default #54847

Closed
zifeif2 wants to merge 2 commits intoapache:masterfrom
zifeif2:enable-force-snapshot
Closed

[SPARK-55999][SS] Enable forceSnapshotUploadOnLag by default #54847
zifeif2 wants to merge 2 commits intoapache:masterfrom
zifeif2:enable-force-snapshot

Conversation

@zifeif2
Copy link
Copy Markdown
Contributor

@zifeif2 zifeif2 commented Mar 17, 2026

What changes were proposed in this pull request?

  1. Config default change (SQLConf.scala): forceSnapshotUploadOnLag default false → true
  2. 3 SPARK-51358 tests fixed (StateStoreCoordinatorSuite.scala): Explicitly set forceSnapshotUploadOnLag=false so lag detection tests aren't interfered with by the forced remediation
  3. Cleanup (StateStoreCoordinatorSuite.scala): Removed redundant forceSnapshotUploadOnLag -> "true"

Why are the changes needed?

When state store is lagging in uploading snapshot in maintenance thread, turning on this feature allows state store to upload snapshot in query execution thread, which improves query reliability

Does this PR introduce any user-facing change?

No

How was this patch tested?

The feature is tested in #52773

Was this patch authored or co-authored using generative AI tooling?

yes

terana pushed a commit to terana/spark that referenced this pull request Mar 23, 2026
### What changes were proposed in this pull request?

1. Config default change (SQLConf.scala): forceSnapshotUploadOnLag default false → true
2. 3 SPARK-51358 tests fixed (StateStoreCoordinatorSuite.scala): Explicitly set forceSnapshotUploadOnLag=false so lag detection tests aren't interfered with by the forced remediation
3. Cleanup (StateStoreCoordinatorSuite.scala): Removed redundant forceSnapshotUploadOnLag -> "true"

### Why are the changes needed?

When state store is lagging in uploading snapshot in maintenance thread, turning on this feature allows state store to upload snapshot in query execution thread, which improves query reliability

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

The feature is tested in apache#52773

### Was this patch authored or co-authored using generative AI tooling?

yes

Closes apache#54847 from zifeif2/enable-force-snapshot.

Authored-by: zifeif2 <zifeifeng11@gmail.com>
Signed-off-by: Anish Shrigondekar <anish.shrigondekar@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants