You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2024/12/09 09:30:00 UTC
[jira] [Updated] (IGNITE-23786) .NET: OverflowException on ErrorGroups.Common.Internal
[ https://issues.apache.org/jira/browse/IGNITE-23786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-23786:
------------------------------------
Release Note: .NET: Fixed OverflowException in ErrorGroups.GetErrorCode.
> .NET: OverflowException on ErrorGroups.Common.Internal
> ------------------------------------------------------
>
> Key: IGNITE-23786
> URL: https://issues.apache.org/jira/browse/IGNITE-23786
> Project: Ignite
> Issue Type: Bug
> Components: .NET, platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: ignite-3, important
> Fix For: 3.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Add the following to *ErrorGroupTests*:
> {code}
> [Test]
> public void TestExceptionProperties()
> {
> var ex = new IgniteException(Guid.Empty, ErrorGroups.Common.Internal, "msg");
> Assert.AreEqual(ErrorGroups.Common.Internal, ex.Code);
> Assert.AreEqual(-1, ex.ErrorCode);
> Assert.AreEqual("CMN", ex.GroupName);
> Assert.AreEqual("IGN-CMN-1", ex.CodeAsString);
> }
> {code}
> Result:
> {code}
> System.OverflowException : Arithmetic operation resulted in an overflow.
> at Apache.Ignite.ErrorGroups.GetErrorCode(Int32 fullCode) in /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite/ErrorGroups.cs:line 51
> at Apache.Ignite.IgniteException.get_ErrorCode() in /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite/IgniteException.cs:line 65
> at Apache.Ignite.Tests.ErrorGroupTests.TestExceptionProperties() in /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite.Tests/ErrorGroupTests.cs:line 197
> at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
> at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)