You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2021/01/06 14:00:03 UTC

[jira] [Commented] (IGNITE-12090) .NET: logger throws KeyNotFound on creating cache with nullable 'sbyte?' field

    [ https://issues.apache.org/jira/browse/IGNITE-12090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259730#comment-17259730 ] 

Ignite TC Bot commented on IGNITE-12090:
----------------------------------------

{panel:title=Branch: [pull/8632/head] Base: [master] : Possible Blockers (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Queries 1{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=5817864]]
* IgniteBinaryCacheQueryTestSuite: DynamicIndexServerNodeFIlterBasicSelfTest.testCreateIndexWithInlineSizePartitionedAtomicNear - Test has low fail rate in base branch 0,0% and is not flaky

{panel}
{panel:title=Branch: [pull/8632/head] Base: [master] : New Tests (22)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Platform .NET (Core Linux){color} [[tests 11|https://ci.ignite.apache.org/viewLog.html?buildId=5817859]]
* {color:#013220}dll: Integer&quot;,System.Int32) - PASSED{color}
* {color:#013220}dll: Long&quot;,System.Int64) - PASSED{color}
* {color:#013220}dll: TestCacheCreationWithDirectQueryEntityMappingsDoesNotLogWarnings(System.Int32) - PASSED{color}
* {color:#013220}dll: Log.CustomLoggerTest+LogEntry) - PASSED{color}
* {color:#013220}dll: Log.CustomLoggerTest) - PASSED{color}
* {color:#013220}dll: Nullable`1[System.Int32]) - PASSED{color}
* {color:#013220}dll: TestCacheCreationWithDirectQueryEntityMappingsDoesNotLogWarnings(System.String) - PASSED{color}
* {color:#013220}dll: Byte&quot;,System.Byte) - PASSED{color}
* {color:#013220}dll: Short&quot;,System.Int16) - PASSED{color}
* {color:#013220}dll: Log.CustomLoggerTest+CustomEnum) - PASSED{color}
* {color:#013220}dll: Log.CustomLoggerTest+CustomEnum]) - PASSED{color}
... and 0 new tests

{color:#00008b}Platform .NET{color} [[tests 11|https://ci.ignite.apache.org/viewLog.html?buildId=5817858]]
* {color:#013220}exe: TestCacheCreationWithDirectQueryEntityMappingsDoesNotLogWarnings(System.String) - PASSED{color}
* {color:#013220}exe: Log.CustomLoggerTest+LogEntry) - PASSED{color}
* {color:#013220}exe: TestCacheCreationWithDirectQueryEntityMappingsDoesNotLogWarnings(System.Int32) - PASSED{color}
* {color:#013220}exe: Log.CustomLoggerTest+CustomEnum]) - PASSED{color}
* {color:#013220}exe: Log.CustomLoggerTest) - PASSED{color}
* {color:#013220}exe: Log.CustomLoggerTest+CustomEnum) - PASSED{color}
* {color:#013220}exe: Nullable`1[System.Int32]) - PASSED{color}
* {color:#013220}exe: Short&quot;,System.Int16) - PASSED{color}
* {color:#013220}exe: Integer&quot;,System.Int32) - PASSED{color}
* {color:#013220}exe: Byte&quot;,System.Byte) - PASSED{color}
* {color:#013220}exe: Long&quot;,System.Int64) - PASSED{color}
... and 0 new tests

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=5817883&amp;buildTypeId=IgniteTests24Java8_RunAll]

> .NET: logger throws KeyNotFound on creating cache with nullable 'sbyte?' field
> ------------------------------------------------------------------------------
>
>                 Key: IGNITE-12090
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12090
>             Project: Ignite
>          Issue Type: Bug
>          Components: binary, platforms
>    Affects Versions: 2.7.5
>            Reporter: Denis Zakharov
>            Assignee: Alexandr Shapkin
>            Priority: Major
>              Labels: .NET
>         Attachments: a.cs
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  
> Logger throws KeyNotFound exception if NetToJava[type] doesn't have a _type_ key.
> Looks like we need to replace it with NetToJava[directType].
> {code:java}
> public static void LogIndirectMappingWarning(Type type, ILogger log, string logInfo)
>  {
>  if (type == null)
>  return;
> var directType = GetDirectlyMappedType(type);
> if (directType == type)
>  return;
> log.Warn("{0}: Type '{1}' maps to Java type '{2}' using unchecked conversion. " +
>  "This may cause issues in SQL queries. " +
>  "You can use '{3}' instead to achieve direct mapping.",
>  logInfo, type, NetToJava[type], directType);
>  }
> {code}
>  
> Steps to reproduce:
> Define a QueryEntity with a sbyte? nullable field, try to create a cache. The reproducer is attached.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)