You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/11/16 09:33:19 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2534: 如果在第三方接口注册前调用第三方接口 则后续注册之后也无法调用 报错

liubao68 edited a comment on issue #2534:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2534#issuecomment-970087269


   使用最新版本测试了下, 未能重现问题。 如果在 `onAfterRegistry` 之前调用服务, 会抛出异常(参考 SCBEngine. ensureStatusUp()):
   
   ```
     public void ensureStatusUp() {
       SCBStatus currentStatus = getStatus();
       if (!SCBStatus.UP.equals(currentStatus)) {
         String message =
             "The request is rejected. Cannot process the request due to STATUS = " + currentStatus;
         LOGGER.warn(message);
         throw new InvocationException(Status.SERVICE_UNAVAILABLE, new CommonExceptionData(message));
       }
     }
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org