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

Fix zookeeper and nacos issues working as registry, metadata and configcenter #2369

Merged
merged 26 commits into from
Nov 3, 2023

Conversation

chickenlj
Copy link
Contributor

@chickenlj chickenlj commented Aug 4, 2023

As titled, I tested dubbo-go Nacos and Zookeeper implementation working as registry, metadata, and configcenter in dubbo admin.

The changes in this pull request are bugfixes made to different parts that finally make admin work.

@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2023

Codecov Report

Merging #2369 (f902690) into main (3d97d4c) will decrease coverage by 1.03%.
Report is 1 commits behind head on main.
The diff coverage is 14.15%.

@@            Coverage Diff             @@
##             main    #2369      +/-   ##
==========================================
- Coverage   45.83%   44.80%   -1.03%     
==========================================
  Files         270      270              
  Lines       18649    18338     -311     
==========================================
- Hits         8547     8216     -331     
- Misses       9209     9237      +28     
+ Partials      893      885       -8     
Files Coverage Δ
...ta/service/local/metadata_service_proxy_factory.go 85.10% <100.00%> (ø)
metadata/service/local/service_proxy.go 63.09% <50.00%> (ø)
registry/zookeeper/listener.go 0.00% <0.00%> (ø)
remoting/nacos/builder.go 0.00% <0.00%> (ø)
metadata/report/delegate/delegate_report.go 35.29% <0.00%> (+0.19%) ⬆️
metadata/report/etcd/report.go 1.06% <0.00%> (-0.03%) ⬇️
...try/servicediscovery/service_discovery_registry.go 0.95% <0.00%> (ø)
...ediscovery/service_mapping_change_listener_impl.go 0.00% <0.00%> (ø)
registry/base_registry.go 1.50% <0.00%> (+0.10%) ⬆️
registry/directory/directory.go 72.75% <42.85%> (-0.74%) ⬇️
... and 5 more

... and 8 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Makefile Outdated
Comment on lines 71 to 75
.PHONE: fmt
fmt:
$(GO_GET) -u github.com/dubbogo/tools/cmd/imports-formatter
imports-formatter

Copy link
Member

@justxuewei justxuewei Aug 21, 2023

Choose a reason for hiding this comment

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

Please open a new pull request to add this feature. Keep a pull request to implement only one function as much as possible to make code review easier.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will create a new pull request for this part.

@justxuewei
Copy link
Member

justxuewei commented Aug 21, 2023

Could you split this pull request into several pull requests and give a description about this pull request? I noticed this pull request includes several parts. Ideally, one pull request only does one thing, e.g. introduce one feature, fix one bug. Of course, it can also be adjusted according to the actual situation.

@chickenlj
Copy link
Contributor Author

Please see the description I leave above.

I understand it would be ideal if we submit a pull request containing only changes fixing exactly one issue. In my case here, I don't have a very clear boundary of which issue I am targeting, so the standard I use is to make Nacos being able to work together with Admin.

@sonarcloud
Copy link

sonarcloud bot commented Aug 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

# Conflicts:
#	go.mod
#	metrics/prometheus/reporter.go
#	metrics/rpc/util.go
#	registry/servicediscovery/service_instances_changed_listener_impl.go
Copy link

sonarcloud bot commented Nov 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@chickenlj chickenlj merged commit e8b4ab5 into apache:main Nov 3, 2023
6 checks passed
@chickenlj chickenlj deleted the admin-matadata-reporter branch November 4, 2023 11:51
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.

7 participants