ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Plekhanov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5977) [Test Failed] IgniteClientDiscoveryDataStructuresTest.testSequence
Date Thu, 10 May 2018 07:48:00 GMT

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

Aleksey Plekhanov commented on IGNITE-5977:
-------------------------------------------

The same failure now in tests {{IgniteClientDataStructuresTest.testSequence}} and  {{IgniteClientDataStructuresTest.testReentrantLock}}:

{noformat}
junit.framework.AssertionFailedError: Expected: <null> but was: GridCacheAtomicSequenceImpl
[locVal=1001, upBound=2000, batchSize=1000, incAndGetCall=org.apache.ignite.internal.processors.datastructures.GridCacheAtomicSequenceImpl$2@25a74425,
getAndIncCall=org.apache.ignite.internal.processors.datastructures.GridCacheAtomicSequenceImpl$2@366f4fb5]
    at junit.framework.Assert.fail(Assert.java:57)
    at junit.framework.Assert.assertTrue(Assert.java:22)
    at junit.framework.Assert.assertNull(Assert.java:277)
    at junit.framework.Assert.assertNull(Assert.java:268)
    at junit.framework.TestCase.assertNull(TestCase.java:438)
    at org.apache.ignite.internal.processors.cache.datastructures.IgniteClientDataStructuresAbstractTest.testSequence(IgniteClientDataStructuresAbstractTest.java:123)
    at org.apache.ignite.internal.processors.cache.datastructures.IgniteClientDataStructuresAbstractTest.testSequence(IgniteClientDataStructuresAbstractTest.java:96)
{noformat}

When we trying to get data structure after closing, in some cases we get not removed value
from dsMap. This can happen because data structure removed from cache synchronously and removed
from dsMap asynchronously. 

I think we should change test to check two cases: 
# Data structure is invalid after closing (can't perform any operation with DS)
# After some time {{atomicSequence}} and {{reentrantLock}} methods return null (replace {{assertNull}}
with {{waitForCondition}})

> [Test Failed]  IgniteClientDiscoveryDataStructuresTest.testSequence
> -------------------------------------------------------------------
>
>                 Key: IGNITE-5977
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5977
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Eduard Shangareev
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain
>
> Fails locally.
> Example of failing http://ci.ignite.apache.org/viewLog.html?buildId=760759&tab=buildResultsDiv&buildTypeId=Ignite20Tests_IgniteDataStrucutures#testNameId2829619862655631000



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message