question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] [TABLES] TableBatchResponse.IsBatchSuccessful incorrect

See original GitHub issue

Describe the bug When the TableTransactionBatch is successfully processed, TableBatchResponse.IsBatchSuccessful should be true, currently it returns false.

The error looks to be here, on line 21.

public bool IsBatchSuccessful => _requestLookup.Values.Any(r => r.Message.Response.Status >= 400);

Expected behavior TableBatchResponse.IsBatchSuccessful should be true.

Actual behavior (include Exception or Stack Trace) TableBatchResponse.IsBatchSuccessful is false.

image

To Reproduce

  1. Create a transaction batch.
  2. Execute against table.
  3. Validate response.

Environment:

  • Azure.Data.Tables 3.0.0-beta2
  • Windows 10, .NET Core 3.1.403
  • Visual Studio 16.7.6

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Oct 28, 2020

Thank you for your feedback. Tagging and routing to the team member best able to assist.

0reactions
kieronlanningcommented, Nov 1, 2020

@christothes Technically, yes it does. But I’m down to string parsing to get the error details out - and modify code paths accordingly. Seems a little… fragile.

Can you include the details as an object, similar to the success object where I can call GetResponseForEntity from the TableBatchResponse?

For example:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

BatchGetItem - Amazon DynamoDB
The BatchGetItem operation returns the attributes of one or more items from one or more tables. You identify requested items by primary key....
Read more >
How Batch process works during the Error.
Insert with AllorNone parameter set to False. ... The first execute method successfully processed records, and this records committed to the ...
Read more >
US6640244B1 - Request batcher in a transaction services ...
If an application based on a Netcentric architecture has already been successfully piloted or deployed, acceptance of additional systems will be eased. E2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found