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

[ISSUE #900] Support Consul Service Registry #901

Merged
merged 17 commits into from
Jul 28, 2022
Merged

[ISSUE #900] Support Consul Service Registry #901

merged 17 commits into from
Jul 28, 2022

Conversation

huyuanxin
Copy link
Member

Fixes ISSUE #900

Motivation

make an implement of RegistryService which is support by consul

Modifications

Describe the modifications you've done.

Add ConsulRegistryService and ConsulConstant for implement
Add ConsulRegistryServiceTest for test

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh (incubating) community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Group:
wechat_qr

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives

@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #901 (6e70ffb) into master (6e70ffb) will not change coverage.
The diff coverage is n/a.

❗ Current head 6e70ffb differs from pull request most recent head 9340d67. Consider uploading reports for the commit 9340d67 to get more accurate results

@@           Coverage Diff            @@
##             master    #901   +/-   ##
========================================
  Coverage      9.72%   9.72%           
  Complexity      614     614           
========================================
  Files           362     362           
  Lines         23126   23126           
  Branches       2548    2548           
========================================
  Hits           2249    2249           
  Misses        20673   20673           
  Partials        204     204           

@huyuanxin
Copy link
Member Author

It seems that MacOS 11 build scrip is failed, because could not get resource

Copy link
Contributor

@qqeasonchen qqeasonchen left a comment

Choose a reason for hiding this comment

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

seems miss lisence declare

@huyuanxin
Copy link
Member Author

seems miss lisence declare

FAILURE: Build failed with an exception.
38 actionable tasks: 5 executed, 33 up-to-date

  • What went wrong:
    Execution failed for task ':eventmesh-common:compileJava'.

Could not resolve all files for configuration ':eventmesh-common:compileClasspath'.
Could not download log4j-core-2.17.1.jar (org.apache.logging.log4j:log4j-core:2.17.1)
> Could not get resource 'https://maven.aliyun.com/repository/public/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar'.
> Premature end of Content-Length delimited message body (expected: 1,790,452; received: 70,916)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 2m 10s

it seems there is something wrong with gradle build

@qqeasonchen
Copy link
Contributor

@xiaoyang-sde please help to review

@xiaoyang-sde
Copy link
Member

@xiaoyang-sde please help to review

Sure! I will review it later today.

@xiaoyang-sde xiaoyang-sde added the enhancement New feature or request label Jun 1, 2022
@xiaoyang-sde xiaoyang-sde changed the title add consul registry implement Support Consul Service Registry Jun 1, 2022
Copy link
Member

@xiaoyang-sde xiaoyang-sde left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! It seems that the changes failed to pass the style check: https://github.com/apache/incubator-eventmesh/runs/6681779883?check_suite_focus=true#step:5:9859. Could you please try to fix this?

@huyuanxin
Copy link
Member Author

yep. I will fix it later or tomorrow, work is busy

@huyuanxin huyuanxin marked this pull request as draft June 6, 2022 02:31
@qqeasonchen qqeasonchen marked this pull request as ready for review June 10, 2022 08:22
@qqeasonchen
Copy link
Contributor

@huyuanxin any udpates?

@qqeasonchen
Copy link
Contributor

@li-xiao-shuang please help to review.

@huyuanxin
Copy link
Member Author

huyuanxin commented Jun 10, 2022 via email

@huyuanxin
Copy link
Member Author

huyuanxin commented Jun 10, 2022 via email

@li-xiao-shuang
Copy link
Member

@li-xiao-shuang please help to review.

Yes, I'm working on it

@li-xiao-shuang
Copy link
Member

You should create a META-INF/eventmesh/org.apache.eventmesh.api.registry.RegistryService file for the consul plugin so the eventmesh spi will find it

@li-xiao-shuang
Copy link
Member

How does the heartbeat of the consul service work? Need manual maintenance?

@qqeasonchen
Copy link
Contributor

@huyuanxin, please fix the issues that reqeust by @li-xiao-shuang

@huyuanxin
Copy link
Member Author

huyuanxin commented Jun 13, 2022 via email

@xwm1992
Copy link
Contributor

xwm1992 commented Jun 30, 2022

please solve the conflic files @huyuanxin .

@xwm1992 xwm1992 changed the title Support Consul Service Registry [ISSUE #900] Support Consul Service Registry Jul 7, 2022
@qqeasonchen
Copy link
Contributor

@huyuanxin can you please fix the conflicts?

@huyuanxin
Copy link
Member Author

@huyuanxin can you please fix the conflicts?

fixing

@huyuanxin
Copy link
Member Author

huyuanxin commented Jul 19, 2022

I cherry pick into the branch that is from the latest upstream

@xwm1992
Copy link
Contributor

xwm1992 commented Jul 28, 2022

I have created the registry-consul branch please merge this pr to this branch and we will fix the ci problems later. @huyuanxin

@xwm1992 xwm1992 changed the base branch from master to registry-consul July 28, 2022 06:44
@xiaoyang-sde xiaoyang-sde removed their request for review July 28, 2022 06:52
@xwm1992 xwm1992 merged commit 4ba8836 into apache:registry-consul Jul 28, 2022
xwm1992 added a commit to xwm1992/EventMesh that referenced this pull request Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants