Skip to content

Handle unknown transactions without erroring.#3858

Merged
jsdt merged 2 commits intomasterfrom
jsdt/handle-unknown-transaction
Dec 9, 2025
Merged

Handle unknown transactions without erroring.#3858
jsdt merged 2 commits intomasterfrom
jsdt/handle-unknown-transaction

Conversation

@jsdt
Copy link
Contributor

@jsdt jsdt commented Dec 9, 2025

Description of Changes

Don't throw an error if there is no reducerInfo. The code was previously trying to handle the case of an unknown reducer, but was effectively asserting that the reducerInfo existed too soon.

Now we should be fine handling a transaction, even if we can't determine reducer information for it.

Expected complexity level and risk

Testing

I tested this by running the quickstart chat app, and using the CLI to delete rows (via spacetime sql). Before this change, the client errors, but now it handles it correctly.

I also tested with the repro in #3817

@jsdt jsdt requested a review from coolreader18 December 9, 2025 20:08
@jsdt jsdt marked this pull request as ready for review December 9, 2025 20:47
Copy link
Collaborator

@coolreader18 coolreader18 left a comment

Choose a reason for hiding this comment

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

LGTM

@jsdt jsdt enabled auto-merge December 9, 2025 22:11
@jsdt jsdt added this pull request to the merge queue Dec 9, 2025
Merged via the queue into master with commit 0866367 Dec 9, 2025
26 checks passed
@aceysmith
Copy link
Contributor

Thanks for the fix! Hoping we’ll get a 1.12.0 or similar before the end of the year that includes this change 😊

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.

TransactionUpdate messages for scheduled reducers have no reducer name, TS SDK message processing expects it

3 participants