[JBoss JIRA] Created: (ISPN-608) Make the ReplicationQueue Listenable
by craig bomba (JIRA)
Make the ReplicationQueue Listenable
------------------------------------
Key: ISPN-608
URL: https://jira.jboss.org/browse/ISPN-608
Project: Infinispan
Issue Type: Feature Request
Components: Core API
Reporter: craig bomba
Assignee: craig bomba
Priority: Minor
We needed to make the ReplicationQueue listenable. We needed events for adding a command to and flushing the queue.
org.infinispan.factories.EmptyConstructorNamedCacheFactory
Just added ReplicationQueueNotifier.class to the @DefaultFactoryFor annotation.
org.infinispan.notifications.replicationqueuelistener.ReplicationQueueNotifier
Interface for the ReplicationQueue notifier.
org.infinispan.notifications.replicationqueuelistener.ReplicationQueueNotifierImpl
The ReplicationQueue notifier implementation. Supports events for adding and a command to and flushing the queue.
org.infinispan.notifications.replicationqueuelistener.annotation.Flush
org.infinispan.notifications.replicationqueuelistener.annotation.ReplicableCommandAdded
The bare annotations to add to ReplicationQueue listeners.
org.infinispan.notifications.replicationqueuelistener.event.Event
The interface for the command added and flush event implementations.
org.infinispan.notifications.replicationqueuelistener.event.FlushEvent
org.infinispan.notifications.replicationqueuelistener.event.ReplicableCommandAddedEvent
The event implementations.
org.infinispan.remoting.ReplicationQueue
Updated to implement listenable.
Throws the command added event AFTER it has been added to the queue. It includes the size of the queue AFTER the command has been added.
Throws the flush event AFTER the queue has been flushed. It includes the size of the queue to be flushed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (ISPN-678) Fix DistTopologyChangeTest-testDropServer and ReplTopologyChangeTest-testDropServer
by Galder Zamarreño (JIRA)
Fix DistTopologyChangeTest-testDropServer and ReplTopologyChangeTest-testDropServer
-----------------------------------------------------------------------------------
Key: ISPN-678
URL: https://jira.jboss.org/browse/ISPN-678
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Affects Versions: 4.2.0.ALPHA2
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.BETA1
The following tests are failing since ISPN-649 was implemented.
org.infinispan.client.hotrod.DistTopologyChangeTest.org.infinispan.client.hotrod.DistTopologyChangeTest-testDropServer
org.infinispan.client.hotrod.ReplTopologyChangeTest.org.infinispan.client.hotrod.ReplTopologyChangeTest-testDropServer
java.lang.IllegalStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:570)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:424)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:406)
at org.infinispan.client.hotrod.ReplTopologyChangeTest.testDropServer(ReplTopologyChangeTest.java:135)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (ISPN-674) Eviction notification throws NPE
by Vladimir Blagojevic (JIRA)
Eviction notification throws NPE
--------------------------------
Key: ISPN-674
URL: https://jira.jboss.org/browse/ISPN-674
Project: Infinispan
Issue Type: Bug
Components: Eviction, Listeners
Affects Versions: 4.2.0.ALPHA2, 4.1.0.Final
Reporter: Vladimir Blagojevic
Assignee: Vladimir Blagojevic
Fix For: 4.2.0.BETA1, 4.2.0.Final, 5.0.0.BETA1, 5.0.0.Final
Cache registered listener, like the one described in a code example below, throws null pointer exception upon eviction notification.
@Listener
public class EvictionListener {
@CacheEntryEvicted
public void nodeEvicted(CacheEntryEvictedEvent e){
...
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (ISPN-676) NullPointerException in CacheNotifierImpl.notifyCacheEntryEvicted
by Franck Garcia (JIRA)
NullPointerException in CacheNotifierImpl.notifyCacheEntryEvicted
-----------------------------------------------------------------
Key: ISPN-676
URL: https://jira.jboss.org/browse/ISPN-676
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.1.0.Final
Environment: ubuntu 10.04 i486 32bits, JVM 1.6_018-b07 Hotspot standalone app
Reporter: Franck Garcia
Assignee: Manik Surtani
I attached a @Listener to specifically listen on @CacheEntryEvicted event. But a NPE is thrown
java.lang.NullPointerException
at org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyCacheEntryEvicted(CacheNotifierImpl.java:192)
at org.infinispan.eviction.EvictionManagerImpl.preEvict(EvictionManagerImpl.java:147)
at org.infinispan.container.DefaultDataContainer$DefaultEvictionListener.preEvict(DefaultDataContainer.java:242)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap$LRU.execute(BoundedConcurrentHashMap.java:433)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap$Segment.put(BoundedConcurrentHashMap.java:977)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap.put(BoundedConcurrentHashMap.java:1487)
at org.infinispan.container.DefaultDataContainer.put(DefaultDataContainer.java:178)
at org.infinispan.container.entries.ReadCommittedEntry.commit(ReadCommittedEntry.java:160)
at org.infinispan.interceptors.DistLockingInterceptor.commitEntry(DistLockingInterceptor.java:33)
at org.infinispan.interceptors.LockingInterceptor.cleanupLocks(LockingInterceptor.java:281)
at org.infinispan.interceptors.LockingInterceptor.visitCommitCommand(LockingInterceptor.java:88)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.CacheStoreInterceptor.visitCommitCommand(CacheStoreInterceptor.java:136)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.NotificationInterceptor.visitCommitCommand(NotificationInterceptor.java:55)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.TxInterceptor.visitCommitCommand(TxInterceptor.java:101)
at org.infinispan.interceptors.DistTxInterceptor.visitCommitCommand(DistTxInterceptor.java:71)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:57)
at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:38)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:76)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:273)
at org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:113)
at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:304)
at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:97)
at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:96)
at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:130)
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:107)
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:92)
at org.infinispan.CacheDelegate.endBatch(CacheDelegate.java:375)
at org.infinispan.lucene.InfinispanIndexOutput.doFlush(InfinispanIndexOutput.java:169)
at org.infinispan.lucene.InfinispanIndexOutput.newChunk(InfinispanIndexOutput.java:100)
at org.infinispan.lucene.InfinispanIndexOutput.writeBytes(InfinispanIndexOutput.java:126)
at org.apache.lucene.store.IndexOutput.writeBytes(IndexOutput.java:43)
at org.apache.lucene.store.Directory.copy(Directory.java:197)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (ISPN-672) NPE in AtomicHashMapDelta.merge caused by TreeCache.put(Fqn, new HashMap())
by Scott Marlow (JIRA)
NPE in AtomicHashMapDelta.merge caused by TreeCache.put(Fqn, new HashMap())
---------------------------------------------------------------------------
Key: ISPN-672
URL: https://jira.jboss.org/browse/ISPN-672
Project: Infinispan
Issue Type: Bug
Affects Versions: 4.2.0.ALPHA2
Reporter: Scott Marlow
Assignee: Manik Surtani
I tried to test the fix for ISPN-639 and now get a NPE in AtomicHashMapDelta.merge.
2010-09-24 09:16:58,563 ERROR [org.infinispan.remoting.rpc.RpcManagerImpl] (RMI TCP Connection(4)-127.0.0.2) unexpected error while replicating: java.lang.NullPointerException
at org.infinispan.atomic.AtomicHashMapDelta.merge(AtomicHashMapDelta.java:58) [:4.2.0-SNAPSHOT]
at org.infinispan.commands.write.PutKeyValueCommand.perform(PutKeyValueCommand.java:94) [:4.2.0-SNAPSHOT]
at org.infinispan.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:71) [:4.2.0-SNAPSHOT]
.
.
.
exception call stack is at http://pastebin.com/ftfm99vW
The code that triggers the NPE originates from a different node than were the replication error occurs:
TreeCache cache = ...
Fqn newf = ...
cache.put(newf, new HashMap<String, Binding>());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months