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

IndexOutOfRangeException happens when trying to get the queue message #1162

Open
rmt2021 opened this issue Sep 14, 2022 · 3 comments
Open

IndexOutOfRangeException happens when trying to get the queue message #1162

rmt2021 opened this issue Sep 14, 2022 · 3 comments

Comments

@rmt2021
Copy link

rmt2021 commented Sep 14, 2022

Version Information
3d881af

Describe the bug

When using SendNext method to send a message to the queue based on Azure Queue service, it may encounter transient errors (e.g., 503). So the Queue SendMessageAsync called inside will fail. However, it may not fail immediately but will fail at the ReceiveMessageAsync when trying to get the message, and a System.IndexOutOfRangeException will appear.

To Reproduce

We found the test Akka.Streams.Azure.StorageQueue.Tests.QueueSinkSpec.A_QueueSink_should_skip_failing_messages_if_supervision_strategy_is_restart which exercises the SendMessageAsync and ReceiveMessageAsync could be used to reproduce. Stack trace:

...
System.IndexOutOfRangeException : Index was outside the bounds of the array.
at Akka.Streams.Azure.StorageQueue.Tests.QueueSinkSpec.A_QueueSink_should_skip_failing_messages_if_supervision_strategy_is_restart() in C:\Users\Ze\Alpakka\src\Azure\Akka.Streams.Azure.StorageQueue.Tests\QueueSinkSpec.cs:line 88
...

Environment
Windows

@Arkatufus
Copy link
Contributor

@rmt2021 What are the steps that you took to reproduce the bug?

@Aaronontheweb
Copy link
Member

So it's actually the Source that is failing here by the sound of it? But there's no source inside our own adapter that could throw an IndexOutOfRangeException? Isn't this error coming from inside the Azure Storage Queues driver itself?

@Arkatufus
Copy link
Contributor

@rmt2021 are you still having this problem?

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

No branches or pull requests

3 participants