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 #1601] polarismesh registry center #1620

Merged
merged 19 commits into from Dec 1, 2021

Conversation

chuntaojun
Copy link
Contributor

What this PR does:

support dubbo-go can set polaris to registry

Which issue(s) this PR fixes:

Fixes #1601

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

support registry protocol can use polaris

springliao and others added 7 commits November 19, 2021 17:00
* build(deps): bump github.com/hashicorp/vault/sdk from 0.2.1 to 0.3.0 (apache#1552)

Bumps [github.com/hashicorp/vault/sdk](https://github.com/hashicorp/vault) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](hashicorp/vault@sdk/v0.2.1...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* delete useless codes (apache#1551)

* Update CHANGELOG.md

* [apache#1559]: adjust the startup process of the configuration center (apache#1560)

* [apache#1559]:
1. fix the startup process of the configuration center(remove error log)
2. refactor zk registry listener

* delete redundant dynamic configuration center cache

Co-authored-by: dongjianhui03 <dongjianhui03@meituan.com>

* [apache#1276]modify the name of the receiver to a single character (apache#1561)

Co-authored-by: dongjianhui03 <dongjianhui03@meituan.com>

* style(common): rename constants in camel-case style (apache#1563)

* style(common): rename constants in camel-case style

* style(common): rename Ttl to TTL

* fix: apache#1558: Set root config to global ptr in Init() function. (apache#1564)

* fix: apache#1558

* fix: change the api to start the app by config-api

* fix: in the Consumer service, the Reference config property ‘check’ use the Consumer config when omitted

* Triple upgrade to grpc (apache#1566)

* fix: init triple grpc

* fix: delete replace

* Fix: upgrade triple grpc

* Fix: remove unused file

* Fix decrease grpc go version to 1.14

* Fix: add server side serialization

* register not use metadata configuration.

* build(deps): bump github.com/go-resty/resty/v2 from 2.3.0 to 2.7.0 (apache#1579)

Bumps [github.com/go-resty/resty/v2](https://github.com/go-resty/resty) from 2.3.0 to 2.7.0.
- [Release notes](https://github.com/go-resty/resty/releases)
- [Commits](go-resty/resty@v2.3.0...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/go-resty/resty/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump google.golang.org/grpc from 1.41.0 to 1.42.0 (apache#1578)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.41.0...v1.42.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/knadh/koanf from 1.3.0 to 1.3.2 (apache#1577)

Bumps [github.com/knadh/koanf](https://github.com/knadh/koanf) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/knadh/koanf/releases)
- [Commits](knadh/koanf@v1.3.0...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/knadh/koanf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: registry param

* fix: fix ns and group

* fix: integrate test

* Fix: integrate test

* fix: url fmt

* fix: nacos servicediscovery group

* Fix: enhance zk

* start application (apache#1571)

Co-authored-by: wangxiaowei14227 <wangxiaowei14227@autohome.com.cn>
Co-authored-by: lizhixin.lzx <lizhixin.lzx@alibaba-inc.com>
Co-authored-by: LaurenceLiZhixin <382673304@qq.com>

* graceful shutdwon filter (apache#1585)

Co-authored-by: wangxiaowei14227 <wangxiaowei14227@autohome.com.cn>

* Fix: some bugs and features for 3.0 (apache#1586)

* fix: some bugs

* Fix: remove file\k8s registry, k8s remote

* refactor listenDirEvent
1. remove CLEAR label;
2. remove register/unregister logic for watch children;
3. reorder the zk dynamic configuration code
4. adapt the gost

* hessian encode attachments return error (apache#1588)

* upgrade gost dependency version

* upgrade hessian to v1.9.5 (apache#1595)

* build(deps): bump k8s.io/apimachinery from 0.16.9 to 0.22.4 (apache#1600)

Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.16.9 to 0.22.4.
- [Release notes](https://github.com/kubernetes/apimachinery/releases)
- [Commits](kubernetes/apimachinery@v0.16.9...v0.22.4)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ftr: triple tracing (apache#1596)

* ftr: triple tracing

* fix: if-else to switch

* [fix apache#1590] filter single instance (apache#1591)

* filter single instance

* filter single instance

Co-authored-by: wangxiaowei14227 <wangxiaowei14227@autohome.com.cn>

* Ftr/triple reflect support (apache#1603)

* ftr: triple-reflection

* fix: comment and var name

* Fix: comment typo

* Fix: official website

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Xin.Zh <dragoncharlie@foxmail.com>
Co-authored-by: Mulavar <978007503@qq.com>
Co-authored-by: dongjianhui03 <dongjianhui03@meituan.com>
Co-authored-by: Xuewei Niu <a@nxw.name>
Co-authored-by: PhilYue <phil.yue@foxmail.com>
Co-authored-by: lizhixin.lzx <lizhixin.lzx@alibaba-inc.com>
Co-authored-by: sanxun0325 <bbz17640380550@163.com>
Co-authored-by: Xuewei Niu <justxuewei@apache.org>
Co-authored-by: zhaoyunxing <zhaoyunxing@apache.org>
Co-authored-by: wangxw <2484713618@qq.com>
Co-authored-by: wangxiaowei14227 <wangxiaowei14227@autohome.com.cn>
Co-authored-by: 望哥 <gelnyang@163.com>
@chuntaojun chuntaojun changed the title [ISSUE #1601] Feat issue 1601 [ISSUE #1601] support dubbo-go can use polarismesh Nov 28, 2021
@AlexStocks AlexStocks changed the title [ISSUE #1601] support dubbo-go can use polarismesh [ISSUE #1601] polarismesh registry center Nov 28, 2021
@LaurenceLiZhixin
Copy link
Contributor

LaurenceLiZhixin commented Nov 29, 2021

@LaurenceLiZhixin
Copy link
Contributor

You can install imports-formatter : https://github.com/dubbogo/tools#5-how-to-get-imports-formatter
and run imports-formatter . in your repo root path, to pass imports check. @chuntaojun

registry/polaris/core.go Outdated Show resolved Hide resolved
registry/polaris/registry.go Outdated Show resolved Hide resolved
registry/polaris/registry.go Outdated Show resolved Hide resolved
registry/polaris/registry.go Show resolved Hide resolved
remoting/polaris/builder.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2021

Codecov Report

Merging #1620 (8a8e8c7) into 3.0 (a6aa373) will increase coverage by 0.23%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##              3.0    #1620      +/-   ##
==========================================
+ Coverage   40.93%   41.16%   +0.23%     
==========================================
  Files         252      253       +1     
  Lines       14443    14496      +53     
==========================================
+ Hits         5912     5968      +56     
+ Misses       7850     7836      -14     
- Partials      681      692      +11     
Impacted Files Coverage Δ
remoting/polaris/builder.go 77.77% <77.77%> (ø)
filter/metrics/filter.go 85.00% <0.00%> (-15.00%) ⬇️
registry/nacos/listener.go 77.96% <0.00%> (-2.04%) ⬇️
registry/nacos/registry.go 47.13% <0.00%> (-1.42%) ⬇️
metrics/prometheus/reporter.go 28.57% <0.00%> (+1.71%) ⬆️
metadata/report/delegate/delegate_report.go 35.09% <0.00%> (+8.60%) ⬆️
cluster/cluster/base/cluster_invoker.go 37.36% <0.00%> (+13.18%) ⬆️

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 a6aa373...8a8e8c7. Read the comment docs.

@LaurenceLiZhixin
Copy link
Contributor

LaurenceLiZhixin commented Dec 1, 2021

imports block的问题我更新了下,目前ci过了。
整体看没有什么大问题。希望在dubbo-go-samples/registry/polaris 给出对应的例子。 @chuntaojun

@chuntaojun
Copy link
Contributor Author

imports block的问题我更新了下,目前ci过了。 整体看没有什么大问题。希望在dubbo-go-samples/registry/polaris 给出对应的例子。 @chuntaojun

这个我给了,我迟一些也一起提交下~

@chuntaojun
Copy link
Contributor Author

Okay, I will solve the problem raised in CR as soon as possible

@LaurenceLiZhixin LaurenceLiZhixin added this to the v3.0.0 milestone Dec 1, 2021
registry/polaris/core.go Outdated Show resolved Hide resolved
registry/polaris/core.go Outdated Show resolved Hide resolved
registry/polaris/core.go Outdated Show resolved Hide resolved
@AlexStocks AlexStocks merged commit a8fba70 into apache:3.0 Dec 1, 2021
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

7 participants