[JBoss JIRA] (ISPN-9716) Update internal remote listener code to support non blocking
by William Burns (Jira)
William Burns created ISPN-9716:
-----------------------------------
Summary: Update internal remote listener code to support non blocking
Key: ISPN-9716
URL: https://issues.jboss.org/browse/ISPN-9716
Project: Infinispan
Issue Type: Sub-task
Components: Listeners
Reporter: William Burns
Assignee: William Burns
With ISPN-9714 we will not be able to have non blocking listeners. We need to update all of our remote listeners to use non blocking properly.
Note that the client listeners themselves currently do not send a response, so this does not mean to update our client listener objects, but rather the code supporting them (ie. ClientListenerRegistry).
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 1 month
[JBoss JIRA] (ISPN-9715) Update internal embedded listeners to be non blocking
by William Burns (Jira)
William Burns created ISPN-9715:
-----------------------------------
Summary: Update internal embedded listeners to be non blocking
Key: ISPN-9715
URL: https://issues.jboss.org/browse/ISPN-9715
Project: Infinispan
Issue Type: Sub-task
Components: Core, Listeners
Reporter: William Burns
With ISPN-9714 it will be possible to have a listener perform non blocking operations. Also any listener that doesn't return a CompletionStage is invoked in a different thread. We should convert all of our internal listeners to return a CompletionStage if they can, so that we don't have to incur the cost of switching threads to execute them.
We need to ensure that all embedded listeners return a CompletionStage and never block the current thread.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 1 month
[JBoss JIRA] (ISPN-9714) Update CacheNotifier to return CompletionStage
by William Burns (Jira)
William Burns created ISPN-9714:
-----------------------------------
Summary: Update CacheNotifier to return CompletionStage
Key: ISPN-9714
URL: https://issues.jboss.org/browse/ISPN-9714
Project: Infinispan
Issue Type: Sub-task
Components: Core, Listeners
Reporter: William Burns
Assignee: William Burns
Fix For: 10.0.0.Alpha1
We need to update CacheNotifier to return CompletionStage for all its appropriate methods. We also need to update all the internals to use these appropriately.
Not all notification usages may provide support non blocking, but our listener internals should support non blocking listeners for all.
The simplest way internally is to treat all current listeners as "alien" and invoke them in the notification thread pool. If it is sync we would wait for this task to complete. We would also now allow a listener to return a CompletionStage. If this is returned we will use this operate in a non blocking way.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 1 month
[JBoss JIRA] (ISPN-9713) RehashClusterListenerTest can fail due to ordering of tests
by William Burns (Jira)
William Burns created ISPN-9713:
-----------------------------------
Summary: RehashClusterListenerTest can fail due to ordering of tests
Key: ISPN-9713
URL: https://issues.jboss.org/browse/ISPN-9713
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Reporter: William Burns
Assignee: William Burns
The RehashClusterListenerTest verifies that when an entry is moved due to state transfer that it doesn't generate events. Unfortunately during the afterMethod it doesn't force a rebalance to ensure the CH is in the correct state for every test. We should change this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 1 month