-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got System.InvalidOperationException: Unable to extract integer key from grain id at Silo.OnActiveStop #8558
Comments
Hi, I am also seeing the same error. I see this only in the cluster, during local debugging I did not see this. message0: "2023-09-26 13:49:37.942 +00:00 [Error] Orleans.Runtime.SiloLifecycleSubject: Orleans.Runtime.Silo failed to stop due to errors at stage Active (20000) |
Fixed in #8701 (thank you, @peter-perot!) |
Co-authored-by: peter-perot <[email protected]>
Co-authored-by: peter-perot <[email protected]>
I've use NLog for logging,because the log level changed to debug,this exception occured.
This is the code in Orleans.Runtime,Silo.
if (this.logger.IsEnabled(LogLevel.Debug))
{
logger.LogDebug(
"{GrainServiceType} Grain Service with Id {GrainServiceId} stopped successfully.",
grainService.GetType().FullName,
grainService.GetPrimaryKeyLong(out string ignored));
}
2023-07-27 18:46:43.7795|ERROR|Orleans.Runtime.SiloLifecycleSubject|Orleans.Runtime.Silo failed to stop due to errors at stage Active (20000)|System.InvalidOperationException: Unable to extract integer key from grain id sys.svc.user
.49342BE4/172.16.3.94:11000@49459593
at Orleans.GrainExtensions.GetPrimaryKeyLong(IAddressable grain, String& keyExt) in //src/Orleans.Core.Abstractions/Core/GrainExtensions.cs:line 182
at Orleans.Runtime.Silo.OnActiveStop(CancellationToken ct) in //src/Orleans.Runtime/Silo/Silo.cs:line 614
at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStop(CancellationToken cancellationToken) in //src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs:line 163
at Orleans.LifecycleSubject.OnStop(CancellationToken cancellationToken) in //src/Orleans.Core/Lifecycle/LifecycleSubject.cs:line 194
2023-07-27 18:46:43.7795|ERROR|Orleans.Runtime.SiloLifecycleSubject|Stopping lifecycle encountered an error at stage 20000. Continuing to stop.|System.InvalidOperationException: Unable to extract integer key from grain id sys.svc.us
er.49342BE4/172.16.3.94:11000@49459593
at Orleans.GrainExtensions.GetPrimaryKeyLong(IAddressable grain, String& keyExt) in //src/Orleans.Core.Abstractions/Core/GrainExtensions.cs:line 182
at Orleans.Runtime.Silo.OnActiveStop(CancellationToken ct) in //src/Orleans.Runtime/Silo/Silo.cs:line 614
at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStop(CancellationToken cancellationToken) in //src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs:line 163
at Orleans.LifecycleSubject.OnStop(CancellationToken cancellationToken) in //src/Orleans.Core/Lifecycle/LifecycleSubject.cs:line 194
The text was updated successfully, but these errors were encountered: