[
https://issues.apache.org/jira/browse/SCB-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
YaoHaishi reassigned SCB-1304:
------------------------------
Assignee: pengliang
> FallbackPolicy interface support returns an exception
> -----------------------------------------------------
>
> Key: SCB-1304
> URL: https://issues.apache.org/jira/browse/SCB-1304
> Project: Apache ServiceComb
> Issue Type: Bug
> Components: Java-Chassis
> Reporter: pengliang
> Assignee: pengliang
> Priority: Major
> Fix For: java-chassis-1.3.0
>
>
> *WHY*
> The service downgrade function opens the
> org.apache.servicecomb.bizkeeper.FallbackPolicy interface for users to extend
> the downgrade function, but the getFallbackResponse method of the interface
> only accepts Invocation, and does not receive exception information, causing
> the user to extend the interface to generate a downgrade response without
> knowing that the request failed. Due to what kind of abnormality, it may
> cause problems such as the retry mechanism does not take effect.
> *WHAT*
> Satisfying conditions will definitely happen
> *HOW*
> org.apache.servicecomb.bizkeeper.FallbackPolicyManager.getFallbackResponse(String
> type, Throwable error, Invocation invocation) Change the call to the
> FallbackPolicy interface, pass in the Throwable
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)