Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt format code #2458

Merged
merged 4 commits into from
Jul 16, 2022
Merged

Opt format code #2458

merged 4 commits into from
Jul 16, 2022

Conversation

jackxu2011
Copy link
Contributor

What is the purpose of the change

refactor some code
ref to #1475

Brief change log

(for example:)

  • format some code

Verifying this change

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • Anything that affects deployment: no
  • The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway, OpenFeign, Eureka.: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@codecov
Copy link

codecov bot commented Jul 12, 2022

Codecov Report

Merging #2458 (586056d) into dev-1.2.0 (c9cb9d7) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##             dev-1.2.0    #2458      +/-   ##
===============================================
- Coverage        16.65%   16.64%   -0.02%     
+ Complexity        1106     1105       -1     
===============================================
  Files              636      636              
  Lines            19529    19529              
  Branches          2770     2770              
===============================================
- Hits              3252     3250       -2     
- Misses           15841    15843       +2     
  Partials           436      436              
Impacted Files Coverage Δ
...che/linkis/rpc/message/method/MessageExecutor.java 0.00% <0.00%> (ø)
...inkis/rpc/message/method/MethodExecuteWrapper.java 30.76% <ø> (ø)
...is/rpc/message/utils/LoadBalancerOptionsUtils.java 0.00% <0.00%> (ø)
...linkis/rpc/serializer/ProtostuffSerializeUtil.java 0.00% <0.00%> (ø)
.../org/apache/linkis/rpc/conf/RPCConfiguration.scala 0.00% <0.00%> (ø)
...pache/linkis/rpc/conf/RPCSpringConfiguration.scala 0.00% <0.00%> (ø)
...s/rpc/sender/eureka/EurekaClientRefreshUtils.scala 0.00% <0.00%> (ø)
...inkis/rpc/transform/JavaCollectionSerializer.scala 0.00% <0.00%> (ø)
.../org/apache/linkis/rpc/transform/RPCConsumer.scala 0.00% <0.00%> (ø)
...a/org/apache/linkis/rpc/transform/RPCProduct.scala 0.00% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9cb9d7...586056d. Read the comment docs.

@@ -36,7 +36,6 @@
<groupId>org.apache.linkis</groupId>
<artifactId>linkis-common</artifactId>
<version>${linkis.version}</version>
<scope>provided</scope>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the common and storage are all the shared module, the provided scope is not need. and the storage miss the commons-lang3 jar, which is import by runtime scope by other jars, so change the scope of linkis-common's scope to fix the dependency miss.

@@ -138,8 +138,6 @@ object EngineConnMonitor extends Logging {
endJobByEngineInstance(status._1)
}
}
case o: Any =>
logger.error(s"Status of engine ${status._1.toString} is ${status._2}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should update to case _: log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the NodeExistStatus is a enum, all the above case coverd all branch. And the case o: Any block is't reachable

Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 86664ec into apache:dev-1.2.0 Jul 16, 2022
@jackxu2011 jackxu2011 deleted the opt-formatCode branch July 28, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants