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

Strange exception using distributed data #4806

Closed
tesgu opened this issue Mar 2, 2021 · 8 comments
Closed

Strange exception using distributed data #4806

tesgu opened this issue Mar 2, 2021 · 8 comments
Assignees
Milestone

Comments

@tesgu
Copy link

tesgu commented Mar 2, 2021

Hi guys, we are using Akka.DistributedData 1.4.16

When load is high, the system starts to throw the following exception and the distributed data stops finding items.
We are using an ORDictionary<string, POC>

Any clue would be much appreciated.

System.InvalidCastException: Unable to cast object of type 'NoDelta' to type 'DeltaGroup[System.String,Payvision.ThreeDS.Processor.DistributedCache.Domain.TransactionState]'.
at Akka.DistributedData.ORDictionary2.DeltaGroup.Merge(IReplicatedData other) at Akka.DistributedData.DeltaPropagationSelector.CollectPropagations() at Akka.DistributedData.Replicator.ReceiveDeltaPropagationTick() at lambda_method(Closure , Object , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Object[] ) at Akka.Tools.MatchHandler.PartialHandlerArgumentsCapture16.Handle(T value)
at Akka.Actor.ReceiveActor.ExecutePartialMessageHandler(Object message, PartialAction`1 partialAction)
at Akka.Actor.UntypedActor.Receive(Object message)
at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
at Akka.Actor.ActorCell.ReceiveMessage(Object message)
at Akka.Actor.ActorCell.Invoke(Envelope envelope)

@Aaronontheweb
Copy link
Member

@Arkatufus could you take a look at this?

@Arkatufus
Copy link
Contributor

@tesgu I'm looking into the problem right now

@Arkatufus
Copy link
Contributor

@tesgu I did a possible fix to this (see merged PR link above) but since we don't have any unit test to confirm that this bug is fixed, I'm going to leave this issue open. The fix should be rolled out in the next version and you can re-test to see if the bug is fixed or not, or you might be able to use the nightly build.

@Aaronontheweb do we still have nightly build nuget repo?

@Arkatufus
Copy link
Contributor

@Aaronontheweb
Copy link
Member

@tesgu definitely give the nightly build a try and let us know if it resolves your issue

@tesgu
Copy link
Author

tesgu commented Mar 7, 2021

Hi guys

Good news @Aaronontheweb and @Arkatufus: it seems the issue is solved!!

Tested using Akka.DistributedData 1.4.17-beta637505857887316375. No exception thrown and the ORDictionary is working as expected.

Thanks a lot for the quick fix!! ;)

@tesgu tesgu closed this as completed Mar 7, 2021
@Aaronontheweb
Copy link
Member

Nice work @Arkatufus

Happy to do it @tesgu - we will release 1.4.17 this week.

@tesgu
Copy link
Author

tesgu commented Mar 9, 2021

Great! Looking forward for the release @Aaronontheweb .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants