Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The second call to DataBus.OpenRead results in an error during the deserialization of the stream. #1189

Open
jacopocinaark opened this issue Dec 19, 2024 · 0 comments

Comments

@jacopocinaark
Copy link

jacopocinaark commented Dec 19, 2024

During the first call to DataBus.OpenRead, the returned object is a System.IO.Compression.GZipStream, which contains an internal buffer of type Azure.Storage.LazyLoadingReadOnlyStream<Azure.Storage.Blobs.Models.BlobProperties>. Initially, the stream's Position is set to 0, and all buffer elements are set to 0. After deserialization, everything works as expected: the Position is at the end of the stream, and the buffer is populated with the correct values.

image

On the second call to DataBus.OpenRead, the returned object is directly an Azure.Storage.LazyLoadingReadOnlyStream<Azure.Storage.Blobs.Models.BlobProperties> with the same initial state: Position is 0, and all buffer elements are set to 0.

image

However, when we attempt to deserialize the second object using the same method as the first, an error occurs at the first element in the buffer, with the value 31.

image

For testing purposes, after removing the UseCompression configuration in the DataBus, the second OpenRead and deserialization complete without any errors.

image

image

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

No branches or pull requests

1 participant