Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9394

Getting java.lang.ClassCastException after calling XSiteAdmin.status()

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • DataGrid Sprint #34, DataGrid Sprint #36
    • Hide

      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.

      Show
      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.

      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

              pruivo@redhat.com Pedro Ruivo
              rhit_jblashka Jared Blashka (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: