-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Add cluster-etcd-plugin #2725
Add cluster-etcd-plugin #2725
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ref #2640. We need you to provide the full list of dependency libs.
Group ID: org.mousio Group ID: com.github.wnameless Group ID: org.mousio Group ID: org.fasterxml.jackson.core Group ID: org.fasterxml.jackson.core Group ID: org.fasterxml.jackson.core Group ID: org.fasterxml.jackson.module Group ID: io.netty Group ID: io.netty Group ID: io.netty Group ID: io.netty all netty jars uses from dist tar, version: 4.0.27.Final |
@wu-sheng is this check netty's license failed ? |
I have a little concern about the 2.x netty version. Right now, if you check our dist tar, there are 4.1.27 netty jar(s) there. |
there's not enough jars from the oap-libs of dist tar. we need provide version of 4.1.32.Final ? or i have a try to change the version of etcd4j |
We provide because grpc needs that. And our tar is not small, over 100m. Cluster management usually includes a lot of dependency libs. So, I want to make sure don't add many news. |
Local compile passed. Is there some differences between local and the travis-ci ? @wu-sheng jar's versionis: 4.1.27.Final which i was using. |
From the CI log, it means, you have files without ASF header. https://travis-ci.org/apache/skywalking/jobs/535203203 |
And I am still waiting for a committer to review and test this feature. |
ok, i check the license again. |
this tell me my own files may have not ASF header? |
I am sorry for my pom.xml that is not added ASF header. I've added. |
You could run |
Coverage increased (+0.1%) to 16.933% when pulling c2b8aecaf46d2c24f27fd854c0b689e7a96362c8 on wayilau:etcd_cluster into 48bca24 on apache:master. |
resolved. |
You are still including UI changes in this pull request. |
I will check this. |
I need not merge the master into this branch, as it is not conflict with master. is that so ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, etcd cluster plugin works. @wayilau Thanks for your contribution.
@wu-sheng @JaredTan95 I have fix the ci. And I will open a new PR to achieve the configuration-etcd module. this pr only for server-cluster-etcd. And the etcd testcases also under "CI-with-IT". |
@JaredTan95 Please review. We don't have a good e2e test today, so even have IT test, I think you have to do local test again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again, and going to merge this.
CC @wu-sheng
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the etcd4j
in LICENSE?
|
||
List<URI> uris = EtcdUtils.parse(config); | ||
|
||
//TODO check isSSL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SSL is going to be supported or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the
etcd4j
in LICENSE?
Sorry for missing the etcd4j's license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think SSL should be added in a new pr.
public void before() throws Exception { | ||
etcdConfig = new ClusterModuleEtcdConfig(); | ||
etcdConfig.setServiceName(SERVICE_NAME); | ||
client = new EtcdClient(URI.create("http://127.0.0.1:2379")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could cause CI failure randomly because of port conflict. Please take a good example from here, @kezhenxu94 's PR of IT test. cc @JaredTan95
Line 70 in fac940c
baseUrl = "http://" + host + ":" + port; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean that i should change the port to a parameter which given from the start running to avoid port conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apollo test failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apollo
test failure partly because there is no official image, and not because of this. Port need to be assigned randomly. Because in ASF Jenkins, we are sharing OS with other tasks of other ASF projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Apollo
, I have been working with @kezhenxu94 to check and fix it. But that is another thread somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wu-sheng I have make the host & port randomly as what you suggest. Also all test cases passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please answer these questions before submitting pull request
Add cluster etcd plugin.