[jboss-jira] [JBoss JIRA] Assigned: (JBCLUSTER-237) Improve ClusterChooserInterceptor exception messages

Takayoshi Kimura (JIRA) jira-events at lists.jboss.org
Fri Jul 8 01:33:23 EDT 2011


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

Takayoshi Kimura reassigned JBCLUSTER-237:
------------------------------------------

    Assignee: Brian Stansberry  (was: Takayoshi Kimura)


Sorry for the noise. It was assigned to me by just single misclick without any confirmation :(

> Improve ClusterChooserInterceptor exception messages
> ----------------------------------------------------
>
>                 Key: JBCLUSTER-237
>                 URL: https://issues.jboss.org/browse/JBCLUSTER-237
>             Project: JBoss Clustering
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: HA-Client
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>            Priority: Minor
>             Fix For: HA-Client 2.0.0.BETA1
>
>
> Stuff like the following needs improvement:
> target = (InvokerLocator) lb.chooseTarget(family.get());
>          if (target == null)
>          {
>             if (lastException != null)
>             {
>                throw new RuntimeException("cluster invocation failed, last exception was: ", lastException);
>             }
>             else
>             {
>                throw new RuntimeException("cluster invocation failed");
>             }
>          }
>          failoverCounter++;
>       }
>       // if we get here this means list was exhausted
>       throw new RuntimeException("Unreachable?: Service unavailable.");

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list