Skip to content

[Journaling] Align status serialization for both read and write in DurableTaskCompletionSource#9626

Merged
ReubenBond merged 1 commit intodotnet:mainfrom
ledjon-behluli:fix-durable-tcs-corrupted-reader
Jul 31, 2025
Merged

[Journaling] Align status serialization for both read and write in DurableTaskCompletionSource#9626
ReubenBond merged 1 commit intodotnet:mainfrom
ledjon-behluli:fix-durable-tcs-corrupted-reader

Conversation

@ledjon-behluli
Copy link
Contributor

@ledjon-behluli ledjon-behluli commented Jul 27, 2025

The DurableTaskCompletionSource has a serialization bug where the status gets written as a byte but read back as a VarUInt32. This can leave the buffer reader misaligned for subsequent reads of the result / exception payload(s), causing an insufficient data exception.

This change aligns both operations to use ReadByte/WriteByte, ensuring the Reader advances predictably.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond merged commit 1db43c8 into dotnet:main Jul 31, 2025
28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants