Skip to content

Commit

Permalink
Resequencer should always be a child of the journal actor (#7481)
Browse files Browse the repository at this point in the history
* Make `Resequencer` child of the `AsyncWriteJournal`

* fix comment
  • Loading branch information
Aaronontheweb authored Jan 22, 2025
1 parent 759e93f commit 84b767a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka.Persistence/Journal/AsyncWriteJournal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected AsyncWriteJournal()
var extension = Persistence.Instance.Apply(Context.System);
if (extension == null)
{
throw new ArgumentException("Couldn't initialize SyncWriteJournal instance, because associated Persistence extension has not been used in current actor system context.");
throw new ArgumentException("Couldn't initialize AsyncWriteJournal instance, because associated Persistence extension has not been used in current actor system context.");
}

CanPublish = extension.Settings.Internal.PublishPluginCommands;
Expand Down Expand Up @@ -81,7 +81,7 @@ protected AsyncWriteJournal()
_replayFilterMaxOldWriters = config.GetInt("replay-filter.max-old-writers", 0);
_replayDebugEnabled = config.GetBoolean("replay-filter.debug", false);

_resequencer = Context.System.ActorOf(Props.Create(() => new Resequencer()));
_resequencer = Context.ActorOf(Props.Create(() => new Resequencer()), "resequencer");
}

/// <inheritdoc/>
Expand Down

0 comments on commit 84b767a

Please sign in to comment.