Skip to content

Conversation

coderzc
Copy link
Member

@coderzc coderzc commented Aug 16, 2021

No description provided.

@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #92 (165ebbd) into master (3f2961a) will decrease coverage by 0.00%.
The diff coverage is 81.81%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #92 +/- ## ============================================ - Coverage 87.86% 87.86% -0.01%  - Complexity 2693 2696 +3  ============================================ Files 281 281 Lines 10204 10209 +5 Branches 847 848 +1 ============================================ + Hits 8966 8970 +4  - Misses 825 828 +3  + Partials 413 411 -2 
Impacted Files Coverage Δ
...hugegraph/computer/core/network/TransportConf.java 94.00% <ø> (ø)
...graph/computer/core/sender/MessageSendManager.java 75.89% <71.42%> (+0.19%) ⬆️
...puter/core/network/netty/NettyTransportClient.java 98.24% <100.00%> (ø)
...k8s/operator/controller/ComputerJobController.java 87.68% <0.00%> (-1.09%) ⬇️
...ugegraph/computer/k8s/driver/KubernetesDriver.java 85.92% <0.00%> (+0.37%) ⬆️
...om/baidu/hugegraph/computer/k8s/util/KubeUtil.java 91.89% <0.00%> (+1.80%) ⬆️

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 3f2961a...165ebbd. Read the comment docs.

Comment on lines 245 to 247
long timeout = this.transportConf.syncRequestTimeout();
if (type == MessageType.FINISH) {
timeout = this.transportConf.finishSessionTimeout();
Copy link
Contributor

Choose a reason for hiding this comment

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

seems names with "timeout" prefix are more readable:
syncRequestTimeout => timeoutSyncRequest
finishSessionTimeout => timeoutFinishSession

}

long timeout = this.transportConf.syncRequestTimeout();
if (type == MessageType.FINISH) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can use ternary operator

@coderzc coderzc force-pushed the use-session-timeout-option branch from dae6e9d to 03ec79f Compare September 13, 2021 07:35
} catch (TimeoutException e) {
throw new ComputerException("Timed out to wait for controling " +
"message(%s) to finished", e, type);
throw new ComputerException("Timeout(%sms) out to wait for " +
Copy link
Contributor

Choose a reason for hiding this comment

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

remove "out"

@javeme javeme merged commit bb12226 into master Sep 13, 2021
@javeme javeme deleted the use-session-timeout-option branch September 13, 2021 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants