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

Closing the session if hearbeat fails for many times (when engine crashes) #2088

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

sighingnow
Copy link
Collaborator

What do these changes do?

It is quite strange to keep printing messages / exceptions like heartbeat failures when engine crashes. In this pull request, the session will be automatically closed after self._heartbeat_maximum_failures retires. Note that self._heartbeat_maximum_failures is customizable so it should fit advanced users well.

This pull reqests also rename the dummy package name "foo" to "graphscope_runtime".

Related issue number

N/A

…shes)

Signed-off-by: Tao He <sighingnow@gmail.com>
@@ -288,7 +288,7 @@ def parsed_packages():
name = os.environ.get("package_name", "gs-coordinator")
if name == "gs-coordinator":
return find_packages(".")
return ["foo"]
return ["graphscope_runtime"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also change the module name 'foo' in coordinator directory

https://github.com/alibaba/GraphScope/tree/main/coordinator/foo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already renamed.

@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2022

Codecov Report

Merging #2088 (c1b6fcc) into main (2119d48) will decrease coverage by 0.05%.
The diff coverage is 42.85%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2088      +/-   ##
==========================================
- Coverage   71.22%   71.16%   -0.06%     
==========================================
  Files          89       89              
  Lines        9905     9916      +11     
==========================================
+ Hits         7055     7057       +2     
- Misses       2850     2859       +9     
Impacted Files Coverage Δ
python/graphscope/client/session.py 72.47% <42.85%> (-0.71%) ⬇️
python/graphscope/deploy/kubernetes/utils.py 69.52% <0.00%> (-0.96%) ⬇️

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 2119d48...c1b6fcc. Read the comment docs.

@sighingnow sighingnow merged commit a69d884 into alibaba:main Sep 28, 2022
@sighingnow sighingnow deleted the ht/node-selector branch September 28, 2022 05:19
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.

None yet

4 participants