Skip to content

Conversation

@niemyjski
Copy link
Member

This needs to be tested but local integration tests are passing. We need to see if any additional changes are needed to handle existing queued messages.

This change removes the message envelope used to wrap queue data with metadata (correlation id, properties) in the Azure Storage Queue implementation.

Azure Storage Queue only supports a message body, and the envelope was previously used to support CorrelationId and Properties. However, this approach breaks backward compatibility with existing messages.

This commit prioritizes backward compatibility by directly serializing and deserializing the message body. As a result, CorrelationId and Properties from QueueEntryOptions are no longer persisted.
Additionally, the tests that rely on the envelope functionality have been skipped.
@niemyjski niemyjski self-assigned this Dec 15, 2025
var blockBlob = container.GetBlockBlobReference("EmptyFolder/");
await blockBlob.UploadFromStreamAsync(new MemoryStream(), null, null, null);
var blobClient = container.GetBlobClient("EmptyFolder/");
await blobClient.UploadAsync(new MemoryStream());

var blockBlob = container.GetBlockBlobReference("EmptyFolder/");
await blockBlob.UploadFromStreamAsync(new MemoryStream(), null, null, null);
var blobClient = container.GetBlobClient("EmptyFolder/");
await newBlob.StartCopyAsync(oldBlob, cancellationToken).AnyContext();
while (newBlob.CopyState.Status == CopyStatus.Pending)
await _timeProvider.Delay(TimeSpan.FromMilliseconds(50), cancellationToken).AnyContext();
var copyOperation = await targetBlob.StartCopyFromUriAsync(sourceBlob.Uri, cancellationToken: cancellationToken).AnyContext();
Comment on lines +151 to +155
catch (Exception ex)
{
_logger.LogError(ex, "Error saving {Path}: {Message}", normalizedPath, ex.Message);
return false;
}
@niemyjski niemyjski closed this Dec 15, 2025
@niemyjski niemyjski deleted the feature/new-storage-api's branch December 15, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants