[infinispan-issues] [JBoss JIRA] (ISPN-9394) Getting java.lang.ClassCastException after calling XSiteAdmin.status()

Jared Blashka (JIRA) issues at jboss.org
Wed Jul 18 13:04:00 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-9394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jared Blashka updated ISPN-9394:
--------------------------------
    Steps to Reproduce: 
Set up a 4 node cross-site cluster. Nodes a & b are in site1. Nodes c & d are in site2. I've attached a sample configuration.
Start all 4 hosts.
Stop a particular cluster on host 'a'. I used JMX jboss.datagrid-infinispan:type=Cache,name="sessions(repl_sync)",manager="clustered",component=Cache stop().
Call jboss.datagrid-infinispan:type=Cache,name="sessions(repl_sync)",manager="clustered",component=XSiteAdmin status() on host 'b'.

Expected Result: Some message like site2[ONLINE] or site2[MIXED, offline on nodes: [a]]
Actual Result: java.lang.ClassCastException: org.infinispan.remoting.responses.CacheNotFoundResponse cannot be cast to org.infinispan.remoting.responses.SuccessfulResponse

Using JDG 7.1.2. Not sure which ISPN that is, or if this is still an issue in master.

  was:
Set up a 4 node cross-site cluster. Nodes a & b are in site1. Nodes c & d are in site2. I've attached a sample configuration.
Start all 4 hosts.
Stop a particular cluster on host 'a'. I used JMX jboss.datagrid-infinispan:type=Cache,name="sessions(repl_sync)",manager="clustered",component=Cache stop().
Call jboss.datagrid-infinispan:type=Cache,name="sessions(repl_sync)",manager="clustered",component=XSiteAdmin status() on host 'b'.

Expected Result: Some message like site2[ONLINE] or site2[MIXED, offline on nodes: [a]]
Actual Result: java.lang.ClassCastException: org.infinispan.remoting.responses.CacheNotFoundResponse cannot be cast to org.infinispan.remoting.responses.SuccessfulResponse



> Getting java.lang.ClassCastException after calling XSiteAdmin.status()
> ----------------------------------------------------------------------
>
>                 Key: ISPN-9394
>                 URL: https://issues.jboss.org/browse/ISPN-9394
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cross-Site Replication
>            Reporter: Jared Blashka
>            Assignee: Pedro Ruivo
>            Priority: Minor
>         Attachments: clustered.xml
>
>
> I've got a cross-site cluster set up with 4 hosts (a,b) <-> (c,d). If I stop a particular cache on 'a' and then call XSiteAdmin.status() for that cache on 'b' I get "java.lang.ClassCastException: org.infinispan.remoting.responses.CacheNotFoundResponse cannot be cast to org.infinispan.remoting.responses.SuccessfulResponse". 
> XSiteAdmin.status() still works without any issues on 'c' and 'd' however 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list