CloudAppendBlob AppendTextAsync keeps overwriting my blob data, not appending it

I am attempting to use the new CloudAppendBlob in the latest C# Azure Storage library (5.0.0 stable and 5.0.1-preview) but my unit tests keep failing when using the AppendTestAsync method. Whenever I run my unit tests with the Async call (see below) the data appears to get overwritten, not appended i.e. the blob only contains the last string written to it.

await appendBlob.AppendTextAsync(base64EncodedBson + Base64Delimitter);

Using the call below works fine though, albeit I cannot take advantage of async code.

appendBlob.AppendText(base64EncodedBson + Base64Delimitter);

Am I missing something or is this a bug in the library? I tried searching on GitHub but nothing obvious shows itself:

Azure Storage repo on Github

I'm running the tests from a class library project in the latest version of VS2015.

August 24th, 2015 3:41pm

Hi Girish,

AppendBlob is supported in Azure, here is the release information on it going to general availability:

MS Azure Storage Blog - AppendBlob GA

The guy, Amir, in the post you suggest seems to be complaining he cannot see the AppendBlob in the Management Portal or Storage Explorer which is not the same as my problem.

The issue I have is AppendTextAsync overwrites my blob, rather that appends to it. AppendText (no async) appends to my blob though, as do the other byte based methods so I'm happy that AppendBlob is working, its just the AppendTextAsync method that looks to be buggy.

Many Thanks,

Roger

Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 8:44am

Thanks for the quick resolution Jason, I've updated to the latest preview package, 5.0.3, and my unit tests are now passing with the AppendTextAsync method.

Many Thanks,

Roger

September 2nd, 2015 4:05am

Thanks for the acknowledgement Roger. 

thanks

Dinesh

Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 5:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics