[jira] [Commented] (SCB-249) [pack] replace hibernate with other ORM tech to avoid license issue

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330188#comment-16330188
 ] 

ASF GitHub Bot commented on SCB-249:


WillemJiang closed pull request #121: SCB-249 license compliance
URL: https://github.com/apache/incubator-servicecomb-saga/pull/121
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [pack] replace hibernate with other ORM tech to avoid license issue
> ---
>
> Key: SCB-249
> URL: https://issues.apache.org/jira/browse/SCB-249
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Saga
>Reporter: Yin Xiang
>Assignee: Yin Xiang
>Priority: Major
> Fix For: saga-0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330157#comment-16330157
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip commented on a change in pull request #514: SCB-29 integration tests 
for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162262004
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+HttpEntity entity = new HttpEntity(headers);
+
+ResponseEntity exchange = rest.exchange(delete, HttpMethod.DELETE, 
entity, String.class);
+Map body = new HashMap<>();
+body.put("releaseTitle", "release-configuration");
+body.put("releasedBy", "apollo");
+entity = new HttpEntity(body, headers);
+exchange = rest.exchange(release, HttpMethod.POST, entity, String.class);
+
+  }
+
+  @Test
+  public void testDynamicConfiguration() {
+//before
+
Assert.assertEquals(DynamicPropertyFactory.getInstance().getStringProperty("loadbalcance",
 "default").getValue(), "default");
+
+//set and return 200. release 200,update return 200
+
+String setLoadBalance = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items";
+
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+
+//set new configuration item
+Map body = new HashMap<>();
+body.put("key", "loadbalance");
+body.put("value", "roundrobbin");
+body.put("dataChangeCreatedBy", "apollo");
+HttpEntity entity = new HttpEntity(body, headers);
+
+ResponseEntity exchange = rest.exchange(setLoadBalance, 
HttpMethod.POST, entity, 

[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330156#comment-16330156
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip commented on a change in pull request #514: SCB-29 integration tests 
for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162261958
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+HttpEntity entity = new HttpEntity(headers);
+
+ResponseEntity exchange = rest.exchange(delete, HttpMethod.DELETE, 
entity, String.class);
+Map body = new HashMap<>();
+body.put("releaseTitle", "release-configuration");
+body.put("releasedBy", "apollo");
+entity = new HttpEntity(body, headers);
+exchange = rest.exchange(release, HttpMethod.POST, entity, String.class);
+
+  }
+
+  @Test
+  public void testDynamicConfiguration() {
+//before
+
Assert.assertEquals(DynamicPropertyFactory.getInstance().getStringProperty("loadbalcance",
 "default").getValue(), "default");
+
+//set and return 200. release 200,update return 200
+
+String setLoadBalance = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items";
+
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+
+//set new configuration item
+Map body = new HashMap<>();
+body.put("key", "loadbalance");
+body.put("value", "roundrobbin");
+body.put("dataChangeCreatedBy", "apollo");
+HttpEntity entity = new HttpEntity(body, headers);
+
+ResponseEntity exchange = rest.exchange(setLoadBalance, 
HttpMethod.POST, entity, 

[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330151#comment-16330151
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip commented on a change in pull request #514: SCB-29 integration tests 
for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162261640
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
 
 Review comment:
   Roger!


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330154#comment-16330154
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip commented on a change in pull request #514: SCB-29 integration tests 
for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162261726
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
 
 Review comment:
   You are right.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330136#comment-16330136
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162259978
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+HttpEntity entity = new HttpEntity(headers);
+
+ResponseEntity exchange = rest.exchange(delete, HttpMethod.DELETE, 
entity, String.class);
+Map body = new HashMap<>();
+body.put("releaseTitle", "release-configuration");
+body.put("releasedBy", "apollo");
+entity = new HttpEntity(body, headers);
+exchange = rest.exchange(release, HttpMethod.POST, entity, String.class);
+
+  }
+
+  @Test
+  public void testDynamicConfiguration() {
+//before
+
Assert.assertEquals(DynamicPropertyFactory.getInstance().getStringProperty("loadbalcance",
 "default").getValue(), "default");
+
+//set and return 200. release 200,update return 200
+
+String setLoadBalance = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items";
+
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+
+//set new configuration item
+Map body = new HashMap<>();
+body.put("key", "loadbalance");
+body.put("value", "roundrobbin");
+body.put("dataChangeCreatedBy", "apollo");
+HttpEntity entity = new HttpEntity(body, headers);
+
+ResponseEntity exchange = rest.exchange(setLoadBalance, 
HttpMethod.POST, entity, 

[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330138#comment-16330138
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162260149
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
 
 Review comment:
   the common prefix can extract as a string variable


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330140#comment-16330140
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162260357
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
 
 Review comment:
   final, pls


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330135#comment-16330135
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162259836
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/resources/microservice.yaml
 ##
 @@ -0,0 +1,36 @@
+#
+## ---
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---
+
+APPLICATION_ID: pojotest
 
 Review comment:
   the application id is weird for your case


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330139#comment-16330139
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162259760
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/resources/microservice.yaml
 ##
 @@ -0,0 +1,36 @@
+#
+## ---
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---
+
+APPLICATION_ID: pojotest
+service_description:
+  name: apollo-test
+  version: 1.0.1
+
+apollo:
+  config:
+serverUri: http://apollo-quick-start:8070
 
 Review comment:
   maybe use the domain name as uri is better? e.g. 
apollo.servicecomb.apache.org?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330142#comment-16330142
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162260922
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
 
 Review comment:
   too many blank lines here


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330137#comment-16330137
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162260867
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 ##
 @@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import com.netflix.config.DynamicIntProperty;
+import com.netflix.config.DynamicPropertyFactory;
+import com.netflix.config.DynamicStringProperty;
+
+public class DynamicConfigurationIT {
+
+
+  public static String url;
+  public static String token;
+
+  @BeforeClass
+  public static void setUp() throws Exception {
+Log4jUtils.init();
+BeanUtils.init();
+url = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.serverUri",
 "missing").getValue();
+token = 
DynamicPropertyFactory.getInstance().getStringProperty("apollo.config.token", 
"missing").getValue();
+  }
+
+  @After
+  public void tearDown() throws Exception {
+//delete
+clearConfiguration();
+  }
+
+  //delete configuration items set by test code
+  public void clearConfiguration() {
+String delete = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items/loadbalance?operator=apollo";
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+HttpEntity entity = new HttpEntity(headers);
+
+ResponseEntity exchange = rest.exchange(delete, HttpMethod.DELETE, 
entity, String.class);
+Map body = new HashMap<>();
+body.put("releaseTitle", "release-configuration");
+body.put("releasedBy", "apollo");
+entity = new HttpEntity(body, headers);
+exchange = rest.exchange(release, HttpMethod.POST, entity, String.class);
+
+  }
+
+  @Test
+  public void testDynamicConfiguration() {
+//before
+
Assert.assertEquals(DynamicPropertyFactory.getInstance().getStringProperty("loadbalcance",
 "default").getValue(), "default");
+
+//set and return 200. release 200,update return 200
+
+String setLoadBalance = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/items";
+
+String release = url + 
"/openapi/v1/envs/DEV/apps/SampleApp/clusters/default/namespaces/application/releases";
+RestTemplate rest = new RestTemplate();
+HttpHeaders headers = new HttpHeaders();
+headers.add("Content-Type", "application/json;charset=UTF-8");
+headers.add("Authorization", token);
+
+//set new configuration item
+Map body = new HashMap<>();
+body.put("key", "loadbalance");
+body.put("value", "roundrobbin");
+body.put("dataChangeCreatedBy", "apollo");
+HttpEntity entity = new HttpEntity(body, headers);
+
+ResponseEntity exchange = rest.exchange(setLoadBalance, 
HttpMethod.POST, entity, 

[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330141#comment-16330141
 ] 

ASF GitHub Bot commented on SCB-29:
---

eric-lee-ltk commented on a change in pull request #514: SCB-29 integration 
tests for dynamic configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#discussion_r162259532
 
 

 ##
 File path: 
integration-tests/dynamic-config-tests/src/test/resources/microservice.yaml
 ##
 @@ -0,0 +1,36 @@
+#
+## ---
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##  http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---
+
+APPLICATION_ID: pojotest
+service_description:
+  name: apollo-test
+  version: 1.0.1
+
+apollo:
+  config:
+serverUri: http://apollo-quick-start:8070
+serviceName: SampleApp
+env: DEV
+clusters: default
+namespace: application
+token: testtoken
+refreshInterval: 2
+cse:
+  config:
+client:
+  serverUri: http://127.0.0.1:8070
 
 Review comment:
   why this uri is different with the above one?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-249) [pack] replace hibernate with other ORM tech to avoid license issue

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330119#comment-16330119
 ] 

ASF GitHub Bot commented on SCB-249:


coveralls commented on issue #121: SCB-249 license compliance
URL: 
https://github.com/apache/incubator-servicecomb-saga/pull/121#issuecomment-358552292
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15103521/badge)](https://coveralls.io/builds/15103521)
   
   Coverage decreased (-0.3%) to 94.823% when pulling 
**ae9d7e8b4e022d4e0593cf0293ca3401ce06ffb3 on SCB-249_apl_compliance** into 
**b54587d3b578e172a77727e2a041e0732364252b on master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [pack] replace hibernate with other ORM tech to avoid license issue
> ---
>
> Key: SCB-249
> URL: https://issues.apache.org/jira/browse/SCB-249
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Saga
>Reporter: Yin Xiang
>Assignee: Yin Xiang
>Priority: Major
> Fix For: saga-0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330108#comment-16330108
 ] 

ASF GitHub Bot commented on SCB-29:
---

coveralls commented on issue #514: SCB-29 integration tests for dynamic 
configuration
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/514#issuecomment-358550965
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15103508/badge)](https://coveralls.io/builds/15103508)
   
   Coverage increased (+0.006%) to 87.451% when pulling 
**02ebe39551af2a4bcceb9050ba63d946e697708e on lijasonvip:itest** into 
**6edb54d96ac55578d7f7ccb32a745e7bc28581ec on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330097#comment-16330097
 ] 

ASF GitHub Bot commented on SCB-29:
---

WillemJiang closed pull request #514: SCB-29 integration tests for dynamic 
configuration
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/514
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/integration-tests/dynamic-config-tests/pom.xml 
b/integration-tests/dynamic-config-tests/pom.xml
new file mode 100644
index 0..7c2b8288d
--- /dev/null
+++ b/integration-tests/dynamic-config-tests/pom.xml
@@ -0,0 +1,130 @@
+
+
+http://maven.apache.org/POM/4.0.0;
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
+  
+integration-tests
+org.apache.servicecomb.tests
+0.6.0-SNAPSHOT
+  
+  4.0.0
+
+  dynamic-config-tests
+
+  
+
+  org.apache.servicecomb
+  foundation-common
+
+
+  com.netflix.archaius
+  archaius-core
+
+
+  org.apache.servicecomb
+  config-apollo
+
+
+  org.slf4j
+  slf4j-log4j12
+
+  
+
+
+  
+
+  docker
+  
+
+  
+io.fabric8
+docker-maven-plugin
+
+  
+
+  lijasonvip/apollodb:1.2
+  apollo-db
+  
+
+  testtoken
+
+
+  mysqld: ready for connections
+  
+
+  3306
+
+  
+  6
+
+
+  apollodb.port:3306
+
+  
+
+
+  nobodyiam/apollo-quick-start
+  apollo-quick-start
+  
+
+  apollo-db
+
+
+  Portal started
+  
+
+  8080
+  8070
+
+  
+  12
+
+
+  apollo.config:8080
+  apollo.portal:8070
+
+mysql
+  
+
+  
+
+
+
+  
+start
+pre-integration-test
+
+  start
+
+  
+  
+stop
+post-integration-test
+
+  stop
+
+  
+
+  
+
+  
+
+  
+
+
\ No newline at end of file
diff --git 
a/integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
 
b/integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
new file mode 100644
index 0..a8f0eff80
--- /dev/null
+++ 
b/integration-tests/dynamic-config-tests/src/test/java/org/apache/dynamicconfig/test/DynamicConfigurationIT.java
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dynamicconfig.test;
+
+import static java.util.concurrent.TimeUnit.SECONDS;
+import static org.awaitility.Awaitility.await;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.foundation.common.utils.Log4jUtils;
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import 

[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330098#comment-16330098
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip opened a new pull request #514: SCB-29 integration tests for dynamic 
configuration
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/514
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [x] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [x] Each commit in the pull request should have a meaningful subject line 
and body.
- [x] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [x] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [x] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (SCB-40) config change history

2018-01-17 Thread Bo Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bo Li reassigned SCB-40:


Assignee: Bo Li

> config change history
> -
>
> Key: SCB-40
> URL: https://issues.apache.org/jira/browse/SCB-40
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: mabin
>Assignee: Bo Li
>Priority: Minor
> Fix For: java-chassis-1.0.0-m1
>
>
> Java-chassis can trace and record the operation event.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-40) config change history

2018-01-17 Thread Bo Li (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330091#comment-16330091
 ] 

Bo Li commented on SCB-40:
--

The Apollo configuration center we have chosen before support tracing the 
changing history of configuration items perfectly.

So this issue haved been resolved.

> config change history
> -
>
> Key: SCB-40
> URL: https://issues.apache.org/jira/browse/SCB-40
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Minor
> Fix For: java-chassis-1.0.0-m1
>
>
> Java-chassis can trace and record the operation event.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-77) UI for config editing and viewing

2018-01-17 Thread Bo Li (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330087#comment-16330087
 ] 

Bo Li commented on SCB-77:
--

The Apollo configuration center we have chosen before support edit and view 
configuration items perfectly.

> UI for config editing and viewing
> -
>
> Key: SCB-77
> URL: https://issues.apache.org/jira/browse/SCB-77
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: mabin
>Assignee: Bo Li
>Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (SCB-77) UI for config editing and viewing

2018-01-17 Thread Bo Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bo Li reassigned SCB-77:


Assignee: Bo Li

> UI for config editing and viewing
> -
>
> Key: SCB-77
> URL: https://issues.apache.org/jira/browse/SCB-77
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: mabin
>Assignee: Bo Li
>Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (SCB-133) Dynamic configuration document for users

2018-01-17 Thread Bo Li (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bo Li resolved SCB-133.
---
Resolution: Resolved

> Dynamic configuration document for users
> 
>
> Key: SCB-133
> URL: https://issues.apache.org/jira/browse/SCB-133
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: Bo Li
>Assignee: Bo Li
>Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-254) make demo perf support invoke next step

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330059#comment-16330059
 ] 

ASF GitHub Bot commented on SCB-254:


coveralls commented on issue #518: [SCB-254] make demo perf support invoke next 
step
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/518#issuecomment-358542257
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15102931/badge)](https://coveralls.io/builds/15102931)
   
   Coverage increased (+0.02%) to 87.468% when pulling 
**c7adde795e04e99e8cc4142917b751dd3b69743b on wujimin:demo-perf-improve** into 
**6edb54d96ac55578d7f7ccb32a745e7bc28581ec on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> make demo perf support invoke next step
> ---
>
> Key: SCB-254
> URL: https://issues.apache.org/jira/browse/SCB-254
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-253) As a developer, I want to use springmvc's view function

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16330011#comment-16330011
 ] 

