warn when upgrading masstransit from 3.5.7 to 5.1.2

57 views
Skip to first unread message

Oren Kupershtein

unread,
Jun 3, 2018, 5:22:10 AM6/3/18
to masstransit-discuss
Hi,
i'm trying to upgrade masstransit from 3.5.7 to 5.1.2.
there are no breaking changes during compilation, and it seems that the code still works (i raised an event and consumed it successfully),  but when i run the code i get the following warning:

MassTransit.Messages Warning: 0 : S-FAULT rabbitmq://localhost/myproject/myEvent 7e830000-cf50-480f-bbce-08d5c9323481 myEvent The operation was canceled., System.OperationCanceledException: The operation was canceled.
   at MassTransit.Internals.Extensions.TaskExtensions.<WithCancellation>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport.<>c__DisplayClass6_0`1.<<MassTransit-Transports-ISendTransport-Send>b__1>d.MoveNext()

what does it mean? what should i do to prevent this warning?

Chris Patterson

unread,
Jun 3, 2018, 10:06:34 AM6/3/18
to masstrans...@googlegroups.com
It appears that you are cancelling the Send operation, are you setting the CancellationToken?


--
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.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/24511300-e5c6-4c1a-800a-6a8d6d9fe3ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Oren Kupershtein

unread,
Jun 3, 2018, 10:51:43 AM6/3/18
to masstransit-discuss

yes.
i'm passing new CancellationToken(true):  Bus.Publish<TRequest>(request, new CancellationToken(true));

this is the same code i had with version 3.5.7.

On Sunday, June 3, 2018 at 5:06:34 PM UTC+3, Chris Patterson wrote:
It appears that you are cancelling the Send operation, are you setting the CancellationToken?

On Sun, Jun 3, 2018 at 2:22 AM, Oren Kupershtein <oren.kup...@gmail.com> wrote:
Hi,
i'm trying to upgrade masstransit from 3.5.7 to 5.1.2.
there are no breaking changes during compilation, and it seems that the code still works (i raised an event and consumed it successfully),  but when i run the code i get the following warning:

MassTransit.Messages Warning: 0 : S-FAULT rabbitmq://localhost/myproject/myEvent 7e830000-cf50-480f-bbce-08d5c9323481 myEvent The operation was canceled., System.OperationCanceledException: The operation was canceled.
   at MassTransit.Internals.Extensions.TaskExtensions.<WithCancellation>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport.<>c__DisplayClass6_0`1.<<MassTransit-Transports-ISendTransport-Send>b__1>d.MoveNext()

what does it mean? what should i do to prevent this warning?

--
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.
To post to this group, send email to masstrans...@googlegroups.com.

Chris Patterson

unread,
Jun 4, 2018, 1:54:10 PM6/4/18
to masstrans...@googlegroups.com
Well, when you create a new CancellationToken(true) - you're creating it as cancelled, which isn't a good thing, as it's cancelled before you're even getting started.

If you aren't going to cancel it yourself, use CancellationToken.None, or just leave that parameter off the call.


On Sun, Jun 3, 2018 at 7:51 AM, Oren Kupershtein <oren.kup...@gmail.com> wrote:

yes.
i'm passing new CancellationToken(true):  Bus.Publish<TRequest>(request, new CancellationToken(true));

this is the same code i had with version 3.5.7.

On Sunday, June 3, 2018 at 5:06:34 PM UTC+3, Chris Patterson wrote:
It appears that you are cancelling the Send operation, are you setting the CancellationToken?

On Sun, Jun 3, 2018 at 2:22 AM, Oren Kupershtein <oren.kup...@gmail.com> wrote:
Hi,
i'm trying to upgrade masstransit from 3.5.7 to 5.1.2.
there are no breaking changes during compilation, and it seems that the code still works (i raised an event and consumed it successfully),  but when i run the code i get the following warning:

MassTransit.Messages Warning: 0 : S-FAULT rabbitmq://localhost/myproject/myEvent 7e830000-cf50-480f-bbce-08d5c9323481 myEvent The operation was canceled., System.OperationCanceledException: The operation was canceled.
   at MassTransit.Internals.Extensions.TaskExtensions.<WithCancellation>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport.<>c__DisplayClass6_0`1.<<MassTransit-Transports-ISendTransport-Send>b__1>d.MoveNext()

what does it mean? what should i do to prevent this warning?

--
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+unsubscribe...@googlegroups.com.

--
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.

Oren Kupershtein

unread,
Jun 5, 2018, 5:24:27 AM6/5/18
to masstransit-discuss
did it changed from version 3.5.7?
because it works in 3.5.7.


On Monday, June 4, 2018 at 8:54:10 PM UTC+3, Chris Patterson wrote:
Well, when you create a new CancellationToken(true) - you're creating it as cancelled, which isn't a good thing, as it's cancelled before you're even getting started.

If you aren't going to cancel it yourself, use CancellationToken.None, or just leave that parameter off the call.

On Sun, Jun 3, 2018 at 7:51 AM, Oren Kupershtein <oren.kup...@gmail.com> wrote:

yes.
i'm passing new CancellationToken(true):  Bus.Publish<TRequest>(request, new CancellationToken(true));

this is the same code i had with version 3.5.7.

On Sunday, June 3, 2018 at 5:06:34 PM UTC+3, Chris Patterson wrote:
It appears that you are cancelling the Send operation, are you setting the CancellationToken?

On Sun, Jun 3, 2018 at 2:22 AM, Oren Kupershtein <oren.kup...@gmail.com> wrote:
Hi,
i'm trying to upgrade masstransit from 3.5.7 to 5.1.2.
there are no breaking changes during compilation, and it seems that the code still works (i raised an event and consumed it successfully),  but when i run the code i get the following warning:

MassTransit.Messages Warning: 0 : S-FAULT rabbitmq://localhost/myproject/myEvent 7e830000-cf50-480f-bbce-08d5c9323481 myEvent The operation was canceled., System.OperationCanceledException: The operation was canceled.
   at MassTransit.Internals.Extensions.TaskExtensions.<WithCancellation>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport.<>c__DisplayClass6_0`1.<<MassTransit-Transports-ISendTransport-Send>b__1>d.MoveNext()

what does it mean? what should i do to prevent this warning?

--
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.

--
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.
To post to this group, send email to masstrans...@googlegroups.com.

Chris Patterson

unread,
Jun 5, 2018, 10:30:53 AM6/5/18
to masstrans...@googlegroups.com
It must have changed, yes. I think previously it ignored the CancellationToken passed, and now since you're passing an already canceled token, it's doing as you requested and cancelling.


To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsubscribe...@googlegroups.com.

--
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+unsubscribe...@googlegroups.com.

To post to this group, send email to masstrans...@googlegroups.com.

--
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.
Reply all
Reply to author
Forward
0 new messages