Skip to content
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

Closed
FarseerSky opened this issue Jul 27, 2023 · 2 comments

Comments

@FarseerSky
Copy link

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

@ghost ghost added the Needs: triage 🔍 label Jul 27, 2023
@vnup
Copy link

vnup commented Sep 26, 2023

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)
System.InvalidOperationException: Unable to extract integer key from grain id sys.svc.user.95B6CAE6/10.19.1.68:10025@54740703
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
"

@ReubenBond
Copy link
Member

Fixed in #8701 (thank you, @peter-perot!)

ReubenBond pushed a commit to ReubenBond/orleans that referenced this issue Dec 2, 2023
ReubenBond added a commit that referenced this issue Dec 2, 2023
Co-authored-by: peter-perot <peter-perot@users.noreply.github.com>
ReubenBond added a commit that referenced this issue Dec 2, 2023
Co-authored-by: peter-perot <peter-perot@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants