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

Add Transient Errors handling when apply changes #949

Merged
merged 8 commits into from
Jan 29, 2023

Conversation

Mimetis
Copy link
Owner

@Mimetis Mimetis commented Jan 29, 2023

Add new interceptor OnRowsChangesFallbackFromBatchToSingleRowApplying when an error in batch mode fallback to line per line. Only available for SQL Server.

localOrchestrator.OnRowsChangesFallbackFromBatchToSingleRowApplying(async args =>
{
 Console.WriteLine($"- In memory rows that are going to be Applied one by one because of an error occured during batch applying");
 Console.WriteLine($"- Error raised causing the fallback: {args.Exception.Message}");
 Console.WriteLine($"- Rows count to apply one by one: {args.SyncRows.Count}");
});

Add new interceptor OnTransientErrorOccured when a transient error happens during applying changes on local data source.

localOrchestrator.OnTransientErrorOccured(async args =>
{
 Console.WriteLine($"- Transient error happened: {this.HandledException?.Message}. Retry: {this.Retry}");
});

Add transients error codes for all providers.

Add tests

@Mimetis Mimetis merged commit 63eb219 into master Jan 29, 2023
@Mimetis Mimetis deleted the RetryOnErroApplyChanges branch July 4, 2024 09:52
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

Successfully merging this pull request may close these issues.

1 participant