apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.27k stars 1.15k forks source link

Flaky test under ExceptionManagerTest.java #5004

Closed yijut2 closed 7 months ago

yijut2 commented 7 months ago

Search before asking

Linkis Component

linkis-commons

Steps to reproduce

  1. mvn install -pl linkis-commons -am -DskipTests
  2. using the Nondex tools that are used to detect flakiness. mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl linkis-commons/linkis-common -Dtest=org.apache.linkis.common.exception.ExceptionManagerTest#testGenerateException
  3. Will see the failure log
    [ERROR]   ExceptionManagerTest.testGenerateException:55 expected: <LinkisException{errCode=10000, desc='The map cannot be parsed normally, the map is empty or the LEVEL value is missing:(map不能被正常的解析,map为空或者缺少LEVEL值: ){desc=test, port=0, errCode=1, level=null, ip=null, serviceKind=null}', ip='null', port=0, serviceKind='null'}> but was: <LinkisException{errCode=10000, desc='The map cannot be parsed normally, the map is empty or the LEVEL value is missing:(map不能被正常的解析,map为空或者缺少LEVEL值: ){errCode=1, ip=null, desc=test, port=0, level=null, serviceKind=null}', ip='null', port=0, serviceKind='null'}>
    [INFO] 
    [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

Expected behavior

The actual value for AssertEquals() should be <LinkisException{errCode=10000, desc='The map cannot be parsed normally, the map is empty or the LEVEL value is missing:(map不能被正常的解析,map为空或者缺少LEVEL值: ){desc=test, port=0, errCode=1, level=null, ip=null, serviceKind=null}', ip='null', port=0, serviceKind='null'}>

Your environment

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 7 months ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive