Skip to content

Conversation

imbajin
Copy link
Member

@imbajin imbajin commented Nov 22, 2023

Purpose of the PR

Main Changes

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)
  • Already covered by existing tests, such as (please modify tests here).
  • Need tests and can be verified as follows.

Does this PR potentially affect the following parts?

  • Nope
  • Dependencies (add/update license info)
  • Modify configurations
  • The public API
  • Other affects (typed here)

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need
@imbajin imbajin added this to the 1.2.0 milestone Nov 22, 2023
@imbajin imbajin requested review from coderzc and simon824 November 22, 2023 05:05
coderzc
coderzc previously approved these changes Nov 22, 2023
@simon824
Copy link
Member

Error: /home/runner/work/incubator-hugegraph-computer/incubator-hugegraph-computer/computer-k8s-operator/src/main/java/org/apache/hugegraph/computer/k8s/operator/OperatorEntrypoint.java:[39,23] package org.apache.http does not exist 

This exception in CI seems to be caused by common 1.2

@imbajin
Copy link
Member Author

imbajin commented Nov 22, 2023

Error: /home/runner/work/incubator-hugegraph-computer/incubator-hugegraph-computer/computer-k8s-operator/src/main/java/org/apache/hugegraph/computer/k8s/operator/OperatorEntrypoint.java:[39,23] package org.apache.http does not exist 

This exception in CI seems to be caused by common 1.2

Yes, I'll adapt it soon (already marked in the commons PR)

Update: (such problem we could ask for coplit/LLM instead)
image

@imbajin imbajin marked this pull request as draft November 23, 2023 10:30
@imbajin
Copy link
Member Author

imbajin commented Nov 23, 2023

this PR will update after toolchain upgrade to v1.2 (currently it has dependency conflicts)

image
@imbajin imbajin marked this pull request as ready for review December 5, 2023 07:43
@imbajin
Copy link
Member Author

imbajin commented Dec 5, 2023

@coderzc we could replace all the download & start service script to docker run if the image exist like adf4c43

TODOs:

  • loader
  • hdfs (if we can't cache it)
  • etcd
  • ....
@imbajin imbajin changed the title chore(ci): update common 1.2 & upgrade action version refact(core): adaptor for common 1.2 & fix a string of possible CI problem Dec 6, 2023
exceptions[2] = e;
} finally {
masterService.close();
countDownLatch.countDown();
Copy link
Member

@coderzc coderzc Dec 6, 2023

Choose a reason for hiding this comment

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

We need to close the worker if master failed, otherwise the main thread won't be able to finish.

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to close the worker if master failed, otherwise the main thread won't be able to finish.

Seems in this case, master close() in the end of the test? (and how could we close worker here)

Copy link
Member

Choose a reason for hiding this comment

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

Seems in this case, master close() in the end of the test?

I think so.

how could we close worker here

We can call workerService.close()

Copy link
Member Author

@imbajin imbajin Dec 7, 2023

Choose a reason for hiding this comment

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

We can call workerService.close()

but in this case we can't call it because the worker service scope is not shared/enough (In other case we could do that)

this.bsp4Master.masterInitDone(this.masterInfo);

this.workers = this.bsp4Master.waitWorkersInitDone();
List<ContainerInfo> workers = this.bsp4Master.waitWorkersInitDone();
Copy link
Member

Choose a reason for hiding this comment

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

Why don't assign value to this.workers?

Copy link
Member Author

@imbajin imbajin Dec 7, 2023

Choose a reason for hiding this comment

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

seems not used in other space.. (only defined in the global but not used besides here)

Copy link
Member

Choose a reason for hiding this comment

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

Oh, it's better to print the workers' information so troubleshooting.

imbajin and others added 2 commits December 8, 2023 13:57
…/worker/WorkerService.java Co-authored-by: Cong Zhao <zhaocong@apache.org>
@imbajin imbajin mentioned this pull request Dec 8, 2023
11 tasks
checkstyle.xml Outdated
<!--检查行长度-->
<module name="LineLength">
<property name="max" value="100"/>
<property name="max" value="105"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer don't break the rule

Copy link
Member Author

Choose a reason for hiding this comment

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

Update to 101 & add the comment

this.managers.initedAll(this.config);
LOG.info("{} WorkerService initialized", this);
this.inited = true;
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

don't need to try-catch and just log here

Copy link
Member Author

Choose a reason for hiding this comment

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

don't need to try-catch and just log here

seems without try-catch the log won't print if exception throws before it

coderzc
coderzc previously approved these changes Dec 10, 2023
Copy link
Member

@coderzc coderzc left a comment

Choose a reason for hiding this comment

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

LGTM

@simon824 simon824 merged commit 89a8f9b into master Dec 11, 2023
@simon824 simon824 deleted the visit-stage branch December 11, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants