Andrey Mashenkov created IGNITE-13032:
-----------------------------------------
Summary: Fix flacky OptimizedMarshallerPooledSelfTest.
Key: IGNITE-13032
URL:
https://issues.apache.org/jira/browse/IGNITE-13032 Project: Ignite
Issue Type: Task
Components: binary
Affects Versions: 2.7
Reporter: Andrey Mashenkov
Fix For: 2.9
There are two flaky tests in the test case: {{OptimizedMarshallerPooledSelfTest#testEvents}} and {{OptimizedMarshallerPooledSelfTest#testServices}}. The tests timeout, the reason is the following assertion:
{noformat}
[00:39:14]W: [org.gridgain:ignite-core] java.lang.AssertionError
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.marshaller.optimized.OptimizedObjectStreamRegistry.closeOut(OptimizedObjectStreamRegistry.java:120)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller.marshal0(OptimizedMarshaller.java:209)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:56)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:10658)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:10722)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsFullMessage.partitionSizes(GridDhtPartitionsFullMessage.java:360)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager.createPartitionsFullMessage(GridCachePartitionExchangeManager.java:1543)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager.createPartitionsFullMessage(GridCachePartitionExchangeManager.java:1442)
[00:39:14]W: [org.gridgain:ignite-core] at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.createPartitionsMessage(GridDhtPartitionsExchangeFuture.java:2116){noformat}
Looks like the assertion fails because we attempt to return a stream to the pool which does not belong to it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)