ASF GitHub Bot commented on SCB-253:


coveralls commented on issue #517: [SCB-253] make integrate with spring-webmvc 
view simpler
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/517#issuecomment-358537832
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15102682/badge)](https://coveralls.io/builds/15102682)
   
   Coverage decreased (-0.03%) to 87.42% when pulling 
**ed38d17d216bfe7423a4cb29ec81ac8c8cab82e4 on 
wujimin:make-springmvc-view-integration-simpler** into 
**6edb54d96ac55578d7f7ccb32a745e7bc28581ec on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> As a developer, I  want to use springmvc's view function
> 
>
> Key: SCB-253
> URL: https://issues.apache.org/jira/browse/SCB-253
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>
> not suggest provide UI together with data
> so in rest servlet listener, we did not instance springmvc spring context
>  
> but if user want to do this, it's better we provider a easy way to do that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-254) make demo perf support invoke next step

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329992#comment-16329992
 ] 

ASF GitHub Bot commented on SCB-254:


wujimin opened a new pull request #518: [SCB-254] make demo perf support invoke 
next step
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/518
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> make demo perf support invoke next step
> ---
>
> Key: SCB-254
> URL: https://issues.apache.org/jira/browse/SCB-254
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (SCB-251) As a developer, I want to use Object as my input parameter or response type

2018-01-17 Thread wujimin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wujimin resolved SCB-251.
-
Resolution: Done

> As a developer, I want to use Object as my input parameter or response type
> ---
>
> Key: SCB-251
> URL: https://issues.apache.org/jira/browse/SCB-251
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-253) As a developer, I want to use springmvc's view function

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329959#comment-16329959
 ] 

ASF GitHub Bot commented on SCB-253:


wujimin opened a new pull request #517: [SCB-253] make integrate with 
spring-webmvc view simpler
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/517
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> As a developer, I  want to use springmvc's view function
> 
>
> Key: SCB-253
> URL: https://issues.apache.org/jira/browse/SCB-253
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>
> not suggest provide UI together with data
> so in rest servlet listener, we did not instance springmvc spring context
>  
> but if user want to do this, it's better we provider a easy way to do that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-221) merge vertx 3.5.0 BodyHandlerImpl changes

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329953#comment-16329953
 ] 

ASF GitHub Bot commented on SCB-221:


liubao68 closed pull request #516: [SCB-221] update RestBodyHandler license
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/516
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java
 
b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java
index fcc036d63..9f8ecca55 100644
--- 
a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java
+++ 
b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/RestBodyHandler.java
@@ -14,6 +14,22 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+/*
+ * Copyright 2014 Red Hat, Inc.
+ *
+ *  All rights reserved. This program and the accompanying materials
+ *  are made available under the terms of the Eclipse Public License v1.0
+ *  and Apache License v2.0 which accompanies this distribution.
+ *
+ *  The Eclipse Public License is available at
+ *  http://www.eclipse.org/legal/epl-v10.html
+ *
+ *  The Apache License v2.0 is available at
+ *  http://www.opensource.org/licenses/apache2.0.php
+ *
+ *  You may elect to redistribute this code under either of these licenses.
+ */
 package org.apache.servicecomb.transport.rest.vertx;
 
 import java.io.File;


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> merge vertx 3.5.0 BodyHandlerImpl changes
> -
>
> Key: SCB-221
> URL: https://issues.apache.org/jira/browse/SCB-221
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (SCB-253) As a developer, I want to use springmvc's view function

2018-01-17 Thread wujimin (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wujimin updated SCB-253:

Description: 
not suggest provide UI together with data

so in rest servlet listener, we did not instance springmvc spring context

 

but if user want to do this, it's better we provider a easy way to do that.

> As a developer, I  want to use springmvc's view function
> 
>
> Key: SCB-253
> URL: https://issues.apache.org/jira/browse/SCB-253
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>
> not suggest provide UI together with data
> so in rest servlet listener, we did not instance springmvc spring context
>  
> but if user want to do this, it's better we provider a easy way to do that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (SCB-253) As a developer, I want to use springmvc's view function

2018-01-17 Thread wujimin (JIRA)
wujimin created SCB-253:
---

 Summary: As a developer, I  want to use springmvc's view function
 Key: SCB-253
 URL: https://issues.apache.org/jira/browse/SCB-253
 Project: Apache ServiceComb
  Issue Type: New Feature
  Components: Java-Chassis
Reporter: wujimin
Assignee: wujimin
 Fix For: java-chassis-1.0.0-m1






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (SCB-252) Metrics support overwatch Integration

2018-01-17 Thread yangyongzheng (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yangyongzheng reassigned SCB-252:
-

Assignee: yangyongzheng

> Metrics support overwatch Integration
> -
>
> Key: SCB-252
> URL: https://issues.apache.org/jira/browse/SCB-252
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Minor
> Fix For: java-chassis-1.0.0-m1
>
>
> [Overwatch]([https://github.com/imdada/overwatch)] has a nice UI and very 
> suitable for show our ability,we can push metrics data to it in order to do 
> integration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (SCB-252) Metrics support overwatch Integration

2018-01-17 Thread yangyongzheng (JIRA)
yangyongzheng created SCB-252:
-

 Summary: Metrics support overwatch Integration
 Key: SCB-252
 URL: https://issues.apache.org/jira/browse/SCB-252
 Project: Apache ServiceComb
  Issue Type: Sub-task
  Components: Java-Chassis
Reporter: yangyongzheng
 Fix For: java-chassis-1.0.0-m1


[Overwatch]([https://github.com/imdada/overwatch)] has a nice UI and very 
suitable for show our ability,we can push metrics data to it in order to do 
integration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (SCB-197) Add a embedded console perfStatics output for debug

2018-01-17 Thread yangyongzheng (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yangyongzheng updated SCB-197:
--
Issue Type: Wish  (was: Sub-task)
Parent: (was: SCB-6)

> Add a embedded console perfStatics output for debug
> ---
>
> Key: SCB-197
> URL: https://issues.apache.org/jira/browse/SCB-197
> Project: Apache ServiceComb
>  Issue Type: Wish
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Priority: Minor
>  Labels: beginner, newbie
>
> we need a embedded console perfStatics replace old PerfStatMonitorMgr in 
> foundation-metrics:
> her is a 
> example:https://github.com/wujimin/java-chassis/blob/transport-optimize-for-reactive/demo/perf/src/main/java/io/servicecomb/demo/perf/PerfMetricsFilePublisher.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (SCB-197) Add a embedded console perfStatics output for debug

2018-01-17 Thread yangyongzheng (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yangyongzheng updated SCB-197:
--
Fix Version/s: (was: java-chassis-1.0.0-m1)

> Add a embedded console perfStatics output for debug
> ---
>
> Key: SCB-197
> URL: https://issues.apache.org/jira/browse/SCB-197
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Priority: Minor
>  Labels: beginner, newbie
>
> we need a embedded console perfStatics replace old PerfStatMonitorMgr in 
> foundation-metrics:
> her is a 
> example:https://github.com/wujimin/java-chassis/blob/transport-optimize-for-reactive/demo/perf/src/main/java/io/servicecomb/demo/perf/PerfMetricsFilePublisher.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (SCB-197) Add a embedded console perfStatics output for debug

2018-01-17 Thread yangyongzheng (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yangyongzheng reassigned SCB-197:
-

Assignee: (was: yangyongzheng)
  Labels: beginner newbie  (was: )
Priority: Minor  (was: Major)

> Add a embedded console perfStatics output for debug
> ---
>
> Key: SCB-197
> URL: https://issues.apache.org/jira/browse/SCB-197
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Priority: Minor
>  Labels: beginner, newbie
> Fix For: java-chassis-1.0.0-m1
>
>
> we need a embedded console perfStatics replace old PerfStatMonitorMgr in 
> foundation-metrics:
> her is a 
> example:https://github.com/wujimin/java-chassis/blob/transport-optimize-for-reactive/demo/perf/src/main/java/io/servicecomb/demo/perf/PerfMetricsFilePublisher.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-150) Add Success / Fail Dimension for Invocation

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329796#comment-16329796
 ] 

ASF GitHub Bot commented on SCB-150:


wujimin commented on issue #508: [SCB-150] Add Status(success/failed) dimension 
to operation call count and tps
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/508#issuecomment-358502042
 
 
   will this make our logic too complex?
   our metrics will not record history data, only some summaries, there is no 
memory problem?
   if kernel data is about statusCode, then metrics is very simple
   just when publish data, need to publish different model like: succ/fail,
2xx/3xx/4xx..


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add Success / Fail Dimension for Invocation
> ---
>
> Key: SCB-150
> URL: https://issues.apache.org/jira/browse/SCB-150
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
> Attachments: screenshot-1.png
>
>
> Add Success / Fail Dimension for Invocation,new metric available :
> !screenshot-1.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-221) merge vertx 3.5.0 BodyHandlerImpl changes

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329730#comment-16329730
 ] 

ASF GitHub Bot commented on SCB-221:


coveralls commented on issue #516: [SCB-221] update RestBodyHandler license
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/516#issuecomment-358492666
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15099447/badge)](https://coveralls.io/builds/15099447)
   
   Coverage decreased (-0.006%) to 87.35% when pulling 
**b1b1e830f4e263722cdb3b49b8f6bf8d43286bd4 on wujimin:RestBodyHandler-license** 
into **064b2d25be6dc3edec848b826be015f34214d281 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> merge vertx 3.5.0 BodyHandlerImpl changes
> -
>
> Key: SCB-221
> URL: https://issues.apache.org/jira/browse/SCB-221
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-221) merge vertx 3.5.0 BodyHandlerImpl changes

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329664#comment-16329664
 ] 

ASF GitHub Bot commented on SCB-221:


wujimin opened a new pull request #516: [SCB-221] update RestBodyHandler license
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/516
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> merge vertx 3.5.0 BodyHandlerImpl changes
> -
>
> Key: SCB-221
> URL: https://issues.apache.org/jira/browse/SCB-221
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-251) As a developer, I want to use Object as my input parameter or response type

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329387#comment-16329387
 ] 

ASF GitHub Bot commented on SCB-251:


coveralls commented on issue #515: [SCB-251] Support object
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/515#issuecomment-358431000
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15095375/badge)](https://coveralls.io/builds/15095375)
   
   Coverage increased (+0.07%) to 87.426% when pulling 
**715cb3898948eb1efa967f537616b87c89b70ea6 on wujimin:support-object** into 
**064b2d25be6dc3edec848b826be015f34214d281 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> As a developer, I want to use Object as my input parameter or response type
> ---
>
> Key: SCB-251
> URL: https://issues.apache.org/jira/browse/SCB-251
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16329083#comment-16329083
 ] 

ASF GitHub Bot commented on SCB-250:


coveralls commented on issue #513: SCB-250 Update netty's version to 4.1.17 and 
jackson's version to 2.9.2
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/513#issuecomment-358383238
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15091767/badge)](https://coveralls.io/builds/15091767)
   
   Coverage decreased (-0.02%) to 87.332% when pulling 
**2e986e576d4ba5998055bdf0b383d02ca86c302c on jeho0815:SCB-250** into 
**064b2d25be6dc3edec848b826be015f34214d281 on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Update netty's version to 4.1.17 and jackson's version  to 2.9.2
> 
>
> Key: SCB-250
> URL: https://issues.apache.org/jira/browse/SCB-250
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Affects Versions: java-chassis-1.0.0-m1
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>
> current netty version 4.1.5 DNSResolve will blocked when the dns server is 
> not work, the new version will timeout.
> [2018-01-16 13:46:14,365/GMT][main][INFO]Using the default address resolver 
> as the dns resolver could not be loaded 
> io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:51)
> [2018-01-16 13:46:17,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 2898 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:18,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 3899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:19,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 4899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:20,366/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 5899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:57)
> io.vertx.core.VertxException: Thread blocked
>  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
>  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
>  at java.net.InetAddress.getByName(InetAddress.java:1076)
>  at 
> io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:40)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:62)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
>  at 
> io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:208)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:170)
>  at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
>  at io.vertx.core.net.impl.ChannelProvider.connect(ChannelProvider.java:38)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ChannelConnector.connect(ConnectionManager.java:537)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.createNewConnection(ConnectionManager.java:294)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.getConnection(ConnectionManager.java:237)
>  at 
> io.vertx.core.http.impl.ConnectionManager.getConnectionForRequest(ConnectionManager.java:171)
>  at 
> io.vertx.core.http.impl.HttpClientImpl.getConnectionForRequest(HttpClientImpl.java:950)
>  at 
> io.vertx.core.http.impl.HttpClientRequestImpl.connect(HttpClientRequestImpl.java:745)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-221) merge vertx 3.5.0 BodyHandlerImpl changes

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328999#comment-16328999
 ] 

ASF GitHub Bot commented on SCB-221:


wujimin opened a new pull request #516: [SCB-221] update RestBodyHandler license
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/516
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> merge vertx 3.5.0 BodyHandlerImpl changes
> -
>
> Key: SCB-221
> URL: https://issues.apache.org/jira/browse/SCB-221
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-251) As a developer, I want to use Object as my input parameter or response type

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328989#comment-16328989
 ] 

ASF GitHub Bot commented on SCB-251:


wujimin opened a new pull request #515: [SCB-251] Support object
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/515
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> As a developer, I want to use Object as my input parameter or response type
> ---
>
> Key: SCB-251
> URL: https://issues.apache.org/jira/browse/SCB-251
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: wujimin
>Assignee: wujimin
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (SCB-251) As a developer, I want to use Object as my input parameter or response type

2018-01-17 Thread wujimin (JIRA)
wujimin created SCB-251:
---

 Summary: As a developer, I want to use Object as my input 
parameter or response type
 Key: SCB-251
 URL: https://issues.apache.org/jira/browse/SCB-251
 Project: Apache ServiceComb
  Issue Type: New Feature
  Components: Java-Chassis
Reporter: wujimin
Assignee: wujimin
 Fix For: java-chassis-1.0.0-m1






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-249) [pack] replace hibernate with other ORM tech to avoid license issue

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328864#comment-16328864
 ] 

ASF GitHub Bot commented on SCB-249:


coveralls commented on issue #121: SCB-249 license compliance
URL: 
https://github.com/apache/incubator-servicecomb-saga/pull/121#issuecomment-358332812
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15088893/badge)](https://coveralls.io/builds/15088893)
   
   Coverage increased (+0.06%) to 95.172% when pulling 
**2ff73d17d49df769dd7c91ee6eadcf05c2a58261 on SCB-249_apl_compliance** into 
**b54587d3b578e172a77727e2a041e0732364252b on master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [pack] replace hibernate with other ORM tech to avoid license issue
> ---
>
> Key: SCB-249
> URL: https://issues.apache.org/jira/browse/SCB-249
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Saga
>Reporter: Yin Xiang
>Assignee: Yin Xiang
>Priority: Major
> Fix For: saga-0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-29) Dynamic Configuration

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328832#comment-16328832
 ] 

ASF GitHub Bot commented on SCB-29:
---

lijasonvip opened a new pull request #514: SCB-29 integration tests for dynamic 
configuration
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/514
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Dynamic Configuration
> -
>
> Key: SCB-29
> URL: https://issues.apache.org/jira/browse/SCB-29
> Project: Apache ServiceComb
>  Issue Type: New Feature
>  Components: Java-Chassis
>Reporter: mabin
>Priority: Major
>
> as a user, i want to update my microservice configurations from a centralized 
> server, so that i don't have restart and re-deploy each of my services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-150) Add Success / Fail Dimension for Invocation

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328812#comment-16328812
 ] 

ASF GitHub Bot commented on SCB-150:


coveralls commented on issue #508: [SCB-150] Add Status(success/failed) 
dimension to operation call count and tps
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/508#issuecomment-358315981
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15087914/badge)](https://coveralls.io/builds/15087914)
   
   Coverage decreased (-0.05%) to 87.308% when pulling 
**63e93710e14324d1a4ea98f5276f7de351d24522 on zhengyangyong:SCB-150** into 
**18847ab0ff01634f3c81be4331efb3caedef124b on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add Success / Fail Dimension for Invocation
> ---
>
> Key: SCB-150
> URL: https://issues.apache.org/jira/browse/SCB-150
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
> Attachments: screenshot-1.png
>
>
> Add Success / Fail Dimension for Invocation,new metric available :
> !screenshot-1.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-150) Add Success / Fail Dimension for Invocation

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328678#comment-16328678
 ] 

ASF GitHub Bot commented on SCB-150:


coveralls commented on issue #508: [SCB-150] Add Status(success/failed) 
dimension to operation call count and tps
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/508#issuecomment-358290283
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15086329/badge)](https://coveralls.io/builds/15086329)
   
   Coverage decreased (-0.02%) to 87.337% when pulling 
**63e93710e14324d1a4ea98f5276f7de351d24522 on zhengyangyong:SCB-150** into 
**18847ab0ff01634f3c81be4331efb3caedef124b on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add Success / Fail Dimension for Invocation
> ---
>
> Key: SCB-150
> URL: https://issues.apache.org/jira/browse/SCB-150
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
> Attachments: screenshot-1.png
>
>
> Add Success / Fail Dimension for Invocation,new metric available :
> !screenshot-1.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-12) Support Custom Metrics

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328672#comment-16328672
 ] 

ASF GitHub Bot commented on SCB-12:
---

coveralls commented on issue #510: [SCB-12] Support Custom Metrics
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/510#issuecomment-358286832
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/15086055/badge)](https://coveralls.io/builds/15086055)
   
   Coverage increased (+0.07%) to 87.427% when pulling 
**25c8656836840269ef0ab69abee1d5919fa38fca on zhengyangyong:SCB-12** into 
**18847ab0ff01634f3c81be4331efb3caedef124b on apache:master**.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Support Custom Metrics
> --
>
> Key: SCB-12
> URL: https://issues.apache.org/jira/browse/SCB-12
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>
> User can inject custom business metrics into MetricsRegistry then get them 
> back with build-in metrics together,need support this basic metric type:
> 1.Counter
> 2.Guage
> 3.Max
> 4.Min
> 5.Rate
> 6.Custom Callback with Fun0



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328639#comment-16328639
 ] 

ASF GitHub Bot commented on SCB-250:


jeho0815 opened a new pull request #513: SCB-250 Update netty's version to 
4.1.17 and jackson's version to 2.9.2
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/513
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Update netty's version to 4.1.17 and jackson's version  to 2.9.2
> 
>
> Key: SCB-250
> URL: https://issues.apache.org/jira/browse/SCB-250
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Affects Versions: java-chassis-1.0.0-m1
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>
> current netty version 4.1.5 DNSResolve will blocked when the dns server is 
> not work, the new version will timeout.
> [2018-01-16 13:46:14,365/GMT][main][INFO]Using the default address resolver 
> as the dns resolver could not be loaded 
> io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:51)
> [2018-01-16 13:46:17,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 2898 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:18,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 3899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:19,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 4899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:20,366/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 5899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:57)
> io.vertx.core.VertxException: Thread blocked
>  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
>  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
>  at java.net.InetAddress.getByName(InetAddress.java:1076)
>  at 
> io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:40)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:62)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
>  at 
> io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:208)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:170)
>  at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
>  at io.vertx.core.net.impl.ChannelProvider.connect(ChannelProvider.java:38)
>  at 
> 

[jira] [Commented] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328638#comment-16328638
 ] 

ASF GitHub Bot commented on SCB-250:


WillemJiang closed pull request #513: SCB-250 Update netty's version to 4.1.17 
and jackson's version to 2.9.2
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/513
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/java-chassis-dependencies/pom.xml 
b/java-chassis-dependencies/pom.xml
index 203a16824..2a4578594 100644
--- a/java-chassis-dependencies/pom.xml
+++ b/java-chassis-dependencies/pom.xml
@@ -31,7 +31,7 @@
   pom
 
   
-2.8.10
+2.9.2
 3.5.0
 0.8
 4.3.5.RELEASE
@@ -45,7 +45,7 @@
 4.5.2
 1.5.2
 1.5.12
