Comments (3)
@brah-mcdude can you provide some actor code that we can look at in order to help reproduce?
from akka.net.
Just for clarification: this bug affects actors who use IWithTimers
and call the StartTimer
method inside the actor's PreStart
override
from akka.net.
I tried to reproduce this @brah-mcdude
async Task Main()
{
// Initialize Actor System
var system = ActorSystem.Create("MySystem");
// Create Props for the EchoActor
var props = Props.Create<EchoActor>();
// Create the EchoActor
var echoActor = system.ActorOf(props, "echoActor");
// Send 10 messages to the EchoActor
for (int i = 0; i < 10; i++)
{
echoActor.Tell($"Message {i + 1}");
}
// Allow some time for messages to process before shutting down
await system.WhenTerminated;
}
// Define the EchoActor class
public class EchoActor : ReceiveActor, IWithTimers
{
private readonly ILoggingAdapter _log = Context.GetLogger();
private int _msgCount = 0;
public ITimerScheduler Timers { get; set; }
public EchoActor()
{
NormalBehavior();
}
private void NormalBehavior()
{
ReceiveAny(message =>
{
_log.Info("Hit {0}", _msgCount++);
if(_msgCount >= 10){
Context.System.Terminate();
}
});
}
private class RecoverMarker { }
protected override void PreRestart(Exception ex, object message)
{
Timers.StartPeriodicTimer("foo", "bar", TimeSpan.FromMilliseconds(100));
}
}
Worked normally - what's the issue?
from akka.net.
Related Issues (20)
- Akka.Cluster.Tools.Singleton: singleton moves as soon as node with higher `AppVersion` joins cluster? HOT 3
- `serialize-messages=on` is breaking distributed pub-sub messaging HOT 1
- Akka.Delivery: chunked messages leaking memory? HOT 2
- Akka.Event: expose the `EventStream` on `BusLogging` for extensibility purposes HOT 1
- System messages containing BCL exceptions fail to deserialize on netfx when serialized on net5+/.net core HOT 5
- Akka.Streams: add a "valve" stage to Akka.Streams that can be open / closed from the outside to pause transfer of events HOT 2
- Akka.Streams: weird behavior with `RepeatPrevious` HOT 12
- [PERF] Akka.Cluster Idle CPU on ARM HOT 12
- [PERF]: replace DotNetty transport with home-spun Akka.Streams + System.IO TCP implementation
- `Ask` and `ContinueWith` might cause memory leak HOT 1
- CVE-2018-8292 HOT 1
- Make Akka.Discovery less coupled with Akka.Management
- Allow Akka.Discovery to be used with Akka.Cluster.Tools.ClusterClient HOT 4
- Epic: Full AOT Support for Akka.NET
- Akka.Router: sending a message to a remote actor via `IScheduledTellMsg` results in serialization error HOT 1
- ORSet with large data faces maximum-frame-size limitation during sync HOT 3
- Epic: Deprecate Akka.Persistence.Sql.Common Plugins HOT 1
- [PERF] Using the BroadcastHub with thousands of consumers seems painfully slow. HOT 1
- Ask<object> will not throw exception when the response is Status.Failure HOT 2
- Akka.Logging: v1.5.21 appears to have truncated log source, timestamps, etc from all log messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akka.net.