Skip to content

[SPARK-56361][SS] Provide better error with logging on NPE in stream-stream join#55214

Closed
HeartSaVioR wants to merge 2 commits intoapache:masterfrom
HeartSaVioR:SPARK-56361
Closed

[SPARK-56361][SS] Provide better error with logging on NPE in stream-stream join#55214
HeartSaVioR wants to merge 2 commits intoapache:masterfrom
HeartSaVioR:SPARK-56361

Conversation

@HeartSaVioR
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR proposes to provide better error with additional logging on NPE in stream-stream join.

We have captured several places which could throw NPE - this PR provides the better error for users which is less cryptic and gives a quick mitigation if they are willing to tolerate losing some data to keep the query running. For devs, this PR leaves the context to the log, so that when users come to devs with the error, devs can at least know where to start looking into.

Why are the changes needed?

Throwing NPE does not help anything for users and devs. For users, NPE is mostly cryptic error and they know nothing what to do to mitigate the issue. There is no information around context, so debugging is almost impossible for devs when this happens.

Does this PR introduce any user-facing change?

Yes, users would no longer get NPE from stream-stream join for known places on potential NPE, and will get better exception with the guidance for quick mitigation (toleration of data loss).

How was this patch tested?

Modified test

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

Generated-by: Claude 4.6 Opus

Copy link
Copy Markdown
Contributor

@zeruibao zeruibao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this change. Looks nice!

@HeartSaVioR
Copy link
Copy Markdown
Contributor Author

Thanks! Merging to master.

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