-4.1.5.Final
+4.1.17.Final
 ${basedir}/../..
 5.3.2.Final
 3.1.6


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Update netty's version to 4.1.17 and jackson's version  to 2.9.2
> 
>
> Key: SCB-250
> URL: https://issues.apache.org/jira/browse/SCB-250
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Affects Versions: java-chassis-1.0.0-m1
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>
> current netty version 4.1.5 DNSResolve will blocked when the dns server is 
> not work, the new version will timeout.
> [2018-01-16 13:46:14,365/GMT][main][INFO]Using the default address resolver 
> as the dns resolver could not be loaded 
> io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:51)
> [2018-01-16 13:46:17,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 2898 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:18,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 3899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:19,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 4899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:20,366/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 5899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:57)
> io.vertx.core.VertxException: Thread blocked
>  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
>  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
>  at java.net.InetAddress.getByName(InetAddress.java:1076)
>  at 
> io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:40)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:62)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
>  at 
> io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:208)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:170)
>  at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
>  at io.vertx.core.net.impl.ChannelProvider.connect(ChannelProvider.java:38)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ChannelConnector.connect(ConnectionManager.java:537)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.createNewConnection(ConnectionManager.java:294)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.getConnection(ConnectionManager.java:237)
>  at 
> 

[jira] [Assigned] (SCB-197) Add a embedded console perfStatics output for debug

2018-01-17 Thread Willem Jiang (JIRA)

 [ 
https://issues.apache.org/jira/browse/SCB-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Willem Jiang reassigned SCB-197:


Assignee: yangyongzheng

> Add a embedded console perfStatics output for debug
> ---
>
> Key: SCB-197
> URL: https://issues.apache.org/jira/browse/SCB-197
> Project: Apache ServiceComb
>  Issue Type: Sub-task
>  Components: Java-Chassis
>Reporter: yangyongzheng
>Assignee: yangyongzheng
>Priority: Major
> Fix For: java-chassis-1.0.0-m1
>
>
> we need a embedded console perfStatics replace old PerfStatMonitorMgr in 
> foundation-metrics:
> her is a 
> example:https://github.com/wujimin/java-chassis/blob/transport-optimize-for-reactive/demo/perf/src/main/java/io/servicecomb/demo/perf/PerfMetricsFilePublisher.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-249) [pack] replace hibernate with other ORM tech to avoid license issue

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328573#comment-16328573
 ] 

ASF GitHub Bot commented on SCB-249:


seanyinx opened a new pull request #121: SCB-249 license compliance
URL: https://github.com/apache/incubator-servicecomb-saga/pull/121
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [pack] replace hibernate with other ORM tech to avoid license issue
> ---
>
> Key: SCB-249
> URL: https://issues.apache.org/jira/browse/SCB-249
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Saga
>Reporter: Yin Xiang
>Assignee: Yin Xiang
>Priority: Major
> Fix For: saga-0.1.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-225) How to build a SC cluster

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328496#comment-16328496
 ] 

ASF GitHub Bot commented on SCB-225:


asifdxtreme closed pull request #249: SCB-225 Deployment guide for running SC 
in cluster mode
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/249
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/README.md b/docs/README.md
index 1575955f..c4f9ac77 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -7,3 +7,5 @@
  [Contribution Guide](/docs/contribution.md) 
 
  [Docker Image Guide](/docs/create-docker-image.md) 
