[JBoss JIRA] (ISPN-7377) RPCs to non-members throw spurious TimeoutException
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-7377?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-7377:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/4784
> RPCs to non-members throw spurious TimeoutException
> ---------------------------------------------------
>
> Key: ISPN-7377
> URL: https://issues.jboss.org/browse/ISPN-7377
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.0.0.Beta1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.0.0.Beta2
>
>
> {{MessageDispatcher.cast()}} filters out the recipients that are not members in the JGroups view, and if none of the recipients are members, it returns an empty {{RspList}}.
> {{JGroupsTransport.invokeRemotelyAsync()}} instead expects that the {{RspList}} always contains a {{Rsp}} instance for each recipient, and it throws a {{TimeoutException}} if a {{Rsp}} is missing.
> {noformat}
> 19:26:36,088 INFO (jgroups-8,Test-NodeE-27588:[]) [JGroupsTransport] ISPN000094: Received new cluster view for channel ISPN: [Test-NodeE-27588|4] (3) [Test-NodeE-27588, Test-NodeF-40780, Test-NodeG-29022]
> 19:26:36,090 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] dests=[Test-NodeH-40364], command=StateRequestCommand{cache=dist, origin=Test-NodeE-27588, type=START_STATE_TRANSFER, topologyId=9, segments=[128, 1, 129, 130, 3, 4, 199, 200, 12, 144, 208, 145, 146, 92, 100, 101, 109, 110, 111, 112, 176, 49, 50, 51, 54, 188, 189, 253, 190, 127]}, mode=SYNCHRONOUS_IGNORE_LEAVERS, timeout=240000
> 19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] Responses: Responses{}
> 19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [RpcManagerImpl] Replication exception
> org.infinispan.util.concurrent.TimeoutException: Timed out waiting for valid responses!
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$invokeRemotelyAsync$2(JGroupsTransport.java:661) ~[classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (ISPN-7377) RPCs to non-members throw spurious TimeoutException
by Dan Berindei (JIRA)
Dan Berindei created ISPN-7377:
----------------------------------
Summary: RPCs to non-members throw spurious TimeoutException
Key: ISPN-7377
URL: https://issues.jboss.org/browse/ISPN-7377
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.0.0.Beta1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 9.0.0.Beta2
{{MessageDispatcher.cast()}} filters out the recipients that are not members in the JGroups view, and if none of the recipients are members, it returns an empty {{RspList}}.
{{JGroupsTransport.invokeRemotelyAsync()}} instead expects that the {{RspList}} always contains a {{Rsp}} instance for each recipient, and it throws a {{TimeoutException}} if a {{Rsp}} is missing.
{noformat}
19:26:36,088 INFO (jgroups-8,Test-NodeE-27588:[]) [JGroupsTransport] ISPN000094: Received new cluster view for channel ISPN: [Test-NodeE-27588|4] (3) [Test-NodeE-27588, Test-NodeF-40780, Test-NodeG-29022]
19:26:36,090 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] dests=[Test-NodeH-40364], command=StateRequestCommand{cache=dist, origin=Test-NodeE-27588, type=START_STATE_TRANSFER, topologyId=9, segments=[128, 1, 129, 130, 3, 4, 199, 200, 12, 144, 208, 145, 146, 92, 100, 101, 109, 110, 111, 112, 176, 49, 50, 51, 54, 188, 189, 253, 190, 127]}, mode=SYNCHRONOUS_IGNORE_LEAVERS, timeout=240000
19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] Responses: Responses{}
19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [RpcManagerImpl] Replication exception
org.infinispan.util.concurrent.TimeoutException: Timed out waiting for valid responses!
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$invokeRemotelyAsync$2(JGroupsTransport.java:661) ~[classes/:?]
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (ISPN-7377) RPCs to non-members throw spurious TimeoutException
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-7377?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-7377:
-------------------------------
Status: Open (was: New)
> RPCs to non-members throw spurious TimeoutException
> ---------------------------------------------------
>
> Key: ISPN-7377
> URL: https://issues.jboss.org/browse/ISPN-7377
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.0.0.Beta1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.0.0.Beta2
>
>
> {{MessageDispatcher.cast()}} filters out the recipients that are not members in the JGroups view, and if none of the recipients are members, it returns an empty {{RspList}}.
> {{JGroupsTransport.invokeRemotelyAsync()}} instead expects that the {{RspList}} always contains a {{Rsp}} instance for each recipient, and it throws a {{TimeoutException}} if a {{Rsp}} is missing.
> {noformat}
> 19:26:36,088 INFO (jgroups-8,Test-NodeE-27588:[]) [JGroupsTransport] ISPN000094: Received new cluster view for channel ISPN: [Test-NodeE-27588|4] (3) [Test-NodeE-27588, Test-NodeF-40780, Test-NodeG-29022]
> 19:26:36,090 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] dests=[Test-NodeH-40364], command=StateRequestCommand{cache=dist, origin=Test-NodeE-27588, type=START_STATE_TRANSFER, topologyId=9, segments=[128, 1, 129, 130, 3, 4, 199, 200, 12, 144, 208, 145, 146, 92, 100, 101, 109, 110, 111, 112, 176, 49, 50, 51, 54, 188, 189, 253, 190, 127]}, mode=SYNCHRONOUS_IGNORE_LEAVERS, timeout=240000
> 19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [JGroupsTransport] Responses: Responses{}
> 19:26:36,098 TRACE (stateTransferExecutor-thread-Test-NodeE-p16301-t3:[]) [RpcManagerImpl] Replication exception
> org.infinispan.util.concurrent.TimeoutException: Timed out waiting for valid responses!
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.lambda$invokeRemotelyAsync$2(JGroupsTransport.java:661) ~[classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months
[JBoss JIRA] (ISPN-7351) Support @Named in CDI extension
by Seto Kaiba (JIRA)
[ https://issues.jboss.org/browse/ISPN-7351?page=com.atlassian.jira.plugin.... ]
Seto Kaiba commented on ISPN-7351:
----------------------------------
The injection is working. The problem is not about @Named.
But the problem is org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer.getDefaultEmbeddedCacheManager(DefaultEmbeddedCacheManagerProducer.java:38) will inject the @Default Configuration. @Named is not treated as normal @Qualifier. The built-in @Default will be added.
Then ambiguous dependencies will occur.
Anyway, there's a simple workaround below.
Define a normal Qualifier called NamedCache.
{code:java}
@Qualifier
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NamedCache {
}
{code}
And then use it together with @Named to annotate the Configuration producer.
{code:java}
@ConfigureCache("named1")
@NamedCache
@Named("named1")
@Produces
public Configuration named1CacheConfig() {
return distributeConfig(defaultConfig()).build();
}
{code}
And then inject cache using @Named only.
{code:java}
@Inject
@Named("named1")
Cache<String,String> named1;
{code}
Still, ask for a multiple @ConfigureCache support.
> Support @Named in CDI extension
> -------------------------------
>
> Key: ISPN-7351
> URL: https://issues.jboss.org/browse/ISPN-7351
> Project: Infinispan
> Issue Type: Feature Request
> Components: CDI Integration
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
>
> Currently our users have to create lots and lots of {{@Qualifier}} type of annotations. It would be desirable to support {{@Named("driver")}} type of annotations.
> Useful links:
> * {{@Named}} Javadoc: http://docs.oracle.com/javaee/6/api/javax/inject/Named.html
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 11 months