You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "pengliang (JIRA)" <ji...@apache.org> on 2019/05/30 07:27:00 UTC

[jira] [Created] (SCB-1304) FallbackPolicy interface support returns an exception

pengliang created SCB-1304:
------------------------------

             Summary: 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
             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)