Skip to content

Commit

Permalink
More logging on assigned node number
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Oct 10, 2023
1 parent c533aab commit 0195998
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Wolverine/Runtime/WolverineRuntime.HostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ public async Task StartAsync(CancellationToken cancellationToken)
// This MUST be done before the messaging transports are started up
await startAgentsAsync();

if (Options.Durability.AssignedNodeNumber == 0)
{
throw new InvalidOperationException(
"This Wolverine node was not able to create a non-zero assigned node number");
}
else
{
Logger.LogInformation("Wolverine assigned node id for envelope persistence is {NodeId}", Options.Durability.AssignedNodeNumber);
}

await startMessagingTransportsAsync();

startInMemoryScheduledJobs();
Expand Down

0 comments on commit 0195998

Please sign in to comment.