[
https://issues.apache.org/jira/browse/IGNITE-5338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16029378#comment-16029378
]
Pavel Tupitsyn edited comment on IGNITE-5338 at 5/30/17 12:50 PM:
------------------------------------------------------------------
Found the problem. NUnit runner on TeamCity attaches its own console listener,
{{NUnit.Core.EventListenerTextWriter}}, and it appears in the log4net object
graph (inside {{log4net.Util.QuietTextWriter}}). And somewhere deeper there is
a {{WaitHandle}}, which can't be serialized.
So there is no bug in Ignite, we should just fix the test and get rid of
log4net there.
Full log for the history:
{code}
Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize object
'Apache.Ignite.Core.Impl.Compute.ComputeJobHolder' of type
'Apache.Ignite.Core.Impl.Compute.ComputeJobHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Compute.Closure.ComputeOutFuncJob' of type
'Apache.Ignite.Core.Impl.Compute.Closure.ComputeOutFuncJob'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Compute.ComputeOutFuncWrapper' of type
'Apache.Ignite.Core.Impl.Compute.ComputeOutFuncWrapper'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Tests.Deployment.ProcessNameFunc' of type
'Apache.Ignite.Core.Tests.Deployment.ProcessNameFunc'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Tests.Deployment.ProcessNameFunc' of type
'Apache.Ignite.Core.Tests.Deployment.ProcessNameFunc'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Log4Net.IgniteLog4NetLogger' of type
'Apache.Ignite.Log4Net.IgniteLog4NetLogger'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Log4Net.IgniteLog4NetLogger' of type
'Apache.Ignite.Log4Net.IgniteLog4NetLogger'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Core.LogImpl' of type 'log4net.Core.LogImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Core.LogImpl' of type 'log4net.Core.LogImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl' of type
'log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl' of type
'log4net.Repository.Hierarchy.DefaultLoggerFactory+LoggerImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.Hierarchy' of type
'log4net.Repository.Hierarchy.Hierarchy'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.Hierarchy' of type
'log4net.Repository.Hierarchy.Hierarchy'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.RootLogger' of type
'log4net.Repository.Hierarchy.RootLogger'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Repository.Hierarchy.RootLogger' of type
'log4net.Repository.Hierarchy.RootLogger'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Util.AppenderAttachedImpl' of type
'log4net.Util.AppenderAttachedImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Util.AppenderAttachedImpl' of type
'log4net.Util.AppenderAttachedImpl'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Appender.AppenderCollection' of type
'log4net.Appender.AppenderCollection'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Appender.AppenderCollection' of type
'log4net.Appender.AppenderCollection'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Appender.TextWriterAppender' of type
'log4net.Appender.TextWriterAppender'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Appender.TextWriterAppender' of type
'log4net.Appender.TextWriterAppender'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Util.QuietTextWriter' of type 'log4net.Util.QuietTextWriter'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'log4net.Util.QuietTextWriter' of type 'log4net.Util.QuietTextWriter'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.EventListenerTextWriter' of type
'NUnit.Core.EventListenerTextWriter'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.EventListenerTextWriter' of type
'NUnit.Core.EventListenerTextWriter'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.QueuingEventListener' of type
'NUnit.Core.QueuingEventListener'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.QueuingEventListener' of type
'NUnit.Core.QueuingEventListener'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.EventQueue' of type 'NUnit.Core.EventQueue'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'NUnit.Core.EventQueue' of type 'NUnit.Core.EventQueue'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'System.Threading.AutoResetEvent' of type
'System.Threading.AutoResetEvent'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder' of type
'Apache.Ignite.Core.Impl.Deployment.PeerLoadingObjectHolder'
----> Apache.Ignite.Core.Binary.BinaryObjectException : Failed to serialize
object 'System.Threading.AutoResetEvent' of type
'System.Threading.AutoResetEvent'
----> Apache.Ignite.Core.Common.IgniteException : Unsupported primitive type
'System.IntPtr' [Field=IntPtr waitHandle,
DeclaringType=System.Threading.WaitHandle
{code}
was (Author: ptupitsyn):
Found the problem. NUnit runner on TeamCity attaches its own console listener,
{{NUnit.Core.EventListenerTextWriter}}, and it appears in the log4net object
graph (inside {{log4net.Util.QuietTextWriter}}). And somewhere deeper there is
a {{WaitHandle}}, which can't be serialized.
So there is no bug in Ignite, we should just fix the test and get rid of
log4net there.
> .NET: TestMultipleAssembliesIndirectDependencyMultiLevel fails on TC
> --------------------------------------------------------------------
>
> Key: IGNITE-5338
> URL: https://issues.apache.org/jira/browse/IGNITE-5338
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Labels: .NET
> Fix For: 2.1
>
>
> {{PeerAssemblyLoadingTest.TestMultipleAssembliesIndirectDependencyMultiLevel}}
> fails on TC. Does not reproduce locally.
> The problem is that we try to serialize WaitHandle for some reason, and this
> does not happen locally.
> Try to add debug output to see the entire object graph.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)