+
+ [Deploy Service-Center in Cluster](/docs/sc-cluster.md)
diff --git a/docs/sc-cluster.md b/docs/sc-cluster.md
new file mode 100644
index ..1296c367
--- /dev/null
+++ b/docs/sc-cluster.md
@@ -0,0 +1,117 @@
+### Deploying Service-Center in Cluster Mode
+
+As Service-center is a stateless application so it can be seamlessly deployed 
in cluster mode to achieve HA.
+SC is dependent on the etcd to store the microservices information so you can 
opt for running etcd standalone or in 
[cluster](https://github.com/coreos/etcd/blob/master/Documentation/op-guide/container.md)
 mode.
+Once you are done with installing the etcd either in cluster or standalone 
mode then you can follow the below steps to run the Service-Center.
+
+Let's assume you want to install 2 instances of Service-Center on VM with 
following details  
+
+| Name| Address |  
+| :-: | :-: |  
+| VM1 | 10.12.0.1   |   
+| VM2 | 10.12.0.2   |  
+
+Here we assume your etcd is running on http://10.12.0.4:2379 (you can follow 
[this](https://github.com/coreos/etcd/blob/master/Documentation/op-guide/container.md)
 guide to install etcd in cluster mode.)
+
+# Step 1
+Download the SC release from 
[here](https://github.com/apache/incubator-servicecomb-service-center/releases) 
on all the VM's.
+```
+# Untar the release
+# tar -xvf service-center-X.X.X-linux-amd64.tar.gz
+
+```
+
+Note: Please don't run start.sh as it will also start the etcd.
+
+# Step 2
+Edit the configuration of the ip/port on which SC will run and etcd ip
+## VM1
+```
+# vi conf/app.conf
+#Replace the below values
+httpaddr = 10.12.0.1
+manager_cluster = "10.12.0.4:2379"
+
+# Start the Service-center
+./service-center
+```
+
+## VM2
+```
+# vi conf/app.conf
+#Replace the below values
+httpaddr = 10.12.0.2
+manager_cluster = "10.12.0.4:2379"
+
+# Start the Service-center
+./service-center
+```
+
+Note: In `manger_cluster` you can put the multiple instances of etcd in the 
cluster like 
+```
+manager_cluster= "10.12.0.4:2379, 10.12.0.X:2379, 10.12.0.X:2379"
+```
+
+ Step 4
+Verify your instances
+```
+# curl http://10.12.0.1:30101/v4/default/registry/health
+{
+"instances": [
+{
+"instanceId": "d6e9e976f9df11e7a72b286ed488ff9f",
+"serviceId": "d6e99f4cf9df11e7a72b286ed488ff9f",
+"endpoints": [
+"rest://10.12.0.1:30101"
+],
+"hostName": "service_center_10_12_0_1",
+"status": "UP",
+"healthCheck": {
+"mode": "push",
+"interval": 30,
+"times": 3
+},
+"timestamp": "1516012543",
+"modTimestamp": "1516012543"
+},
+{
+"instanceId": "16d4cb35f9e011e7a58a286ed488ff9f",
+"serviceId": "d6e99f4cf9df11e7a72b286ed488ff9f",
+"endpoints": [
+"rest://10.12.0.2:30100"
+],
+"hostName": "service_center_10_12_0_2",
+"status": "UP",
+"healthCheck": {
+"mode": "push",
+"interval": 30,
+"times": 3
+},
+"timestamp": "1516012650",
+"modTimestamp": "1516012650"
+}
+]
+}
+```
+
+As we can see here the Service-Center can auto-discover all the instances of 
the Service-Center running in cluster, this auto-discovery feature is used by 
the [Java-Chassis 
SDK](https://github.com/apache/incubator-servicecomb-java-chassis) to 
auto-discover all the instances of the Service-Center by knowing atleast 1 IP 
of Service-Center running in cluster.
+
+In your microservice.yaml you can provide the SC IP of both the instance or 
any one instance, sdk can auto-discover other instances and use the other 
instances to get microservice details in case of failure of the first one.
+```
+cse:
+  service:
+registry:
+  address: "http://10.12.0.1:30100, http://10.12.0.2:30100;
+  autodiscovery: true
+```
+or 
+```
+cse:
+  service:
+registry:
+  

[jira] [Commented] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328488#comment-16328488
 ] 

ASF GitHub Bot commented on SCB-250:


jeho0815 commented on issue #513: SCB-250 Update netty's version to 4.1.17 and 
jackson's version to 2.9.2
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/513#issuecomment-358235184
 
 
   @wujimin @WillemJiang  pls review 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Update netty's version to 4.1.17 and jackson's version  to 2.9.2
> 
>
> Key: SCB-250
> URL: https://issues.apache.org/jira/browse/SCB-250
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Affects Versions: java-chassis-1.0.0-m1
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>
> current netty version 4.1.5 DNSResolve will blocked when the dns server is 
> not work, the new version will timeout.
> [2018-01-16 13:46:14,365/GMT][main][INFO]Using the default address resolver 
> as the dns resolver could not be loaded 
> io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:51)
> [2018-01-16 13:46:17,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 2898 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:18,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 3899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:19,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 4899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:20,366/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 5899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:57)
> io.vertx.core.VertxException: Thread blocked
>  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
>  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
>  at java.net.InetAddress.getByName(InetAddress.java:1076)
>  at 
> io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:40)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:62)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
>  at 
> io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:208)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:170)
>  at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
>  at io.vertx.core.net.impl.ChannelProvider.connect(ChannelProvider.java:38)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ChannelConnector.connect(ConnectionManager.java:537)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.createNewConnection(ConnectionManager.java:294)
>  at 
> io.vertx.core.http.impl.ConnectionManager$ConnQueue.getConnection(ConnectionManager.java:237)
>  at 
> io.vertx.core.http.impl.ConnectionManager.getConnectionForRequest(ConnectionManager.java:171)
>  at 
> io.vertx.core.http.impl.HttpClientImpl.getConnectionForRequest(HttpClientImpl.java:950)
>  at 
> io.vertx.core.http.impl.HttpClientRequestImpl.connect(HttpClientRequestImpl.java:745)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SCB-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16328487#comment-16328487
 ] 

ASF GitHub Bot commented on SCB-250:


jeho0815 opened a new pull request #513: SCB-250 Update netty's version to 
4.1.17 and jackson's version to 2.9.2
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/513
 
 
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Update netty's version to 4.1.17 and jackson's version  to 2.9.2
> 
>
> Key: SCB-250
> URL: https://issues.apache.org/jira/browse/SCB-250
> Project: Apache ServiceComb
>  Issue Type: Task
>  Components: Java-Chassis
>Affects Versions: java-chassis-1.0.0-m1
>Reporter: jeho0815
>Assignee: jeho0815
>Priority: Major
>
> current netty version 4.1.5 DNSResolve will blocked when the dns server is 
> not work, the new version will timeout.
> [2018-01-16 13:46:14,365/GMT][main][INFO]Using the default address resolver 
> as the dns resolver could not be loaded 
> io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:51)
> [2018-01-16 13:46:17,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 2898 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:18,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 3899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:19,365/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 4899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:53)
> [2018-01-16 13:46:20,366/GMT][vertx-blocked-thread-checker][WARN]Thread 
> Thread[registry-vert.x-eventloop-thread-0,5,main] has been blocked for 5899 
> ms, time limit is 2000 
> io.vertx.core.impl.BlockedThreadChecker$1.run(BlockedThreadChecker.java:57)
> io.vertx.core.VertxException: Thread blocked
>  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
>  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1192)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1126)
>  at java.net.InetAddress.getByName(InetAddress.java:1076)
>  at 
> io.netty.resolver.DefaultNameResolver.doResolve(DefaultNameResolver.java:40)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:62)
>  at io.netty.resolver.SimpleNameResolver.resolve(SimpleNameResolver.java:53)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:55)
>  at 
> io.netty.resolver.InetSocketAddressResolver.doResolve(InetSocketAddressResolver.java:31)
>  at 
> io.netty.resolver.AbstractAddressResolver.resolve(AbstractAddressResolver.java:106)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect0(Bootstrap.java:208)
>  at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:170)
>  at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:145)
>  at io.vertx.core.net.impl.ChannelProvider.connect(ChannelProvider.java:38)
>  at 
> 

[jira] [Created] (SCB-250) Update netty's version to 4.1.17 and jackson's version to 2.9.2

2018-01-17 Thread jeho0815 (JIRA)
jeho0815 created SCB-250:


 Summary: Update netty's version to 4.1.17 and jackson's version  
to 2.9.2
 Key: SCB-250
 URL: https://issues.apache.org/jira/browse/SCB-250
 Project: Apache ServiceComb
  Issue Type: Task
  Components: Java-Chassis
Affects Versions: java-chassis-1.0.0-m1
Reporter: jeho0815
Assignee: jeho0815


current netty version 4.1.5 DNSResolve will blocked when the dns server is not 
work, the new version will timeout.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)