Skip to content

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Apr 13, 2021

No description provided.

if (clazz == Null.class) {
if (requiredNotNull) {
throw new ComputerException(
"Please config required option '%s'", clazzOption.name());
Copy link
Contributor

Choose a reason for hiding this comment

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

align with ComputerException

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it will cause to exceed 80 chars

this.config = config;
// TODO: Start data-transport server and get its host and port.
this.workerInfo = new ContainerInfo(0, "localhost", 0, 8004);

Copy link
Contributor

Choose a reason for hiding this comment

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

check inited = false firstly


@Override
public String name() {
return "mack_master_input";
Copy link
Contributor

Choose a reason for hiding this comment

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

mock


@Override
public String name() {
return "mack_worker_input";
Copy link
Contributor

Choose a reason for hiding this comment

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

mock

// TODO: calls LoadService to load vertices and edges parallel
}

public WorkerStat mergeGraph() {
Copy link
Contributor

Choose a reason for hiding this comment

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

WorkerInputManager only read vertices from HG, and VertexReceiveManager mergeGraph after received all graph data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, can move mergeGraph() to VertexReceiveManager in the future

}

private void checkInited() {
E.checkArgument(this.inited, "The %s has not been initialized ", this);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove space after "initialized"

});

pool.submit(() -> {
UnitTestBase.updateWithRequiredOptions(
Copy link
Contributor

Choose a reason for hiding this comment

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

UnitTestBase.updateWithRequiredOptions only once, as it will replace the global value.

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 master needs RPC_SERVER_HOST and the worker needs RPC_REMOTE_URL

@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #36 (0fd677b) into master (7f3b750) will increase coverage by 0.34%.
The diff coverage is 91.87%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #36 +/- ## ============================================ + Coverage 80.55% 80.89% +0.34%  - Complexity 913 956 +43  ============================================ Files 100 105 +5 Lines 3111 3230 +119 Branches 287 282 -5 ============================================ + Hits 2506 2613 +107  - Misses 478 483 +5  - Partials 127 134 +7 
Impacted Files Coverage Δ Complexity Δ
.../hugegraph/computer/core/common/ContainerInfo.java 93.75% <ø> (ø) 14.00 <0.00> (ø)
...ugegraph/computer/core/config/ComputerOptions.java 98.88% <ø> (ø) 2.00 <0.00> (ø)
...egraph/computer/core/input/MasterInputHandler.java 100.00% <ø> (ø) 9.00 <0.00> (ø)
...baidu/hugegraph/computer/core/manager/Manager.java 100.00% <ø> (ø) 4.00 <0.00> (?)
...m/baidu/hugegraph/computer/core/config/Config.java 78.31% <40.00%> (-2.46%) 25.00 <2.00> (+2.00) ⬇️
.../hugegraph/computer/core/rpc/MasterRpcManager.java 76.19% <76.19%> (ø) 7.00 <7.00> (?)
...egraph/computer/core/input/WorkerInputManager.java 86.66% <86.66%> (ø) 7.00 <7.00> (?)
.../hugegraph/computer/core/master/MasterService.java 89.81% <96.15%> (-0.29%) 15.00 <7.00> (-2.00)
...aidu/hugegraph/computer/core/manager/Managers.java 96.29% <96.29%> (ø) 12.00 <12.00> (?)
.../hugegraph/computer/core/worker/WorkerService.java 87.96% <97.14%> (+1.94%) 13.00 <8.00> (-1.00) ⬆️
... and 11 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 7f3b750...0fd677b. Read the comment docs.

@Linary Linary merged commit 10b347e into master Apr 14, 2021
@Linary Linary deleted the rpc-support branch April 14, 2021 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants