Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
Activity
• 05:56
ismaelhamed synchronize #5150
• 05:55
ismaelhamed synchronize #5150
• 05:55
Aaronontheweb auto_merge_disabled #5150
• Jul 24 15:01
Zabato7 opened #5153
• Jul 24 08:16
Zetanova opened #5152
• Jul 23 15:55
Aaronontheweb commented #5147
• Jul 23 14:40
Aaronontheweb auto_merge_enabled #5150
• Jul 23 14:39
Aaronontheweb synchronize #5150
• Jul 23 14:17
Aaronontheweb labeled #5151
• Jul 23 14:17
Aaronontheweb labeled #5151
• Jul 23 14:17
Aaronontheweb milestoned #5151
• Jul 23 14:17

Aaronontheweb on dev

Fix typo in logging (#5151) (compare)

• Jul 23 14:17
Aaronontheweb closed #5151
• Jul 22 22:00
Arkatufus opened #5151
• Jul 21 00:15
woodpk commented #5149
• Jul 20 23:18
woodpk commented #5149
• Jul 20 05:34
ismaelhamed synchronize #5150
• Jul 19 16:10
to11mtm labeled #5149
• Jul 19 16:06
Arkatufus synchronize #5148
• Jul 19 14:51
Aaronontheweb milestoned #5147
Aaron Stannard
@Aaronontheweb
issue is either going to be a static variable that is shared among the actor system instances and this test is running with AppDomains turned off
or one of the remote actor systems is replying to an actor who has since terminated
Andrey Leskov
@andreyleskov
sounds reasonable, but in test above I don't use anything static
may be something inside akka system itself?
Aaron Stannard
@Aaronontheweb
yeah that's what I meant
the name counter we use for naming temporary actors
might be one
Andrey Leskov
@andreyleskov
ooh
you are right
I see letter for temp actor always increasing ))
ok, will run such tests in separate domains
Stijn Herreman
@stijnherreman
I'm having trouble doing more than one transition in an FSM. Not sure if it's a problem with the FSM code or if it's a problem with the unit tests. Simple and full reproducible example at https://stackoverflow.com/questions/46588702/why-does-this-fsm-only-succeed-at-one-state-transition if anyone wants to take a look.
Andrey Leskov
@andreyleskov
thank you a lot for blazing fast answer ! @Aaronontheweb
Stijn Herreman
@stijnherreman
(Is it OK to ask for support here, by the way?)
Aaron Stannard
@Aaronontheweb
@stijnherreman yep, good to ask but it's always good to use StackOverflow so other people can find the answer when they google later
but you need to add a handler for the Done state
otherwise that state is undefined by the FSM
Stijn Herreman
@stijnherreman
@Aaronontheweb thanks! I was stuck on this for a couple of hours already, trying a bunch of different things.
Aaron Stannard
@Aaronontheweb
did that suggestion work?
Stijn Herreman
@stijnherreman
Aaron Stannard
@Aaronontheweb
ah nice
good deal, I'd been getting behind in racking up my SO karma
Stijn Herreman
@stijnherreman
Heh :) on that topic, not that I have a shortage of rep but feel free to upvote the questions :)
Andrew Young
@ayoung
@Danthar thanks. what about with the default wire format or hyperion?
Arsene Tochemey Gandote
@Tochemey
Hello can someone educate on NBench and probably what is its use and a tutorial.
Natan Vivo
@nvivo
What is the best way to detect if the node is unreachable from within the unreachable node? Will it see the other nodes as unreachable or does it set any status internally to detect this?
I was actually wondering is there is a way to completely avoid the idea of unreachable nodes, and make it just reconnect. I know currently the cluster algorithm depends on that but I'm coming to the conclusion it's simpler to not have these controls and deal with the other issues than deal with unreachable nodes
The fact is that the cloud is a very unstable place, and as the number of nodes go up, I'm having unreachable nodes twice a day now due to conditions I cannot control. These nodes eventually come back, but while that is happening the cluster gets unusable.
Natan Vivo
@nvivo
Created a discussion on #3144
would like to hear some thoughts on that
Bartosz Sypytkowski
@Horusiath
@nvivo if you think of cluster as a graph, unreachability is a property of a graph's edge, not a node itself (nor a subset of the graph)
in general if A sees B as unreachable, B should see A as unreachable too, but this may not happen at exactly the same moment
also AFAIK unreachable nodes are trying to reconnect to each other every 5s (by default)
also #3099 should help a little - it introduces an extra node status, that will allow you to use nodes even before cluster reaches full convergence (which is hard to achieve when node churn is big)
carnogursky
@carnogursky
Hi, please, could someone advise how to implement SSL certificates to the TCP communication (Akka.IO)?
Bartosz Sypytkowski
@Horusiath
@carnogursky I'm working on it. The closest approach would be to implement DotNetty's style TlsHandler as akka actor
carnogursky
@carnogursky
@Horusiath Thank you. Please, could you give me some more detailed hint? I do not know how TslHandler in DotNetty works...
Bartosz Sypytkowski
@Horusiath
@carnogursky this is a pretty complex stuff, I'm not sure if you want to dig deep into it. TLS needs its handshaking and secure stream handled - so far, only mature API for SSL in .NET is SslStream. However in akka actors and IO streams talks via ByteString. Because of that we need an adapter stream between actor and SslStream.
carnogursky
@carnogursky
@Horusiath It looks like DotNetty has a solution, which can be implemented easier? Had checked theis examples of server, you suggested it coulf be implemented as Actor?
Bartosz Sypytkowski
@Horusiath
DotNetty has a solution, but it's easier only if you want to use DotNetty directly
Jalal EL-SHAER
@jalchr
@Horusiath in DistributedData ... why would a 'Get' operation throw exception rather than returning null for a specific key ?
2017-10-09 01:17:37,203 [71] ERROR Akka.Actor.OneForOneStrategy - One or more errors occurred.
System.AggregateException: One or more errors occurred. ---> Akka.DistributedData.DataDeletedException: Cannot retrieve data under key [146324.mpg]. It has been permanently deleted and the key cannot be reused.
at Akka.DistributedData.DistributedData.<GetAsync>d__131.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task1.get_Result()
at Archive.VideoProcessing.Akka.VideoProviderWatcherActor.<Watch>b__10_4(FileFinished msg)
at lambda_method(Closure , Object , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 , Action1 )
at Akka.Tools.MatchHandler.PartialHandlerArgumentsCapture11.Handle(T value)
at Akka.Actor.ReceiveActor.ExecutePartialMessageHandler(Object message, PartialAction1 partialAction)
at Akka.Actor.ActorCell.Invoke(Envelope envelope)
---> (Inner Exception #0) Akka.DistributedData.DataDeletedException: Cannot retrieve data under key [146324.mpg]. It has been permanently deleted and the key cannot be reused.
at Akka.DistributedData.DistributedData.<GetAsync>d__131.MoveNext()<---
Stijn Herreman
@stijnherreman
@alexvaluyskiy any idea if it's possible to have packages that can target netstandard1.6 (like Akka.Remote), additionally also target netstandard2.0? The NETStandard.Library 1.6 package is a meta package and suffers from dependency bloat (few dozen dependencies), this was fixed in the 2.0 package. Since my application targets net461, I managed to work around this by first manually installing NETStandard.Library 2.0 and then updating Akka.Remote.
But probably not every users realises they can do this, so perhaps it's possible to help them out. I'm not sure though if NuGet is smart enough to pick the highest possible target, when installing a package (e.g. it should pick netstandard2.0 if possible, over netstandard1.6)
Bartosz Sypytkowski
@Horusiath
@jalchr
1. null should be returned in v1.3.1
2. DistributedData methods are meant to be used outside actor context, inside actors using traditional message passing is a lot faster. Also message based API is bigger and gives more power i.e. you can subscribe to receive updates of target CRDT as they come.
3. Keep in mind that DistributedData is not meant for high volume of data. If you want to use it for message delivery, you may eventually run out of memory.
Jalal EL-SHAER
@jalchr
@Horusiath I'm using DistributedData to track state across multiple nodes that share same 'file processing'. I'm using it like a "Shared Dictionary". So its a kind of acknowledgement at the business level. The processing of files takes time, so performance is not an issue.
When you say "run-out-of-memory", do you mean that state is never cleaned ? I'm ensuring that I remove everything that is marked as "done processing". Are we safe ?
OysteinKoppang
@OysteinKoppang

Hi. I'm trying to secure a akka.net remote system with the new SSL support.

There are two actor systems, that both talk to each other with remote actor selections.

System A's config:

remote {
dot-netty.tcp {
port = 11293
hostname = "127.0.0.1"
enable-ssl = true
maximum-frame-size = 4000000b
ssl {
suppress-validation = true
certificate {
path = "C:\\foo\\bar.pfx"
flags = ["user-key-set"]
}
}
}
}

System B's config:

"remote": {
"dot-netty.tcp": {
"port": 11292,
"hostname": "127.0.0.1",
"enable-ssl": true,
"maximum-frame-size": "4000000b",
"ssl": {
"suppress-validation": true,
"certificate": {
"path": "C:\\foo\\bar.pfx",
"flags": [ "user-key-set" ]
}
}
}
}

When system B tries to do an actor selection using the address:
akka.ssl.tcp://FooSystem@127.0.0.1:11293/user/FooActor

An error is thrown:
'No transport is loaded for protocol: [akka.ssl.tcp], available protocols: [akka.tcp]'

Any ideas why this is happening?

Aaron Stannard
@Aaronontheweb
weird
no idea offhand
would you please file an issue? We'll try to reproduce it