[JBoss JIRA] (ISPN-5899) ContinuousQuery tests should disable expiration reaper
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5899?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-5899:
--------------------------------
Component/s: Test Suite - Query
(was: Test Suite - Core)
> ContinuousQuery tests should disable expiration reaper
> ------------------------------------------------------
>
> Key: ISPN-5899
> URL: https://issues.jboss.org/browse/ISPN-5899
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Query
> Affects Versions: 8.1.0.Alpha2
> Reporter: William Burns
> Assignee: William Burns
> Priority: Blocker
> Fix For: 8.1.0.Beta1
>
>
> ContinuousQuery tests rely on an exact number of expiration events. Unfortunately if the reaper fires at the same time an entry is being expired you can get duplicate expiration events. We should disable the reaper to prevent these sporadic failures.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month
[JBoss JIRA] (ISPN-5899) ContinuousQuery tests should disable expiration reaper
by William Burns (JIRA)
William Burns created ISPN-5899:
-----------------------------------
Summary: ContinuousQuery tests should disable expiration reaper
Key: ISPN-5899
URL: https://issues.jboss.org/browse/ISPN-5899
Project: Infinispan
Issue Type: Bug
Affects Versions: 8.1.0.Alpha2
Reporter: William Burns
Assignee: William Burns
Fix For: 8.1.0.Beta1
ContinuousQuery tests rely on an exact number of expiration events. Unfortunately if the reaper fires at the same time an entry is being expired you can get duplicate expiration events. We should disable the reaper to prevent these sporadic failures.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
William Burns resolved ISPN-5855.
---------------------------------
Resolution: Done
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: William Burns
> Fix For: 8.0.2.Final, 8.1.0.Alpha2
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
William Burns edited comment on ISPN-5855 at 10/29/15 10:43 AM:
----------------------------------------------------------------
-That is odd, expiration reaper shouldn't be enabled unless it is explicitly enabled or they have a cache store supplied. As far as I can see from the test it isn't explicitly enabled and there is no cache store though, but I am not intimate with the test :)-
I for some reason thought reaper was disabled by default, but that is not the case.
was (Author: william.burns):
That is odd, expiration reaper shouldn't be enabled unless it is explicitly enabled or they have a cache store supplied. As far as I can see from the test it isn't explicitly enabled and there is no cache store though, but I am not intimate with the test :)
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: William Burns
> Fix For: 8.1.0.Alpha2, 8.0.2.Final
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
William Burns commented on ISPN-5855:
-------------------------------------
That is odd, expiration reaper shouldn't be enabled unless it is explicitly enabled or they have a cache store supplied. As far as I can see from the test it isn't explicitly enabled and there is no cache store though, but I am not intimate with the test :)
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: William Burns
> Fix For: 8.1.0.Alpha2, 8.0.2.Final
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
Dan Berindei reopened ISPN-5855:
--------------------------------
The test still fails some of the time, because the expiration reaper thread is enabled, and sometimes it runs in the 10 seconds it takes to check that there are no extra events for {{expiredUser1}} and {{expiredUser2}}. With this change, the test fails 100% of the time:
{code}
cfgBuilder.expiration().wakeUpInterval(5, TimeUnit.SECONDS);
{code}
The test should disable the expiration reaper, and maybe also inject a {{ControlledTimeService}} to control expiration.
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: William Burns
> Fix For: 8.1.0.Alpha2, 8.0.2.Final
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 1 month