--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/0ab72dfb-c59a-4233-9510-7ddb0e15aba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If the saga repository encounters an exception during save, it will fault, and the message will be reprocessed. I'd recommend using the in-memory outbox to avoid publishing events if this occurs.endpoint.UseInMemoryOutbox();There isn't a way to capture the error of the saga repository.
On Fri, Oct 26, 2018 at 1:40 AM Roman Prykhodko <prykhod...@gmail.com> wrote:
--I mean those repository exceptions, which are NOT caused by bubbling exceptions from logic. For example, this exception of Postgress:
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Npgsql.PostgresException: 40001: could not serialize access due to read/write dependencies among transactions
On Friday, October 26, 2018 at 9:20:24 AM UTC+3, Roman Prykhodko wrote:Hi.
How can I catch exceptions of sagarepository during saving saga? If saga's transaction is reverting I want to do some activities, but .Catch method seems not to be good for that...
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
UseInMemoryOutbox is great with events, but what if we have .Then( saving some notsaga entity to DB )? If repository encounters an exception during save, saved entity is not deleted. Please advise. Thanks!
On Sunday, October 28, 2018 at 11:58:44 PM UTC+3, Chris Patterson wrote:
If the saga repository encounters an exception during save, it will fault, and the message will be reprocessed. I'd recommend using the in-memory outbox to avoid publishing events if this occurs.endpoint.UseInMemoryOutbox();There isn't a way to capture the error of the saga repository.
On Fri, Oct 26, 2018 at 1:40 AM Roman Prykhodko <prykhod...@gmail.com> wrote:
--I mean those repository exceptions, which are NOT caused by bubbling exceptions from logic. For example, this exception of Postgress:
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Npgsql.PostgresException: 40001: could not serialize access due to read/write dependencies among transactions
On Friday, October 26, 2018 at 9:20:24 AM UTC+3, Roman Prykhodko wrote:Hi.
How can I catch exceptions of sagarepository during saving saga? If saga's transaction is reverting I want to do some activities, but .Catch method seems not to be good for that...
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/0ab72dfb-c59a-4233-9510-7ddb0e15aba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/d348e10f-3ae9-4c77-9354-33a8773bf5c4%40googlegroups.com.