Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1304

FallbackPolicy interface support returns an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.3.0
    • Java-Chassis
    • None

    Description

      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

       

      Attachments

        Activity

          People

            pwx750881 pengliang
            pwx750881 pengliang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m