[JBoss JIRA] (ISPN-8712) BiasRevocationTest.testFailedRevocationDuringPutAllOnNonOwnerThrowBefore random failures
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8712?page=com.atlassian.jira.plugin.... ]
Radim Vansa updated ISPN-8712:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> BiasRevocationTest.testFailedRevocationDuringPutAllOnNonOwnerThrowBefore random failures
> ----------------------------------------------------------------------------------------
>
> Key: ISPN-8712
> URL: https://issues.jboss.org/browse/ISPN-8712
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 9.2.0.CR1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Critical
> Labels: testsuite_stability
> Fix For: 9.2.0.CR2
>
> Attachments: BiasRevocationTest_ISPN-8644_RemoteGetDuringStateTransferTest_20180116.log.gz
>
>
> The test doesn't wait for the cluster to form before issuing a write operation. After a topology change, the retried command fails on the primary owner with a {{NullPointerException}}:
> {noformat}
> 00:44:52,166 TRACE (remote-thread-Test-NodeA-p63633-t5:[]) [TrianglePerCacheInboundInvocationHandler] Topology changed, retrying: org.infinispan.statetransfer.OutdatedTopologyException
> 00:44:52,166 TRACE (remote-thread-Test-NodeA-p63633-t5:[]) [TrianglePerCacheInboundInvocationHandler] Sending exception ack for command CommandInvocation:Test-NodeB-50920:99611. Originator=Test-NodeB-50920.
> 00:44:52,166 TRACE (remote-thread-Test-NodeA-p63633-t5:[]) [JGroupsTransport] Test-NodeA-62783 sending command to Test-NodeB-50920: ExceptionAckCommand{id=99611, throwable=org.infinispan.remoting.RemoteException: Exception on Test-NodeA-62783, topologyId=4}
> 00:44:52,167 TRACE (jgroups-6,Test-NodeB-50920:[]) [JGroupsTransport] Test-NodeB-50920 received command from Test-NodeA-62783: ExceptionAckCommand{id=99611, throwable=org.infinispan.remoting.RemoteException: Exception on Test-NodeA-62783, topologyId=4}
> 00:44:52,177 TRACE (jgroups-6,Test-NodeB-50920:[]) [EntryWrappingInterceptor] This is a retry - resetting previous values for [MagicKey{2379/BEF29B28/0@Test-NodeA-62783}]
> 00:44:52,177 ERROR (jgroups-6,Test-NodeB-50920:[]) [InvocationContextInterceptor] ISPN000136: Error executing command PutMapCommand, writing keys [MagicKey{2379/BEF29B28/0@Test-NodeA-62783}]
> java.lang.NullPointerException: null
> at org.infinispan.interceptors.impl.EntryWrappingInterceptor.removeFromContextOnRetry(EntryWrappingInterceptor.java:357) ~[classes/:?]
> at org.infinispan.interceptors.impl.EntryWrappingInterceptor.visitPutMapCommand(EntryWrappingInterceptor.java:393) ~[classes/:?]
> at org.infinispan.commands.write.PutMapCommand.acceptVisitor(PutMapCommand.java:80) ~[classes/:?]
> at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) ~[classes/:?]
> at org.infinispan.interceptors.impl.PrefetchInterceptor.handleWriteManyCommand(PrefetchInterceptor.java:394) ~[classes/:?]
> at org.infinispan.interceptors.impl.PrefetchInterceptor.visitPutMapCommand(PrefetchInterceptor.java:450) ~[classes/:?]
> at org.infinispan.commands.write.PutMapCommand.acceptVisitor(PutMapCommand.java:80) ~[classes/:?]
> at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndHandle(BaseAsyncInterceptor.java:188) ~[classes/:?]
> at org.infinispan.interceptors.impl.BaseStateTransferInterceptor.retryWhenDone(BaseStateTransferInterceptor.java:157) ~[classes/:?]
> at org.infinispan.statetransfer.StateTransferInterceptor.handleNonTxWriteReturn(StateTransferInterceptor.java:338) ~[classes/:?]
> at org.infinispan.interceptors.impl.QueueAsyncInvocationStage.invokeQueuedHandlers(QueueAsyncInvocationStage.java:118) ~[classes/:?]
> at org.infinispan.interceptors.impl.QueueAsyncInvocationStage.accept(QueueAsyncInvocationStage.java:81) ~[classes/:?]
> at org.infinispan.interceptors.impl.QueueAsyncInvocationStage.accept(QueueAsyncInvocationStage.java:30) ~[classes/:?]
> at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) ~[?:1.8.0_152]
> at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) ~[?:1.8.0_152]
> at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[?:1.8.0_152]
> at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[?:1.8.0_152]
> at org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor$SyncMergingCompletableFuture.completeExceptionally(ScatteredDistributionInterceptor.java:1397) ~[classes/:?]
> at org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor.lambda$handleWriteManyOnOrigin$25(ScatteredDistributionInterceptor.java:1014) ~[classes/:?]
> at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) [?:1.8.0_152]
> at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) [?:1.8.0_152]
> at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [?:1.8.0_152]
> at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) [?:1.8.0_152]
> at org.infinispan.util.concurrent.CommandAckCollector$CombiningCollector.primaryException(CommandAckCollector.java:553) [classes/:?]
> at org.infinispan.util.concurrent.CommandAckCollector$MultiAckTarget.completeExceptionally(CommandAckCollector.java:641) [classes/:?]
> at org.infinispan.util.concurrent.CommandAckCollector.completeExceptionally(CommandAckCollector.java:206) [classes/:?]
> at org.infinispan.commands.write.ExceptionAckCommand.ack(ExceptionAckCommand.java:43) [classes/:?]
> at org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler.handleExceptionAck(TrianglePerCacheInboundInvocationHandler.java:212) [classes/:?]
> at org.infinispan.remoting.inboundhandler.TrianglePerCacheInboundInvocationHandler.handle(TrianglePerCacheInboundInvocationHandler.java:112) [classes/:?]
> at org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler.handleCacheRpcCommand(GlobalInboundInvocationHandler.java:120) [classes/:?]
> at org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler.handleFromCluster(GlobalInboundInvocationHandler.java:79) [classes/:?]
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processRequest(JGroupsTransport.java:1295) [classes/:?]
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1219) [classes/:?]
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$200(JGroupsTransport.java:124) [classes/:?]
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.receive(JGroupsTransport.java:1357) [classes/:?]
> 00:44:52,205 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.scattered.BiasRevocationTest.testFailedRevocationDuringPutAllOnNonOwnerThrowBefore
> java.lang.AssertionError: Wrong exception thrown: expected:<org.infinispan.util.concurrent.TimeoutException>, actual:<org.infinispan.commons.CacheException>
> at org.infinispan.test.Exceptions.assertException(Exceptions.java:22) ~[test-classes/:?]
> at org.infinispan.test.Exceptions.expectException(Exceptions.java:99) ~[test-classes/:?]
> at org.infinispan.scattered.BiasRevocationTest.testFailedRevocation(BiasRevocationTest.java:105) ~[test-classes/:?]
> at org.infinispan.scattered.BiasRevocationTest.testFailedRevocationDuringPutAllOnNonOwnerThrowBefore(BiasRevocationTest.java:82) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months
[JBoss JIRA] (ISPN-8715) Local counters
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-8715?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero updated ISPN-8715:
----------------------------------
Fix Version/s: 9.2.0.Final
9.2.0.CR2
> Local counters
> --------------
>
> Key: ISPN-8715
> URL: https://issues.jboss.org/browse/ISPN-8715
> Project: Infinispan
> Issue Type: Feature Request
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Fix For: 9.2.0.Final, 9.2.0.CR2
>
>
> If the cache manager doesn't have a transport configured, we don't allow the creation of counters.
> We can add non-local counters for that scenario.
> The counters created will be based on the {{GlobalConfiguration}} used.
> Note: WeakCounters supported?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months
[JBoss JIRA] (ISPN-8715) Local counters
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-8715?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero commented on ISPN-8715:
---------------------------------------
Yes! And please allow both weak counters and strong counters; they don't have to be strictly implemented differently but they should respect your own specification.
It is very important that an Infinispan node can be started in local mode while having the same features as booting in cluster mode, as people will use this for integration tests.
Please be adamant in making all APIs normally exposed in cluster mode work with same semnatics in local mode - except scale of course.
> Local counters
> --------------
>
> Key: ISPN-8715
> URL: https://issues.jboss.org/browse/ISPN-8715
> Project: Infinispan
> Issue Type: Feature Request
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
>
> If the cache manager doesn't have a transport configured, we don't allow the creation of counters.
> We can add non-local counters for that scenario.
> The counters created will be based on the {{GlobalConfiguration}} used.
> Note: WeakCounters supported?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months
[JBoss JIRA] (ISPN-8616) DistAsyncFuncTest.testMergeFromNonOwner random failures
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8616?page=com.atlassian.jira.plugin.... ]
Radim Vansa updated ISPN-8616:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5693
> DistAsyncFuncTest.testMergeFromNonOwner random failures
> -------------------------------------------------------
>
> Key: ISPN-8616
> URL: https://issues.jboss.org/browse/ISPN-8616
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 9.2.0.Beta1
> Reporter: Dan Berindei
> Assignee: Radim Vansa
> Labels: testsuite_stability
>
> {noformat}
> java.lang.AssertionError: Fail on owner cache DistAsyncFuncTest[DIST_ASYNC, tx=false]-NodeA-42474: dc.get(k1) returned null
> at org.infinispan.distribution.BaseDistFunctionalTest.assertOwnershipAndNonOwnership(BaseDistFunctionalTest.java:191)
> at org.infinispan.distribution.BaseDistFunctionalTest.assertOnAllCachesAndOwnership(BaseDistFunctionalTest.java:162)
> at org.infinispan.distribution.BaseDistFunctionalTest.initAndTest(BaseDistFunctionalTest.java:142)
> at org.infinispan.distribution.DistSyncFuncTest.testMergeFromNonOwner(DistSyncFuncTest.java:387)
> {noformat}
> The test method is new and the interceptors have changed, but it's probably the same problem with {{asyncWait}} signaled in ISPN-3741. I commented out the entire implementation of {{asyncWait}} in {{DistAsyncFuncTest}} and it still passed when run by itself, so we need a way to delay the commands and check that the test is not sensitive to such delays.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months
[JBoss JIRA] (ISPN-8715) Local counters
by Pedro Ruivo (JIRA)
[ https://issues.jboss.org/browse/ISPN-8715?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo updated ISPN-8715:
------------------------------
Description:
If the cache manager doesn't have a transport configured, we don't allow the creation of counters.
We can add non-local counters for that scenario.
The counters created will be based on the {{GlobalConfiguration}} used.
Note: WeakCounters supported?
was:
If the cache manager doesn't have a transport configured, we don't allow the creation of counters.
We can add non-local counters for that scenario.
The counters created will be based on the {{GlobalConfiguration}} used.
> Local counters
> --------------
>
> Key: ISPN-8715
> URL: https://issues.jboss.org/browse/ISPN-8715
> Project: Infinispan
> Issue Type: Feature Request
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
>
> If the cache manager doesn't have a transport configured, we don't allow the creation of counters.
> We can add non-local counters for that scenario.
> The counters created will be based on the {{GlobalConfiguration}} used.
> Note: WeakCounters supported?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 4 months