You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2022/09/29 13:07:00 UTC

[jira] [Resolved] (SCB-2312) The UT TestVertxMetersInitializer may fail when the test server is assigned a 4-digit port number

     [ https://issues.apache.org/jira/browse/SCB-2312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liubao resolved SCB-2312.
-------------------------
    Resolution: Fixed

> The UT TestVertxMetersInitializer may fail when the test server is assigned a 4-digit port number
> -------------------------------------------------------------------------------------------------
>
>                 Key: SCB-2312
>                 URL: https://issues.apache.org/jira/browse/SCB-2312
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: GYjack
>            Priority: Major
>
> The key code line is at
> [servicecomb-java-chassis/metrics/metrics-core/src/test/java/org/apache/servicecomb/metrics/core/TestVertxMetersInitializer.java|https://github.com/apache/servicecomb-java-chassis/blob/a063df553aaa0cbdefce4c7f5aaeabba7cc1d466/metrics/metrics-core/src/test/java/org/apache/servicecomb/metrics/core/TestVertxMetersInitializer.java#L169]
> Line 169 inĀ [a063df5|https://github.com/apache/servicecomb-java-chassis/commit/a063df553aaa0cbdefce4c7f5aaeabba7cc1d466]
> in the end of this line, the port number is filled into a place holderĀ {{%-5s}}, which means if the port number is 4-digit, there will be a space at the end. But if a microservice instance is actually assigned a 4-digit portnumber, the metrics log will only write the port number without any unnecessary space character.
> !https://user-images.githubusercontent.com/22049770/123731312-7dc52e80-d8ca-11eb-8c22-535833299393.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)