These are chat archives for akkadotnet/akka.net

31st
May 2016
Vagif Abilov
@object
May 31 2016 01:08
@Aaronontheweb no, latest Akka.Persistence.SqlServer package from Nuget.org isn't compatible, needs a new release. The source is good, just the package isn't updated.
Aaron Stannard
@Aaronontheweb
May 31 2016 01:12
@object mind submitting a pull request on that repo? just need dev --> master
and the RELEASE_NOTES.md file needs to be updated
since the NuGet metadata gets pulled from the top of the file\
Vagif Abilov
@object
May 31 2016 01:16
@Aaronontheweb but AFAIK the pull request has already been merged. Somebody with access rights just need to build and release the Nuget package.
If you check Nuget.org you will see that while core Akka.net is at 1.0.8, some persistence plug-ins are at 1.0.6.
Aaron Stannard
@Aaronontheweb
May 31 2016 01:21
that's a feature, not a bug
we don't want to be responsible for coupling all of the persistence plugins together in each release
stakeholders are supposed to upgrade those
I personally run the release for the core Akka libraries
but have nothing to do with any of the Akka.Persistence plugins not covered there
Vagif Abilov
@object
May 31 2016 01:23
I understand. But aren't you a stakeholder for SqlServer plugin? I am not at the machine, can't check myself right now.
Aaron Stannard
@Aaronontheweb
May 31 2016 01:23
me personally? I use it in some demos
literally anybody can submit a PR to upgrade it
I don't work much on Akka.Persistence myself
to11mtm @to11mtm would go ahead but is stuck in oracle world (gag)
Aaron Stannard
@Aaronontheweb
May 31 2016 01:24
Akka.Remote / Cluster is where I spend most of my time
ping @cconstantin @Horusiath
Vagif Abilov
@object
May 31 2016 01:26
What I mean is that you are listed as the package owner at Nuget.org.
So my question is who should release the new package? Isn't it you?
Vagif Abilov
@object
May 31 2016 01:33
I just checked the GitHub. Yes, @Horusiath has merged pr on April 15, the repo is good to go (dev branch), but Nuget package hasn't been released.
Aaron Stannard
@Aaronontheweb
May 31 2016 03:19
@object ah my bad, I should have explained
all of the plugins in the AkkaDotNet organization
have our CI system hooked up to them
any merges into the master branch will automatically trigger a publish to NuGet
using my credentials
or the akkadotnet user's
so anyone can submit a PR to the master branch with a new release, and as long as it gets reviewed by a core team member with merge rights
it will be automatically deployed upon merge
Vagif Abilov
@object
May 31 2016 04:40
Oh I see. Then I can take it further.
Finn Newick
@finnnewick-justgiving
May 31 2016 14:42

Hi there

I'm trying to write a test to verify that one actor takes a list of values and sends a message per distinct value.

Any hints about the best way to do this? E.g. Is there a way to find out the counts of messages received by a TestProbe actor?

Marc Piechura
@marcpiechura
May 31 2016 14:58
@finnnewick-justgiving you could use ReceiveN or if your list is small and contains the same type ExpectMsg(1,2,3)
Finn Neuik
@finnneuik_twitter
May 31 2016 15:02
that won't tell me if I've got any extra messages queued though presumably?
e.g. if ExpectMessage(1,2) was passing I'd like ExpectMessage(1,2,3) to fail
same goes for ReceiveN if I understand correctly?
Marc Piechura
@marcpiechura
May 31 2016 15:07
That's true, you could use ExpectNoMsg to verify that you doesn't receive any further messages
There is also a ReceiveWhile which you can use to collect all messages in a given time period and then check that the list only contains the ones you expect
Finn Neuik
@finnneuik_twitter
May 31 2016 15:11
ok, I guess that would work - I guess the timeout can be reduced dramatically from the default of 3s?
thanks for the help - using akka.net for the first time this week
Marc Piechura
@marcpiechura
May 31 2016 15:14
Yep you can reduce it, normally via parameter but afaik there is also a more general way, something like Within(()=> ..., Timeout) where all assertions inside the within block use the provided timeout instead of 3s
Cool, have you already seen the bootcamp?
Finn Neuik
@finnneuik_twitter
May 31 2016 15:15
yep, although was planning to go through the pluralsight courses first
Marc Piechura
@marcpiechura
May 31 2016 15:17
👍
Aaron Stannard
@Aaronontheweb
May 31 2016 17:38
@finnneuik_twitter imho, just do the bootcamp
the pluralsight courses are a little off
based on some feedback I've gotten from folks who took them and did my advance training
your mileage may vary though
artem-karnaukh
@artem-karnaukh
May 31 2016 19:27
hey im trying to dip into akka.cluster sharding and get the following error when trying to send a message to a shard actor: 2016-05-31 22:26:35.0691|WARN|Akka.Cluster.Sharding.ShardRegion|Trying to register to coordinator at [user/sharding/UserCoordinator/singleton/coordinator], but no acknowledgement. Total [3] buffered messages.
is there any quick fix for it?
Sean Gilliam
@sean-gilliam
May 31 2016 19:53

@sean-gilliam I found this while working on Cluster stuff tonight and thought you'd get a laugh

@Aaronontheweb lol. GhostDoc is the bane of my existence.

Aaron Stannard
@Aaronontheweb
May 31 2016 21:11
ping @Horusiath about that @artem-karnaukh
Arjen Smits
@Danthar
May 31 2016 21:48
sqlserver persistence 1.0.8 has just been pushed, should be available on nuget shortly
Aaron Stannard
@Aaronontheweb
May 31 2016 22:26
@Danthar :+1: ty sir - that should solve the issue for you @object
Aaron Stannard
@Aaronontheweb
May 31 2016 23:25
@/all any strong opinions on using or not using System.Diagnostics.Contracts in all Akka libraries going forward?
been going through some core Akka stuff today and saw that we have at least 3 different ways of doing Debug assertions now
some custom exceptions, Debug.Assert
I'm in favor of just standardizing all of this on Code Contracts
the tooling for it is great
among other things
qwoz
@qwoz
May 31 2016 23:58
Any trick to sending email from within an actor? I'm using SMTPClient and I'm temporarily abusing NUnit a little to actually send out emails for real from within my actor as part of the test as a quick way of verifying the contents are what I expect (I'll fake the email send later). The problem is that I get an SMTPException with an inner exception of ThreadAbortedException.
Aaron Stannard
@Aaronontheweb
May 31 2016 23:59
@qwoz the ThreadAbortedException usually comes from the test runner
when cleaning up the actors
when I've had to do this stuff before I just had an actor who would queue "email messages" out onto a queue