Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13032

Fix flacky OptimizedMarshallerPooledSelfTest.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.9
    • binary
    • None

    Description

      There are two flaky tests in the test case: OptimizedMarshallerPooledSelfTest#testEvents and OptimizedMarshallerPooledSelfTest#testServices. The tests timeout, the reason is the following assertion:

      [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)

      Looks like the assertion fails because we attempt to return a stream to the pool which does not belong to it.

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h