You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/11/08 12:12:29 UTC

[servicecomb-java-chassis] branch master updated: [#3457]swaggerDifferent add post MicroserviceRegistrationEvent (#3465)

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new 9476c6df4 [#3457]swaggerDifferent add post MicroserviceRegistrationEvent (#3465)
9476c6df4 is described below

commit 9476c6df4316624e4fbfc2ae9383aa4a18381241
Author: chengyouling <97...@users.noreply.github.com>
AuthorDate: Tue Nov 8 20:12:22 2022 +0800

    [#3457]swaggerDifferent add post MicroserviceRegistrationEvent (#3465)
---
 .../servicecomb/service/center/client/ServiceCenterRegistration.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java b/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
index bb9021339..53fba460e 100644
--- a/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
+++ b/clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java
@@ -150,6 +150,7 @@ public class ServiceCenterRegistration extends AbstractTask {
           if (isSwaggerDifferent(newMicroservice)) {
             if (serviceCenterConfiguration.isCanOverwriteSwagger()) {
               LOGGER.warn("Service has already registered, but schema ids not equal, try to register it again");
+              eventBus.post(new MicroserviceRegistrationEvent(true));
               startTask(new RegisterSchemaTask(0));
               return;
             }