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

Print warn log about config resolving failure while fetching config from Spring Environment

    XMLWordPrintableJSON

Details

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

    Description

      Currently the ConfigurationSpringInitializer is deployed to get the Environment from Spring. All of the config items in the Environment are fetched with the value resolved from the Environment. These config items are later inject into the configurations of ServiceComb-Java-Chassis.
      If there are some environment items with irregular value, the Spring Environment may fail to resolve the config item and throw an Exception, even though that environment items are not relative to the microservice instances.
      It's necessary to provide a switch to disable the Exception in this situation. If users don't want the boot up process to be interrupted by such failure, they can enable the suppression feature, then all of such Exceptions are caught and only warn logs are printed to show which config keys are failed to be resolved.

      Attachments

        Activity

          People

            pwx750881 pengliang
            yaohaishi Haishi Yao
            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 - 1h
                1h