[GitHub] mstao commented on issue #330: The saga-spring-demo project shows `omitted for duplicate` in IDEA.

2018-11-06 Thread GitBox
mstao commented on issue #330: The saga-spring-demo project shows `omitted for 
duplicate` in IDEA.
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/330#issuecomment-436533087
 
 
   Yes,I use the release package of saga(its' version is 0.2.0), not run 
saga-spring-demo directly,
   the project run normally, that is ok: 
   
   
![image](https://github.com/ZZULI-TECH/interview/blob/master/images/saga-demo-tree-normal.png?raw=true)
   
   Maybe IDEA has bugs to load maven dependencies, because I can run project, 
the Maven Projects panel still shows red line.
   
   Thanks.
   


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


With regards,
Apache Git Services


[GitHub] mstao closed issue #330: The saga-spring-demo project shows `omitted for duplicate` in IDEA.

2018-11-06 Thread GitBox
mstao closed issue #330: The saga-spring-demo project shows `omitted for 
duplicate` in IDEA.
URL: https://github.com/apache/incubator-servicecomb-saga/issues/330
 
 
   


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


With regards,
Apache Git Services


[GitHub] fenqinxyz closed issue #328: Can I use "alpha" like use "spring clould" module the same and registered to eureka ?

2018-11-06 Thread GitBox
fenqinxyz closed issue #328: Can I use "alpha" like use "spring clould" module 
the same and  registered to eureka ?
URL: https://github.com/apache/incubator-servicecomb-saga/issues/328
 
 
   


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


With regards,
Apache Git Services


[GitHub] fenqinxyz commented on issue #328: Can I use "alpha" like use "spring clould" module the same and registered to eureka ?

2018-11-06 Thread GitBox
fenqinxyz commented on issue #328: Can I use "alpha" like use "spring clould" 
module the same and  registered to eureka ?
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/328#issuecomment-436530956
 
 
   OK Thanks


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


With regards,
Apache Git Services


[GitHub] zhfeng commented on issue #328: Can I use "alpha" like use "spring clould" module the same and registered to eureka ?

2018-11-06 Thread GitBox
zhfeng commented on issue #328: Can I use "alpha" like use "spring clould" 
module the same and  registered to eureka ?
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/328#issuecomment-436528722
 
 
   I think it does not support since we have 
https://github.com/apache/incubator-servicecomb-saga/issues/64


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


With regards,
Apache Git Services


[GitHub] WillemJiang commented on issue #330: The saga-spring-demo project shows `omitted for duplicate` in IDEA.

2018-11-06 Thread GitBox
WillemJiang commented on issue #330: The saga-spring-demo project shows 
`omitted for duplicate` in IDEA.
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/330#issuecomment-436528604
 
 
   Hi,  Can you check if those artifacts were downloaded?


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


With regards,
Apache Git Services


[incubator-servicecomb-saga] branch SCB-1013 created (now 0ca4340)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch SCB-1013
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git.


  at 0ca4340  SCB-1013 Support to disable the event scanner Alpha

This branch includes the following new commits:

 new 0ca4340  SCB-1013 Support to disable the event scanner Alpha

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[incubator-servicecomb-saga] 01/01: SCB-1013 Support to disable the event scanner Alpha

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch SCB-1013
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git

commit 0ca43407cdc62095d2cbd813f30ffd5a39612426
Author: Willem Jiang 
AuthorDate: Wed Nov 7 15:15:19 2018 +0800

SCB-1013 Support to disable the event scanner Alpha
---
 .../apache/servicecomb/saga/alpha/server/AlphaConfig.java   | 13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git 
a/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/AlphaConfig.java
 
b/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/AlphaConfig.java
index ad39d62..20ee3ee 100644
--- 
a/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/AlphaConfig.java
+++ 
b/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/AlphaConfig.java
@@ -38,6 +38,8 @@ import 
org.apache.servicecomb.saga.alpha.server.tcc.GrpcTccEventService;
 import 
org.apache.servicecomb.saga.alpha.server.tcc.callback.TccPendingTaskRunner;
 import org.apache.servicecomb.saga.alpha.server.tcc.service.TccEventScanner;
 import org.apache.servicecomb.saga.alpha.server.tcc.service.TccTxEventService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.autoconfigure.domain.EntityScan;
 import org.springframework.context.annotation.Bean;
@@ -46,6 +48,7 @@ import org.springframework.context.annotation.Configuration;
 @EntityScan(basePackages = "org.apache.servicecomb.saga.alpha")
 @Configuration
 class AlphaConfig {
+  private static final Logger LOG = LoggerFactory.getLogger(AlphaConfig.class);
   private final BlockingQueue pendingCompensations = new 
LinkedBlockingQueue<>();
   private final ScheduledExecutorService scheduler = 
Executors.newScheduledThreadPool(1);
 
@@ -91,14 +94,18 @@ class AlphaConfig {
   @Bean
   TxConsistentService txConsistentService(
   @Value("${alpha.event.pollingInterval:500}") int eventPollingInterval,
+  @Value("${alpha.event.scanner.enabled:true}") boolean eventScanner,
   ScheduledExecutorService scheduler,
   TxEventRepository eventRepository,
   CommandRepository commandRepository,
   TxTimeoutRepository timeoutRepository,
   OmegaCallback omegaCallback) {
-new EventScanner(scheduler,
-eventRepository, commandRepository, timeoutRepository,
-omegaCallback, eventPollingInterval).run();
+if (eventScanner) {
+  new EventScanner(scheduler,
+  eventRepository, commandRepository, timeoutRepository,
+  omegaCallback, eventPollingInterval).run();
+  LOG.info("Starting the EventScanner.");
+  }
 TxConsistentService consistentService = new 
TxConsistentService(eventRepository);
 return consistentService;
   }



[incubator-servicecomb-java-chassis] 01/02: [SCB-1009]Supporting configure encrypted password for proxy settings

2018-11-06 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit a68659072b142925316ffb8cd7e2eee6c5af9bca
Author: liubao 
AuthorDate: Mon Nov 5 19:55:40 2018 +0800

[SCB-1009]Supporting configure encrypted password for proxy settings
---
 .../config/client/ConfigCenterClient.java  |  5 +-
 .../foundation/common/encrypt/Encryption.java  | 43 ++
 .../foundation/common/encrypt/Encryptions.java | 66 ++
 .../foundation/common/encrypt/NoEncryption.java| 30 ++
 ...ervicecomb.foundation.common.encrypt.Encryption | 18 ++
 .../foundation/common/encrypt/TestEncryptions.java | 65 +
 .../client/http/AbstractClientPool.java|  2 +
 .../client/http/HttpClientPool.java|  3 +-
 8 files changed, 230 insertions(+), 2 deletions(-)

diff --git 
a/dynamic-config/config-cc/src/main/java/org/apache/servicecomb/config/client/ConfigCenterClient.java
 
b/dynamic-config/config-cc/src/main/java/org/apache/servicecomb/config/client/ConfigCenterClient.java
index db5e5ac..aabf1ef 100644
--- 
a/dynamic-config/config-cc/src/main/java/org/apache/servicecomb/config/client/ConfigCenterClient.java
+++ 
b/dynamic-config/config-cc/src/main/java/org/apache/servicecomb/config/client/ConfigCenterClient.java
@@ -40,6 +40,7 @@ import org.apache.commons.lang.StringUtils;
 import 
org.apache.servicecomb.config.archaius.sources.ConfigCenterConfigurationSourceImpl;
 import org.apache.servicecomb.foundation.auth.AuthHeaderProvider;
 import org.apache.servicecomb.foundation.auth.SignRequest;
+import org.apache.servicecomb.foundation.common.encrypt.Encryptions;
 import org.apache.servicecomb.foundation.common.event.EventManager;
 import org.apache.servicecomb.foundation.common.net.IpPort;
 import org.apache.servicecomb.foundation.common.net.NetUtils;
@@ -84,6 +85,8 @@ public class ConfigCenterClient {
 
   private static final String SSL_KEY = "cc.consumer";
 
+  public static final String PROXY_KEY = "cc.consumer";
+
   private static final long HEARTBEAT_INTERVAL = 3;
 
   private static final long BOOTUP_WAIT_TIME = 10;
@@ -205,7 +208,7 @@ public class ConfigCenterClient {
   .setHost(ConfigCenterConfig.INSTANCE.getProxyHost())
   .setPort(ConfigCenterConfig.INSTANCE.getProxyPort())
   .setUsername(ConfigCenterConfig.INSTANCE.getProxyUsername())
-  .setPassword(ConfigCenterConfig.INSTANCE.getProxyPasswd());
+  
.setPassword(Encryptions.decode(ConfigCenterConfig.INSTANCE.getProxyPasswd(), 
PROXY_KEY));
   httpClientOptions.setProxyOptions(proxy);
 }
 
httpClientOptions.setConnectTimeout(CONFIG_CENTER_CONFIG.getConnectionTimeout());
diff --git 
a/foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/Encryption.java
 
b/foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/Encryption.java
new file mode 100644
index 000..99be3c4
--- /dev/null
+++ 
b/foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/Encryption.java
@@ -0,0 +1,43 @@
+/*
+ * 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.servicecomb.foundation.common.encrypt;
+
+/**
+ * Interface for users to encode/decode confidential data
+ */
+public interface Encryption {
+  default int getOrder() {
+return 0;
+  }
+
+  /**
+   * decode confidential data
+   * @param encrypted encrypted data
+   * @param tags extra information used to do something
+   * @return plain data
+   */
+  char[] decode(char[] encrypted, String tags);
+
+  /**
+   *
+   * @param plain plain data
+   * @param tags extra information used to do something
+   * @return encrypted data
+   */
+  char[] encode(char[] plain, String tags);
+}
diff --git 
a/foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/Encryptions.java
 
b/foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/Encryptions.java
new file mode 100644
index 000..8039532
--- /dev/null
+++ 

[GitHub] WillemJiang commented on issue #326: Failed to get reconnected sender, all alpha server is down.

2018-11-06 Thread GitBox
WillemJiang commented on issue #326: Failed to get reconnected sender, all 
alpha server is down.
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/326#issuecomment-436521478
 
 
   @bigzengdotcom  I think we can add a check on the interceptor to make sure 
the global transaction ID is set rightly. I just create a JIRA for it. 
https://issues.apache.org/jira/browse/SCB-1011


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


With regards,
Apache Git Services


[incubator-servicecomb-java-chassis] branch master updated (8465bdd -> dcd5491)

2018-11-06 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git.


from 8465bdd  [SCB-1007] not support CustomGeneric> : 
resolve locale problem
 new 079307e  [SCB-1012] add NoRouteToHostException in retry's exception
 new dcd5491  [SCB-1012] use static strictRetriable and use Arrays.asList()

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../loadbalance/DefaultRetryExtensionsFactory.java | 32 ++
 .../loadbalance/TestDefaultRetryhandler.java   | 14 ++
 2 files changed, 28 insertions(+), 18 deletions(-)



[incubator-servicecomb-java-chassis] 02/02: [SCB-1012] use static strictRetriable and use Arrays.asList()

2018-11-06 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit dcd5491c0c46b8af7899563cc9b9118da2f45bb6
Author: weichao666 
AuthorDate: Wed Nov 7 13:33:24 2018 +0800

[SCB-1012] use static strictRetriable and use Arrays.asList()
---
 .../loadbalance/DefaultRetryExtensionsFactory.java | 32 +-
 1 file changed, 13 insertions(+), 19 deletions(-)

diff --git 
a/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
 
b/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
index 05b99f7..f8ab374 100644
--- 
a/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
+++ 
b/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
@@ -20,6 +20,7 @@ import java.io.IOException;
 import java.net.ConnectException;
 import java.net.NoRouteToHostException;
 import java.net.SocketTimeoutException;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
 import java.util.Map;
@@ -45,6 +46,18 @@ public class DefaultRetryExtensionsFactory implements 
ExtensionsFactory {
   private static final Collection ACCEPT_VALUES = Lists.newArrayList(
   RETRY_DEFAULT);
 
+  private static final Map, List> 
strictRetriable =
+  ImmutableMap., List>builder()
+  .put(ConnectException.class, Arrays.asList())
+  .put(SocketTimeoutException.class, Arrays.asList())
+  /*
+   * deal with some special exceptions caused by the server side close 
the connection
+   */
+  .put(IOException.class, Arrays.asList(new String[] {"Connection 
reset by peer"}))
+  .put(VertxException.class, Arrays.asList(new String[] {"Connection 
was closed"}))
+  .put(NoRouteToHostException.class, Arrays.asList(new String[]{"Host 
is unreachable"}))
+  .build();
+
   @Override
   public boolean isSupport(String key, String value) {
 return ACCEPT_KEYS.contains(key) && ACCEPT_VALUES.contains(value);
@@ -54,20 +67,6 @@ public class DefaultRetryExtensionsFactory implements 
ExtensionsFactory {
 return new DefaultLoadBalancerRetryHandler(
 Configuration.INSTANCE.getRetryOnSame(microservice),
 Configuration.INSTANCE.getRetryOnNext(microservice), true) {
-  private List> retriable = Lists
-  .newArrayList(ConnectException.class, SocketTimeoutException.class);
-
-  Map, List> strictRetriable =
-  ImmutableMap., List>builder()
-  .put(ConnectException.class, Lists.newArrayList())
-  .put(SocketTimeoutException.class, Lists.newArrayList())
-  /*
-   * deal with some special exceptions caused by the server side 
close the connection
-   */
-  .put(IOException.class, Lists.newArrayList(new String[] 
{"Connection reset by peer"}))
-  .put(VertxException.class, Lists.newArrayList(new String[] 
{"Connection was closed"}))
-  .put(NoRouteToHostException.class, Lists.newArrayList(new 
String[]{"Host is unreachable"}))
-  .build();
 
   @Override
   public boolean isRetriableException(Throwable e, boolean sameServer) {
@@ -82,11 +81,6 @@ public class DefaultRetryExtensionsFactory implements 
ExtensionsFactory {
 return retriable;
   }
 
-  @Override
-  protected List> getRetriableExceptions() {
-return this.retriable;
-  }
-
   public boolean isPresentAsCause(Throwable throwableToSearchIn) {
 int infiniteLoopPreventionCounter = 10;
 while (throwableToSearchIn != null && infiniteLoopPreventionCounter > 
0) {



[incubator-servicecomb-java-chassis] 02/02: [SCB-1007] not support CustomGeneric> : resolve locale problem

2018-11-06 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 8465bddbc9e05e758873bf36bcd48e52f90f7c6f
Author: heyile 
AuthorDate: Mon Nov 5 22:23:52 2018 +0800

[SCB-1007] not support CustomGeneric> : resolve locale 
problem
---
 .../java/org/apache/servicecomb/it/ConsumerMain.java   |  7 +--
 .../servicecomb/it/testcase/base/TestGeneric.java  | 10 +++---
 .../apache/servicecomb/it/schema/GenericSchema.java| 18 +-
 3 files changed, 21 insertions(+), 14 deletions(-)

diff --git 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
index 8b0a9b5..2209583 100644
--- 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
+++ 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
@@ -99,8 +99,7 @@ public class ConsumerMain {
 ITJUnitUtils.runWithHighwayAndRest(TestChangeTransport.class);
 ITJUnitUtils.runWithHighwayAndRest(TestDataTypePrimitive.class);
 ITJUnitUtils.runWithHighwayAndRest(TestAnnotatedAttribute.class);
-ITJUnitUtils.runWithRest(TestGeneric.class);
-ITJUnitUtils.run(TestGenericEdge.class);
+
 // only rest support default value feature
 ITJUnitUtils.runWithRest(TestDefaultValue.class);
 
@@ -115,6 +114,10 @@ public class ConsumerMain {
 ITJUnitUtils.runWithHighwayAndRest(TestParamCodec.class);
 ITJUnitUtils.run(TestParamCodecEdge.class);
 
+//generic
+ITJUnitUtils.runWithRest(TestGeneric.class);
+ITJUnitUtils.run(TestGenericEdge.class);
+
 ITJUnitUtils.run(TestRequestBodySpringMvcSchema.class);
 ITJUnitUtils.run(TestDefaultJsonValueJaxrsSchema.class);
 ITJUnitUtils.run(TestRestController.class);
diff --git 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/base/TestGeneric.java
 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/base/TestGeneric.java
index bf20ccc..276bd37 100644
--- 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/base/TestGeneric.java
+++ 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/base/TestGeneric.java
@@ -23,7 +23,9 @@ import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
+import java.util.TimeZone;
 
 import javax.xml.ws.Holder;
 
@@ -58,7 +60,7 @@ public class TestGeneric {
 
   private String expectUserStr = 
"{\"name\":\"nameA\",\"age\":100,\"index\":0,\"names\":null}";
 
-  private SimpleDateFormat simpleDateFormat = new 
SimpleDateFormat("-MM-dd'T'HH:mm:ss.SSS'Z'");
+  private SimpleDateFormat simpleDateFormat = new 
SimpleDateFormat("-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
 
   @Test
   public void testHolderUser_intf() {
@@ -118,7 +120,8 @@ public class TestGeneric {
 generic.value = new Date(1001);
 Generic result = consumers.getIntf().genericDate(generic);
 assertEquals(result.value.getClass(), Date.class);
-assertEquals("1970-01-01T08:00:01.001Z", 
simpleDateFormat.format(result.value));
+simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
+assertEquals("1970-01-01T00:00:01.001Z", 
simpleDateFormat.format(result.value));
   }
 
   @Test
@@ -128,7 +131,8 @@ public class TestGeneric {
 @SuppressWarnings("unchecked")
 Generic result = 
consumers.getSCBRestTemplate().postForObject("/genericDate", generic, 
Generic.class);
 assertEquals(result.value.getClass(), Date.class);
-assertEquals("1970-01-01T08:00:01.001Z", 
simpleDateFormat.format(result.value));
+simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
+assertEquals("1970-01-01T00:00:01.001Z", 
simpleDateFormat.format(result.value));
   }
 
   @Test
diff --git 
a/integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java
 
b/integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java
index 42f9ce0..03bf10f 100644
--- 
a/integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java
+++ 
b/integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java
@@ -33,42 +33,42 @@ import 
org.springframework.web.bind.annotation.RequestMapping;
 @RequestMapping(path = "/v1/generic")
 public class GenericSchema {
 
-  @PostMapping(path = "/holderUser")
+  @PostMapping(path = "holderUser")
   public Holder holderUser(@RequestBody Holder input) {
 Assert.isInstanceOf(Holder.class, input);
 Assert.isInstanceOf(User.class, input.value);
 return input;
   }
 
-  @PostMapping(path = "/genericUser")
+  @PostMapping(path = "genericUser")
   public Generic 

[GitHub] liubao68 closed pull request #980: [SCB-1007] not support CustomGeneric>

2018-11-06 Thread GitBox
liubao68 closed pull request #980: [SCB-1007] not support 
CustomGeneric>
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/980
 
 
   

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/it-common/src/main/java/org/apache/servicecomb/it/schema/Generic.java
 
b/integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/Generic.java
new file mode 100644
index 0..085b2d1da
--- /dev/null
+++ 
b/integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/Generic.java
@@ -0,0 +1,21 @@
+/*
+ * 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.servicecomb.it.schema;
+
+public class Generic {
+  public T value;
+}
diff --git 
a/integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/User.java
 
b/integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/User.java
new file mode 100644
index 0..3f87a9473
--- /dev/null
+++ 
b/integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/User.java
@@ -0,0 +1,76 @@
+/*
+ * 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.servicecomb.it.schema;
+
+import org.apache.servicecomb.foundation.common.utils.JsonUtils;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+
+public class User {
+  private String name = "nameA";
+
+  private int age = 100;
+
+  private int index;
+
+  private String[] names;
+
+  public String getName() {
+return name;
+  }
+
+  public void setName(String name) {
+this.name = name;
+  }
+
+  public String[] getNames() {
+return names;
+  }
+
+  public void setNames(String[] names) {
+this.names = names;
+  }
+
+  public int getAge() {
+return age;
+  }
+
+  public void setAge(int age) {
+this.age = age;
+  }
+
+  public int getIndex() {
+return index;
+  }
+
+  public void setIndex(int index) {
+this.index = index;
+  }
+
+  @Override
+  public String toString() {
+return "User [name=" + name + ", age=" + age + ", index=" + index + "]";
+  }
+
+  public String jsonString() {
+try {
+  return JsonUtils.writeValueAsString(this);
+} catch (JsonProcessingException e) {
+  throw new IllegalStateException(e);
+}
+  }
+}
diff --git 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
index cbc00d707..2209583cb 100644
--- 
a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
+++ 
b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/ConsumerMain.java
@@ -30,6 +30,7 @@
 import org.apache.servicecomb.it.testcase.TestDefaultValue;
 import org.apache.servicecomb.it.testcase.TestDownload;
 import org.apache.servicecomb.it.testcase.TestDownloadSlowStreamEdge;
+import org.apache.servicecomb.it.testcase.TestGenericEdge;
 import org.apache.servicecomb.it.testcase.TestIgnoreMethod;
 import org.apache.servicecomb.it.testcase.TestIgnoreStaticMethod;
 import org.apache.servicecomb.it.testcase.TestParamCodec;
@@ -40,6 +41,7 @@
 import org.apache.servicecomb.it.testcase.TestRestServerConfigEdge;
 import 

[GitHub] liubao68 closed pull request #984: [SCB-1012] add NoRouteToHostException in retry's exception

2018-11-06 Thread GitBox
liubao68 closed pull request #984: [SCB-1012] add NoRouteToHostException in 
retry's exception
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/984
 
 
   

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/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
 
b/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
index 7176d7af5..f8ab374ab 100644
--- 
a/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
+++ 
b/handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/DefaultRetryExtensionsFactory.java
@@ -18,7 +18,9 @@
 
 import java.io.IOException;
 import java.net.ConnectException;
+import java.net.NoRouteToHostException;
 import java.net.SocketTimeoutException;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.List;
 import java.util.Map;
@@ -44,6 +46,18 @@
   private static final Collection ACCEPT_VALUES = Lists.newArrayList(
   RETRY_DEFAULT);
 
+  private static final Map, List> 
strictRetriable =
+  ImmutableMap., List>builder()
+  .put(ConnectException.class, Arrays.asList())
+  .put(SocketTimeoutException.class, Arrays.asList())
+  /*
+   * deal with some special exceptions caused by the server side close 
the connection
+   */
+  .put(IOException.class, Arrays.asList(new String[] {"Connection 
reset by peer"}))
+  .put(VertxException.class, Arrays.asList(new String[] {"Connection 
was closed"}))
+  .put(NoRouteToHostException.class, Arrays.asList(new String[]{"Host 
is unreachable"}))
+  .build();
+
   @Override
   public boolean isSupport(String key, String value) {
 return ACCEPT_KEYS.contains(key) && ACCEPT_VALUES.contains(value);
@@ -53,19 +67,6 @@ public RetryHandler createRetryHandler(String retryName, 
String microservice) {
 return new DefaultLoadBalancerRetryHandler(
 Configuration.INSTANCE.getRetryOnSame(microservice),
 Configuration.INSTANCE.getRetryOnNext(microservice), true) {
-  private List> retriable = Lists
-  .newArrayList(ConnectException.class, SocketTimeoutException.class);
-
-  Map, List> strictRetriable =
-  ImmutableMap., List>builder()
-  .put(ConnectException.class, Lists.newArrayList())
-  .put(SocketTimeoutException.class, Lists.newArrayList())
-  /*
-   * deal with some special exceptions caused by the server side 
close the connection
-   */
-  .put(IOException.class, Lists.newArrayList(new String[] 
{"Connection reset by peer"}))
-  .put(VertxException.class, Lists.newArrayList(new String[] 
{"Connection was closed"}))
-  .build();
 
   @Override
   public boolean isRetriableException(Throwable e, boolean sameServer) {
@@ -80,11 +81,6 @@ public boolean isRetriableException(Throwable e, boolean 
sameServer) {
 return retriable;
   }
 
-  @Override
-  protected List> getRetriableExceptions() {
-return this.retriable;
-  }
-
   public boolean isPresentAsCause(Throwable throwableToSearchIn) {
 int infiniteLoopPreventionCounter = 10;
 while (throwableToSearchIn != null && infiniteLoopPreventionCounter > 
0) {
diff --git 
a/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestDefaultRetryhandler.java
 
b/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestDefaultRetryhandler.java
index 8535a5aef..99faf1e6a 100644
--- 
a/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestDefaultRetryhandler.java
+++ 
b/handlers/handler-loadbalance/src/test/java/org/apache/servicecomb/loadbalance/TestDefaultRetryhandler.java
@@ -19,6 +19,7 @@
 
 import java.io.IOException;
 import java.net.ConnectException;
+import java.net.NoRouteToHostException;
 import java.net.SocketTimeoutException;
 
 import org.apache.servicecomb.swagger.invocation.exception.InvocationException;
@@ -86,6 +87,19 @@ public void testRetryVertxException() {
 Assert.assertFalse(retriable);
   }
 
+  @Test
+  public void testRetryNoRouteToHostException() {
+Exception target = new NoRouteToHostException("Host is unreachable");
+Exception root = new Exception(target);
+boolean retriable = retryHandler.isRetriableException(root, false);
+Assert.assertTrue(retriable);
+
+target = new NoRouteToHostException("Cannot assign requested address");
+root = new Exception(target);
+retriable = retryHandler.isRetriableException(root, false);
+

[incubator-servicecomb-java-chassis] branch master updated (6dc11dd -> 8465bdd)

2018-11-06 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git.


from 6dc11dd  [SCB-979] add reminder log on the selection of 
SwaggerGeneratorContext
 new 4b9b9c2  [SCB-1007] not support CustomGeneric>
 new 8465bdd  [SCB-1007] not support CustomGeneric> : 
resolve locale problem

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/servicecomb/it/schema}/Generic.java |   2 +-
 .../org/apache/servicecomb/it/schema}/User.java|   3 +-
 .../org/apache/servicecomb/it/ConsumerMain.java|   6 +
 .../servicecomb/it/testcase/TestGenericEdge.java   |  88 
 .../servicecomb/it/testcase/base/TestGeneric.java  | 234 -
 .../it-edge/src/main/resources/microservice.yaml   |  25 +++
 .../servicecomb/it/schema/GenericSchema.java   | 101 +
 .../swagger/generator/core/utils/ClassUtils.java   |   2 +-
 8 files changed, 456 insertions(+), 5 deletions(-)
 copy {demo/demo-schema/src/main/java/org/apache/servicecomb/demo => 
integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema}/Generic.java
 (95%)
 copy {demo/demo-schema/src/main/java/org/apache/servicecomb/demo/server => 
integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema}/User.java
 (97%)
 create mode 100644 
integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestGenericEdge.java
 create mode 100644 
integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java



[GitHub] liubao68 closed pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
liubao68 closed pull request #983: [SCB-979] add reminder log on the selection 
of SwaggerGeneratorContext
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/983
 
 
   

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/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
index ef3979353..70adc13ec 100644
--- 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
+++ 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
@@ -18,16 +18,25 @@
 package org.apache.servicecomb.swagger.generator.core;
 
 import java.util.List;
+import java.util.Map;
 
+import org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx;
 import org.apache.servicecomb.foundation.common.utils.SPIServiceUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.EmbeddedValueResolverAware;
 import org.springframework.stereotype.Component;
 import org.springframework.util.StringValueResolver;
 
 @Component
 public class CompositeSwaggerGeneratorContext implements 
EmbeddedValueResolverAware {
+
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(CompositeSwaggerGeneratorContext.class);
+
   private List contextList;
 
+  private Map, SwaggerGeneratorContext> 
producerClassSwaggerContextCacheMap = new ConcurrentHashMapEx<>();
+
   public CompositeSwaggerGeneratorContext() {
 contextList = 
SPIServiceUtils.getSortedService(SwaggerGeneratorContext.class);
   }
@@ -46,12 +55,14 @@ public void setEmbeddedValueResolver(StringValueResolver 
resolver) {
   }
 
   public SwaggerGeneratorContext selectContext(Class cls) {
-for (SwaggerGeneratorContext context : contextList) {
-  if (context.canProcess(cls)) {
-return context;
+return producerClassSwaggerContextCacheMap.computeIfAbsent(cls, 
producerClass -> {
+  for (SwaggerGeneratorContext context : contextList) {
+if (context.canProcess(cls)) {
+  LOGGER.info("select [{}] for [{}] to generate schema.", 
context.getClass().getName(), cls.getName());
+  return context;
+}
   }
-}
-
-throw new Error("impossible, must be bug.");
+  throw new Error("impossible, must be bug.");
+});
   }
 }
diff --git 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
index 816ad6c1a..eb8ecc8a9 100644
--- 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
+++ 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
@@ -16,6 +16,7 @@
  */
 package org.apache.servicecomb.swagger.generator.pojo;
 
+import java.lang.annotation.Annotation;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.List;
@@ -31,11 +32,16 @@
 import 
org.apache.servicecomb.swagger.generator.pojo.converter.parameter.PendingBodyParameterConverter;
 import 
org.apache.servicecomb.swagger.generator.pojo.extend.parameter.PendingBodyParameter;
 import 
org.apache.servicecomb.swagger.generator.pojo.processor.parameter.PojoDefaultParameterProcessor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import io.swagger.models.parameters.BodyParameter;
 import io.swagger.models.parameters.Parameter;
 
 public class PojoSwaggerGeneratorContext extends 
AbstractSwaggerGeneratorContext {
+
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(PojoSwaggerGeneratorContext.class);
+
   static {
 ConverterMgr.addConverter(PendingBodyParameter.class, new 
PendingBodyParameterConverter());
   }
@@ -47,6 +53,16 @@ public int getOrder() {
 
   @Override
   public boolean canProcess(Class cls) {
+for (Annotation annotation : cls.getAnnotations()) {
+  // we check the annotations by class name to avoid importing extra 
dependencies in this module
+  if 
("javax.ws.rs.Path".equals(annotation.annotationType().getCanonicalName())
+  || "org.springframework.web.bind.annotation.RequestMapping"
+  .equals(annotation.annotationType().getCanonicalName())) {
+LOGGER.info(
+"There is @RequestMapping or 

[GitHub] liubao68 commented on a change in pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
liubao68 commented on a change in pull request #983: [SCB-979] add reminder log 
on the selection of SwaggerGeneratorContext
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/983#discussion_r231392835
 
 

 ##
 File path: 
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
 ##
 @@ -47,6 +53,16 @@ public int getOrder() {
 
   @Override
   public boolean canProcess(Class cls) {
+for (Annotation annotation : cls.getAnnotations()) {
+  // we check the annotations by class name to avoid importing extra 
dependencies in this module
+  if 
("javax.ws.rs.Path".equals(annotation.annotationType().getCanonicalName())
 
 Review comment:
   RestController maybe scaned for some scenario. But I think it is fine for 
this implementation, since it's only a info message 


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


With regards,
Apache Git Services


[GitHub] liubao68 commented on a change in pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
liubao68 commented on a change in pull request #983: [SCB-979] add reminder log 
on the selection of SwaggerGeneratorContext
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/983#discussion_r231392835
 
 

 ##
 File path: 
swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
 ##
 @@ -47,6 +53,16 @@ public int getOrder() {
 
   @Override
   public boolean canProcess(Class cls) {
+for (Annotation annotation : cls.getAnnotations()) {
+  // we check the annotations by class name to avoid importing extra 
dependencies in this module
+  if 
("javax.ws.rs.Path".equals(annotation.annotationType().getCanonicalName())
 
 Review comment:
   RestController maybe scaned for some scenario. But I think it is fine for 
this implementation. 


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


With regards,
Apache Git Services


[GitHub] fenqinxyz commented on issue #328: Can I use "alpha" like use "spring clould" module the same and registered to eureka ?

2018-11-06 Thread GitBox
fenqinxyz commented on issue #328: Can I use "alpha" like use "spring clould" 
module the same and  registered to eureka ?
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/328#issuecomment-436514833
 
 
   Yes, support it?


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


With regards,
Apache Git Services


[GitHub] coveralls edited a comment on issue #984: [SCB-1012] add NoRouteToHostException in retry's exception

2018-11-06 Thread GitBox
coveralls edited a comment on issue #984: [SCB-1012] add NoRouteToHostException 
in retry's exception
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/984#issuecomment-436491222
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19952988/badge)](https://coveralls.io/builds/19952988)
   
   Coverage increased (+0.003%) to 86.554% when pulling 
**3ee382ae885e702205f0f3fe65bf8e0b41061c94 on 
weichao666:retryaddnoroutetohost** into 
**b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[GitHub] minlywang commented on issue #320: Saga client Error: Connection reset by peer

2018-11-06 Thread GitBox
minlywang commented on issue #320: Saga client Error: Connection reset by peer
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/320#issuecomment-436511266
 
 
   @zhfeng @WillemJiang [网络长连接问题](https://www.jianshu.com/p/f05294c0a456)
   I want to know how long the saga tcp connection timeout is?


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


With regards,
Apache Git Services


[GitHub] coveralls edited a comment on issue #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
coveralls edited a comment on issue #983: [SCB-979] add reminder log on the 
selection of SwaggerGeneratorContext
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/983#issuecomment-436490619
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19951749/badge)](https://coveralls.io/builds/19951749)
   
   Coverage increased (+0.0008%) to 86.552% when pulling 
**254c0820eaaa1d3493cbef11d69b13cdf8dee5c8 on yhs0092:add_some_reminder_log** 
into **b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[GitHub] yhs0092 closed pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
yhs0092 closed pull request #983: [SCB-979] add reminder log on the selection 
of SwaggerGeneratorContext
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/983
 
 
   

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/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
index ef3979353..70adc13ec 100644
--- 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
+++ 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/CompositeSwaggerGeneratorContext.java
@@ -18,16 +18,25 @@
 package org.apache.servicecomb.swagger.generator.core;
 
 import java.util.List;
+import java.util.Map;
 
+import org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx;
 import org.apache.servicecomb.foundation.common.utils.SPIServiceUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.EmbeddedValueResolverAware;
 import org.springframework.stereotype.Component;
 import org.springframework.util.StringValueResolver;
 
 @Component
 public class CompositeSwaggerGeneratorContext implements 
EmbeddedValueResolverAware {
+
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(CompositeSwaggerGeneratorContext.class);
+
   private List contextList;
 
+  private Map, SwaggerGeneratorContext> 
producerClassSwaggerContextCacheMap = new ConcurrentHashMapEx<>();
+
   public CompositeSwaggerGeneratorContext() {
 contextList = 
SPIServiceUtils.getSortedService(SwaggerGeneratorContext.class);
   }
@@ -46,12 +55,14 @@ public void setEmbeddedValueResolver(StringValueResolver 
resolver) {
   }
 
   public SwaggerGeneratorContext selectContext(Class cls) {
-for (SwaggerGeneratorContext context : contextList) {
-  if (context.canProcess(cls)) {
-return context;
+return producerClassSwaggerContextCacheMap.computeIfAbsent(cls, 
producerClass -> {
+  for (SwaggerGeneratorContext context : contextList) {
+if (context.canProcess(cls)) {
+  LOGGER.info("select [{}] for [{}] to generate schema.", 
context.getClass().getName(), cls.getName());
+  return context;
+}
   }
-}
-
-throw new Error("impossible, must be bug.");
+  throw new Error("impossible, must be bug.");
+});
   }
 }
diff --git 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
index 816ad6c1a..eb8ecc8a9 100644
--- 
a/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
+++ 
b/swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/pojo/PojoSwaggerGeneratorContext.java
@@ -16,6 +16,7 @@
  */
 package org.apache.servicecomb.swagger.generator.pojo;
 
+import java.lang.annotation.Annotation;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.List;
@@ -31,11 +32,16 @@
 import 
org.apache.servicecomb.swagger.generator.pojo.converter.parameter.PendingBodyParameterConverter;
 import 
org.apache.servicecomb.swagger.generator.pojo.extend.parameter.PendingBodyParameter;
 import 
org.apache.servicecomb.swagger.generator.pojo.processor.parameter.PojoDefaultParameterProcessor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import io.swagger.models.parameters.BodyParameter;
 import io.swagger.models.parameters.Parameter;
 
 public class PojoSwaggerGeneratorContext extends 
AbstractSwaggerGeneratorContext {
+
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(PojoSwaggerGeneratorContext.class);
+
   static {
 ConverterMgr.addConverter(PendingBodyParameter.class, new 
PendingBodyParameterConverter());
   }
@@ -47,6 +53,16 @@ public int getOrder() {
 
   @Override
   public boolean canProcess(Class cls) {
+for (Annotation annotation : cls.getAnnotations()) {
+  // we check the annotations by class name to avoid importing extra 
dependencies in this module
+  if 
("javax.ws.rs.Path".equals(annotation.annotationType().getCanonicalName())
+  || "org.springframework.web.bind.annotation.RequestMapping"
+  .equals(annotation.annotationType().getCanonicalName())) {
+LOGGER.info(
+"There is @RequestMapping or 

[GitHub] yhs0092 opened a new pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
yhs0092 opened a new pull request #983: [SCB-979] add reminder log on the 
selection of SwaggerGeneratorContext
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/983
 
 
   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.
- [x] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   See details in [SCB-979](https://issues.apache.org/jira/browse/SCB-979)


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


With regards,
Apache Git Services


[GitHub] coveralls edited a comment on issue #981: [SCB-1009]Supporting configure encrypted password for proxy settings

2018-11-06 Thread GitBox
coveralls edited a comment on issue #981: [SCB-1009]Supporting configure 
encrypted password for proxy settings
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/981#issuecomment-435856688
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19951281/badge)](https://coveralls.io/builds/19951281)
   
   Coverage increased (+0.0009%) to 86.552% when pulling 
**407df6435405530f229fe5f860cef21e10edaad2 on liubao68:cipher-proxy** into 
**b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[GitHub] coveralls commented on issue #984: [SCB-1012] add NoRouteToHostException in retry's exception

2018-11-06 Thread GitBox
coveralls commented on issue #984: [SCB-1012] add NoRouteToHostException in 
retry's exception
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/984#issuecomment-436491222
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19951220/badge)](https://coveralls.io/builds/19951220)
   
   Coverage increased (+0.01%) to 86.563% when pulling 
**81128dbf7e0259e78e606702b87b363871150559 on 
weichao666:retryaddnoroutetohost** into 
**b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[GitHub] coveralls commented on issue #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
coveralls commented on issue #983: [SCB-979] add reminder log on the selection 
of SwaggerGeneratorContext
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/983#issuecomment-436490619
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19951002/badge)](https://coveralls.io/builds/19951002)
   
   Coverage increased (+0.0008%) to 86.552% when pulling 
**254c0820eaaa1d3493cbef11d69b13cdf8dee5c8 on yhs0092:add_some_reminder_log** 
into **b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[incubator-servicecomb-website] 01/02: Merge branch 'master' into asf-site

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 2ebbbc66e3fc6abaca62746b3935d9e206007da7
Merge: 8025633 25154b8
Author: Willem Jiang 
AuthorDate: Wed Nov 7 11:07:48 2018 +0800

Merge branch 'master' into asf-site

 _posts/cn/2018-11-05-talk-to-apache-experts.md | 197 +
 .../apache-developers-gathering-shanghai.jpg   | Bin 0 -> 103875 bytes
 assets/images/servicecomb-wechat-qrcode.jpg| Bin 0 -> 52906 bytes
 3 files changed, 197 insertions(+)



[incubator-servicecomb-website] branch asf-site updated (8025633 -> 6e0e64a)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git.


from 8025633  Publish the website
 add ed439b3  Add the article 'Talk to Apache experts'
 add cce0025  Add the headers for article 'Talk to Apache experts'
 add 3b6a0a8  Add splitter
 add fa12b83  Fix typos and add section 'Joining Apache developer community'
 add 25154b8  Polish the documents.
 new 2ebbbc6  Merge branch 'master' into asf-site
 new 6e0e64a  Publish the website

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 197 +
 .../apache-developers-gathering-shanghai.jpg   | Bin 0 -> 103875 bytes
 assets/images/servicecomb-wechat-qrcode.jpg| Bin 0 -> 52906 bytes
 .../apache-developers-gathering-shanghai.jpg   | Bin 0 -> 103875 bytes
 .../assets/images/servicecomb-wechat-qrcode.jpg| Bin 0 -> 52906 bytes
 .../index.html |  21 +-
 .../index.html |  18 +-
 .../docs/apache-servicecomb-day-slides/index.html  |  18 +-
 .../apache-servicecomb-incubating-day/index.html   |  18 +-
 content/cn/docs/autoscale-on-company/index.html|  18 +-
 .../index.html |  18 +-
 content/cn/docs/communication-btw-sc-ms/index.html |  18 +-
 content/cn/docs/company-on-kubernetes/index.html   |  18 +-
 .../cn/docs/config_center_integration/index.html   |  18 +-
 content/cn/docs/consul-servicemesh.html|  18 +-
 content/cn/docs/crm-part-I/index.html  |  18 +-
 .../index.html |  18 +-
 content/cn/docs/distributed_saga_1/index.html  |  18 +-
 content/cn/docs/distributed_saga_2/index.html  |  18 +-
 content/cn/docs/distributed_saga_3/index.html  |  18 +-
 content/cn/docs/go-to-cloud/index.html |  18 +-
 .../index.html |  18 +-
 .../docs/how-to-reform-a-legacy-system/index.html  |  18 +-
 content/cn/docs/jira_beginner_guide/index.html |  18 +-
 content/cn/docs/join_the_community/index.html  |  18 +-
 content/cn/docs/linuxcon-workshop-demo/index.html  |  18 +-
 content/cn/docs/loadtest-saga-with-kubernetes.html |  18 +-
 .../cn/docs/maven_dependency_management/index.html |  18 +-
 content/cn/docs/open-design/index.html |  18 +-
 content/cn/docs/osi-microservices/index.html   |  20 +-
 .../index.html |  18 +-
 content/cn/docs/release-note-1-0-0.html|  18 +-
 content/cn/docs/saga_pack_design/index.html|  18 +-
 content/cn/docs/saga_with_cucumber/index.html  |  18 +-
 .../seckill-development-journey-part-I/index.html  |  18 +-
 .../seckill-development-journey-part-II/index.html |  18 +-
 .../index.html |  18 +-
 .../index.html |  18 +-
 content/cn/docs/talk-to-apache-experts.html| 981 +
 .../cn/docs/tracing-with-servicecomb/index.html|  18 +-
 content/cn/year-archive/index.html | 152 
 .../index.html |  14 +-
 .../index.html |  18 +-
 .../index.html |  18 +-
 .../apache-servicecomb-incubating-day/index.html   |  18 +-
 content/docs/autoscale-on-company/index.html   |  18 +-
 content/docs/communication-btw-sc-ms/index.html|  18 +-
 content/docs/company-on-kubernetes/index.html  |  18 +-
 content/docs/distributed_saga_1/index.html |  18 +-
 content/docs/distributed_saga_2/index.html |  18 +-
 content/docs/distributed_saga_3/index.html |  18 +-
 content/docs/go-to-cloud/index.html|  18 +-
 .../docs/how-to-reform-a-legacy-system/index.html  |  18 +-
 content/docs/howto-upgrade-topzipkin2/index.html   |  18 +-
 content/docs/linuxcon-workshop-demo/index.html |  18 +-
 content/docs/osi-microservices/index.html  |  22 +-
 content/docs/release-note-1-0-0/index.html |  18 +-
 .../seckill-development-journey-part-I/index.html  |  18 +-
 .../seckill-development-journey-part-II/index.html |  18 +-
 .../index.html |  18 +-
 content/docs/service-center-ui/index.html  |  18 +-
 .../service-registry-refactor-proposal/index.html  |  18 +-
 .../index.html |  18 +-
 content/docs/tracing-with-servicecomb/index.html   |  18 +-
 content/feed.xml   | 396 -
 content/sitemap.xml|   4 +
 

[incubator-servicecomb-website] 05/05: Polish the documents.

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 25154b83cdeda89d4a20f9c69e9788b95219568e
Author: Willem Jiang 
AuthorDate: Wed Nov 7 11:04:20 2018 +0800

Polish the documents.
---
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
index 2b68e2e..efbe31e 100644
--- a/_posts/cn/2018-11-05-talk-to-apache-experts.md
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -31,7 +31,7 @@ Apache软件基金会是一个成立于1999年的非盈利慈善组织,英文
 
 
虽然参与了很多Apache开源项目,坦白地说我对Apache的项目孵化流程其实不是特别清楚。直到ServiceComb这个项目,我经历了寻找Mentor,捐赠协议签署,迁移项目,孵化器发版,以及毕业准备这些流程之后,才对Apache孵化器孵化流程有了比较深的认识。
 
-今天的Meetup之前,和大家交流中我发现大家最关心的问题就是如何从Apache孵化器毕业。 我们今天邀请到远道而来的Apache 
Member,Roman,Justin,Craig和我们一起交流的分享他们有关Apache孵化器孵化经验,以及开源相关的感悟。
+今天的Meetup之前,和大家交流中我发现大家最关心的问题就是如何从Apache孵化器毕业。 我们今天邀请到远道而来的Apache 
Member,Roman,Justin,Craig和国内Apache项目开发者一起交流的分享他们有关Apache孵化器孵化经验,以及开源相关的感悟。
 
 ---
 ### 活动期间问答交流
@@ -111,7 +111,7 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 
  项目的提交者和PMC成员不够活跃,我应该怎么办?
 
-*有些开发者成为提交者后就消失了,有时候PMC成员也不能非常及时的审查提交,有没有什么规则推动大家活跃起来?*
+*[Griffin开发者刘力力]有些开发者成为提交者后就消失了,有时候PMC成员也不能非常及时的审查提交,有没有什么规则推动大家活跃起来?*
 
 [Justin]
 
@@ -127,13 +127,13 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 - **可以通过降低门槛,让更多人可以参与进来,解决社区响应不及时的问题。**
 - **VP承担项目领导责任,要时刻保持活跃。遇到问题可以向VP寻求帮助**
 
-在Apache软件基金会的组织结构中,Apache董事会根据基金会的管理原则,负责管理和监督对外合作的商业和事务,包括基金、知识资产、注册商标等。每个Apache项目都有一个PMC(项目管理委员会),负责项目的管理和监督,并定期向Apache董事会汇报项目情况。PMC有一位主席(Chairperson),也被称为该项目的Vice
 President,简称VP。VP由董事会指定,是董事会和项目之间的接口人,负责项目汇报、保证项目和代码遵从法规、管理商标事务、管理邮件列表等合规性问题。
+在Apache软件基金会的组织结构中,Apache董事会根据基金会的管理原则,负责管理和监督对外合作的商业和事务,包括基金、知识资产、注册商标等。每个Apache项目都有一个PMC(项目管理委员会),负责项目的管理和监督,并定期向Apache董事会汇报项目情况。PMC有一位主席(Chairperson),也被称为该项目的Vice
 
President,简称VP。VP由董事会指定,是董事会和项目之间的接口人,负责项目汇报、同时与PMC一同保证项目和代码遵从法规、管理商标事务、管理邮件列表等合规性问题,发展新的Committer和PMC成员。
 
 
 
  发版投票过程漫长,如何保持正确的发版“姿势”?
 
-*Gearpump开发者表示,发版投票需要经过至少72+72个小时,过程非常漫长,又担心犯错误导致投票过少进而导致发版失败。并且,有时候发起投票,响应的人比较少。*
+*[Gearpump开发者张天伦]表示,发版投票需要经过至少72+72个小时,过程非常漫长,又担心犯错误导致投票过少进而导致发版失败。并且,有时候发起投票,响应的人比较少。*
 
 [Justin]
 



[incubator-servicecomb-website] 03/05: Add splitter

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 3b6a0a8567d795767b4c05aac4ec5968c7e5e65d
Author: Zhen Ju 
AuthorDate: Tue Nov 6 17:33:56 2018 +0800

Add splitter
---
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
index 11c5e2b..6b854a1 100644
--- a/_posts/cn/2018-11-05-talk-to-apache-experts.md
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -17,10 +17,12 @@ redirect_from:
 
 
2018年10月13日下午,国内首个从Apache孵化器毕业的微服务项目ServiceComb的团队邀请Apache基金会三位专家成员:Apache孵化器主席Justin
 Mclean,Apache董事会董事Roman Shaposhnik, 以及Apache基金会秘书长兼形象大使Craig 
Rossell,与国内Apache项目开发者相聚于上海。针对开发者所关心的Apache精英管理模式,从孵化器毕业成为顶级项目,开源软件的商业化等主题进行了深入的交流。本文对活动当日的交流进行了整理和总结。
 
+---
 ### Apache基金会简介
 
 Apache软件基金会是一个成立于1999年的非盈利慈善组织,英文名称 Apache Software Foundation,简称 
ASF,最早源于开发Apache 
HTTP服务器的一个爱好者组织“Apache组织”。经过近20年的发展,Apache软件基金会已成为世界上最大的开源基金会,负责监管350多个免费的企业级项目和1.9亿多行的代码,它们作为主干支撑着全球广泛使用的应用程序。
 
+---
 ### 开场介绍
 
 
大家好,我是姜宁,今天咱们聚集了华东地区参与Apache相关项目开发的Committer。值得一提的是这里大部分Apache项目都还在孵化器中孵化,同时还有一些准备进入Apache孵化的项目。
@@ -31,8 +33,10 @@ Apache软件基金会是一个成立于1999年的非盈利慈善组织,英文
 
 今天的Meetup之前,和大家交流中我发现大家最关心的问题就是如何从Apache孵化器毕业。 我们今天邀请到远道而来的Apache 
Member,Roman,Justin,Craig和我们一起交流的分享他们有关Apache孵化器孵化经验,以及开源相关的感悟。
 
+---
 ### 活动期间问答交流
 
+---
  如何从Apache软件基金会孵化器毕业成为顶级项目
 
 [Justin]
@@ -67,7 +71,7 @@ ASF非常强调多样性原则。 大部分开源软件项目都是创新型项
 
  对于构建持续增长的社区,有何建议?
 
-[Justin] 
+[Justin]
 
 
要让大家觉得自己是受欢迎的。当有人在邮件列表中提问时,我通常会分配PMC成员关注问题,并咨询提问者是否还需要其他帮助,或者有其他问题,我把这个作为日常工作。这样也有利于开发者从用户变成提交者甚至PMC成员。良好的文档可以让大家更容易使用你的项目。而文档的缺失则可能造成用户的流失,人们编译编译代码,就再也不使用这个项目了,因为项目上手太难了。
 
@@ -180,7 +184,7 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 - **开展开源软件的培训服务**
 
 
-
+---
 ### 活动尾声
 
 
经过一番深入的沟通和交流,现场的开发者对Apache基金会、基金会的经营管理模式、Apache孵化器的运作模式都有了进一步的了解。在meetup活动的最后,三位Apache专家带领现场所有开发者进行了“Apache问答”小游戏。问答题目由Justin编写,公布在网站https://rawgit.com/justinmclean/ApacheQuiz/master/compiled/index.html
 
上,问题有不同的难度等级,涉及Apache基金会的管理模式、Apache开源协议、版本发布注意事项、三方软件集成等。三位专家与开发者一起答题,并对题目进行了风趣幽默的解读。最终,活动在一片欢笑声中结束,三位专家与开发者进行合影留念。
@@ -188,7 +192,7 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 ![apache-developers-gathering]({{ site.url }}{{ site.baseurl 
}}/assets/images/apache-developers-gathering-shanghai.jpg)
 
 
-
+---
 ### Apache知多少
 
 本文从问答游戏中抽取了版本发布相关的三个问题,各位读者可以尝试回答,答案将在ServiceComb公众号发布,快来看看,你答对了没有吧!



[incubator-servicecomb-website] 01/05: Add the article 'Talk to Apache experts'

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit ed439b3352d47c94fedb17c2bc84b394a10fd6c9
Author: Zhen Ju 
AuthorDate: Tue Nov 6 17:02:28 2018 +0800

Add the article 'Talk to Apache experts'
---
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 217 +
 .../apache-developers-gathering-shanghai.jpg   | Bin 0 -> 103875 bytes
 assets/images/servicecomb-wechat-qrcode.jpg| Bin 0 -> 52906 bytes
 3 files changed, 217 insertions(+)

diff --git a/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
new file mode 100644
index 000..9f6fc70
--- /dev/null
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -0,0 +1,217 @@
+## 对话Apache大咖
+
+### 活动简介
+
+2018年10月13日下午,国内首个从Apache孵化器毕业的微服务项目ServiceComb的团队邀请Apache基金会三位专家成员:Apache孵化器主席Justin
 Mclean,Apache董事会董事Roman Shaposhnik, 以及Apache基金会秘书长兼形象大使Craig 
Rossell,与国内Apache项目开发者相聚于上海。针对开发者所关心的Apache精英管理模式,从孵化器毕业成为顶级项目,开源软件的商业化等主题进行了深入的交流。本文对活动当日的交流进行了整理和总结。
+
+### Apache基金会简介
+
+Apache软件基金会是一个成立于1999年的非盈利慈善组织,英文名称 Apache Software Foundation,简称 
ASF,最早源于开发Apache 
HTTP服务器的一个爱好者组织“Apache组织”。经过近20年的发展,Apache软件基金会已成为世界上最大的开源基金会,负责监管350多个免费的企业级项目和1.9亿多行的代码,它们作为主干支撑着全球广泛使用的应用程序。
+
+### 开场介绍
+
+大家好,我是姜宁,今天咱们聚集了华东地区参与Apache相关项目开发的Committer。值得一提的是这里大部分Apache项目都还在孵化器中孵化,同时还有一些准备进入Apache孵化的项目。
+
+我在2006年9月作为 CXF 初始 committer与Apache软件基金会结缘,2011年1月正式成为 
Apache基金会成员。我在基金会作为导师(Mentor)参与了多个来自中国的Apache孵化器项目。2017年,我作为项目负责人推动ServiceComb进入Apache
 孵化器进行孵化,现在 ServiceComb已经很快就要从Apache孵化器毕业了。
+
+虽然参与了很多Apache开源项目,坦白地说我对Apache的项目孵化流程其实不是特别清楚。直到ServiceComb这个项目,我经历了寻找Mentor,捐赠协议签署,迁移项目,孵化器发版,以及毕业准备这些流程之后,才对Apache孵化器孵化流程有了比较深的认识。
+
+今天的Meetup之前,和大家交流中我发现大家最关心的问题就是如何从Apache孵化器毕业。 我们今天邀请到远道而来的Apache 
Member,Roman,Justin,Craig和我们一起交流的分享他们有关Apache孵化器孵化经验,以及开源相关的感悟。
+
+### 活动期间问答交流
+
+ 如何从Apache软件基金会孵化器毕业成为顶级项目
+
+[Justin]
+
+从Apache孵化器毕业,首要为孵化项目构建一个社区,项目毕业意味着很多事情,比如要保持开发者的多样性,项目贡献者不能仅仅来自一个公司。此外,还应该尝试小版本发布(make
 micro releases)。
+
+[Roman]
+
+发布版本时,除了项目本身,还有许多合规性工作(mechanical 
stuff)要做,例如开源协议,发版签名,发版投票等等。项目进入孵化器后,要尽快尝试发布第一个版本。许多孵化项目(podling)都想在发布版本时中搞定这样或那样的功能,我总是跟他们说,没关系,项目不一定能够跑起来,甚至不一定能成功编译,一定要先把合规性问题解决,然后再专注于功能开发。
+
+[Justin]
+
+没错,要尽早发版、多做发版。
+
+[姜宁]
+
+发布版本尽管痛苦,但是要尽早去做。ServiceComb在发布第一个版本时,团队也非常痛苦,但是经历过这个阶段,后面会变得越来越顺利。
+
+> 孵化器毕业要点解读
+
+- **构建社区**
+
+ASF一直坚信好的软件是由强大的社区构建出来的。诚然,代码是一个软件社区的重中之重,但Apache之道”Community over 
code”同样强调社区的重要性。它意味着我们的行事方式,如何看待彼此,如何进行决策,甚至如何编写代码。健康、互相尊重的社区非常重要,这不仅让社区的开发者有被尊重的感觉,也会带来切实的好处。一个健康、多样、包容的社区,可以促进项目不断成长,可持续发展。甚至,有助于用开源技术提供服务的公司获得商业上的成功。
+
+- **保持贡献者多样性**
+
+ASF非常强调多样性原则。 大部分开源软件项目都是创新型项目,多样性保证了开源项目的持续创新, 也保证了社区的健康发展。 开源项目鼓励所有个体或公司参与, 
让他们感觉能对项目有所掌控,或者会对项目产生一定影响。这样可以保证意见的多样性、用户的多样性、系统的的多样性。Apache项目通常是要求有三个以上不同公司的人参与开发,以保证项目不会因为其中某个公司的退出而终止。
+
+- **尽早、尽量多的进行版本发布**
+
+
+
+ 对于构建持续增长的社区,有何建议?
+
+[Justin] 
+
+要让大家觉得自己是受欢迎的。当有人在邮件列表中提问时,我通常会分配PMC成员关注问题,并咨询提问者是否还需要其他帮助,或者有其他问题,我把这个作为日常工作。这样也有利于开发者从用户变成提交者甚至PMC成员。良好的文档可以让大家更容易使用你的项目。而文档的缺失则可能造成用户的流失,人们编译编译代码,就再也不使用这个项目了,因为项目上手太难了。
+
+[Roman]
+
+良好的文档确实非常重要。此外,我也有其他方面的建议。Apache软件基金会参与了一些项目,吸引了不少开贡献者。我们一直指导Google代码夏令营活动,夏令营由Google赞助,帮开发者更好的发展他们自己的项目。如果你可以让自己的社区参加类似的活动,对于社区建设无疑是有很大帮助的。因为大家来自中国的社区,我也建议一些中国的大公司,例如华为,也可以举办类似的学生项目,学生是一个项目最好的新鲜血液。
+
+[Justin]
+
+在会议中分享项目、建立技术博客也是不错的方式。
+
+[吴晟]
+
+Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化时只有15个committer,而现在,代码层面的提交者已经达到了70人。我们提倡大家提交小的改动,这样很容易提交代码来做贡献,所以我们每次发布版本都会吸引一些开发者。当我们没有太多精力投入到测试时,我们会吸引开发者来提供测试,他们可以提交集成测试结果,可以提交测试模型,只要保持正确的编程风格,PMC的成员就可以进行审查,并合并代码。
+
+[Justin]
+
+这里我想多提一点,很多项目过于注重质量。有些Apache项目收到一些代码不太完美的提交,就直接丢弃了这些提交,然后自己从头搞起。其实这并没有关系,如果你收到了不太完美的PR,可以请社区成员帮忙改进质量。另外,在JIRA或Github上浏览issue时,如果发现一些比较简单的issue,你可以加个”easy
 to fix”标签,告诉大家这个issue比较容易解决,这样也可以吸引人来贡献。
+
+[吴晟]
+
+没错,我们也会跟踪一些讨论,有些时候我们可能会考虑过于理想的方案。但是好的项目有时候并不完全是完美的代码决定的,还要考虑不同的场景。这样项目才能不断壮大。
+
+[姜宁]
+
+我也谈谈自己的感受,我非常赞同Justin所说的“Low the bar”。我在参与Apache 
Camel项目开发时,它已经非常成熟了,但是我们还采用先提交后Review的方式进开发。 
有很多人为Camel提交Patch,我们从来不说“No”。有些人提交的代码质量可能并不太好,我们还是会接受这些补丁,让贡献者觉得自己得到认可。这样,开发者就不会想“啊,我还不够优秀,还无法成为committer,我提交的补丁也不够好,那我还是不提交补丁了。”
 在我们合入代码时候,我们也会顺道帮助修复一下补丁上面的问题。 顺便说一句,Apache 
Camel现在有200多个组件,目前项目只有大概4,5个人在维护,很大程度上是得益与这种降低社区门槛的方式。
+
+> 构建社区的建议
+
+- **让大家觉得自己是受欢迎的。**
+- **编写良好的文档,降低初学者入门难度。**
+- **参与或组织类似Google代码夏令营的学生项目。**
+- **在技术会议中分享项目经验,建立技术博客传播技术。**
+- **提倡小的改动,乐于接受他人的贡献,乐于帮助改进质量,让开发者更容易参与社区贡献。**
+
+
+
+ 项目的提交者和PMC成员不够活跃,我应该怎么办?
+
+*有些开发者成为提交者后就消失了,有时候PMC成员也不能非常及时的审查提交,有没有什么规则推动大家活跃起来?*
+
+[Justin]
+
+我觉得提交者或者PMC成员不活跃并不是问题,不是所有人都必须活跃。但是如果项目的导师不活跃就是问题了,因为导师要指导项目,告诉项目成员正确的做事方法。我们没办法为提交者和PMC成员制定“(及时反馈的)规则”,这样对他们要求太高了。我们应该降低门槛,让更多人参与进来。
+
+[Roman]
+
+通常,每个项目的PMC都有VP(Vice 
President),VP主要负责合规性相关的工作,向Apache董事会汇报,但是VP也要担当起项目的领导者角色。即便所有其他PMC成员都在沉睡,VP也是唯一要保持清醒的人。VP是默认的那个要回答问题的人,当然不是技术相关的问题,而是回答管理流程相关的问题。如果邮件列表无人响应,你要写信给VP,告诉他,“嘿,大家似乎都睡着了,我们应该怎么办呢?”。VP有权利做出改变,他可以组织大家开始审查提交,让大家醒过来。
+
+> 要点总结
+
+- **Apache基金会是个公益组织,不能通过强制要求来约束成员。**
+- **可以通过降低门槛,让更多人可以参与进来,解决社区响应不及时的问题。**
+- 

[GitHub] WillemJiang closed pull request #148: Add the article 'talk to apache experts'

2018-11-06 Thread GitBox
WillemJiang closed pull request #148: Add the article 'talk to apache experts'
URL: https://github.com/apache/incubator-servicecomb-website/pull/148
 
 
   

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/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
new file mode 100644
index ..efbe31e8
--- /dev/null
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -0,0 +1,197 @@
+---
+title: "对话Apache大咖"
+lang: cn
+ref: talk-to-apache-experts
+permalink: /cn/docs/talk-to-apache-experts
+excerpt: "Apache专家现场解读Apache基金会及孵化器运作模式"
+last_modified_at: 2018-11-05T17:10:21+08:00
+author: Zhen Ju
+tags: [微服务, Meetup, Apache]
+redirect_from:
+  - /theme-setup/
+---
+
+## 对话Apache大咖
+
+### 活动简介
+
+2018年10月13日下午,国内首个从Apache孵化器毕业的微服务项目ServiceComb的团队邀请Apache基金会三位专家成员:Apache孵化器主席Justin
 Mclean,Apache董事会董事Roman Shaposhnik, 以及Apache基金会秘书长兼形象大使Craig 
Rossell,与国内Apache项目开发者相聚于上海。针对开发者所关心的Apache精英管理模式,从孵化器毕业成为顶级项目,开源软件的商业化等主题进行了深入的交流。本文对活动当日的交流进行了整理和总结。
+
+---
+### Apache基金会简介
+
+Apache软件基金会是一个成立于1999年的非盈利慈善组织,英文名称 Apache Software Foundation,简称 
ASF,最早源于开发Apache 
HTTP服务器的一个爱好者组织“Apache组织”。经过近20年的发展,Apache软件基金会已成为世界上最大的开源基金会,负责监管350多个免费的企业级项目和1.9亿多行的代码,它们作为主干支撑着全球广泛使用的应用程序。
+
+---
+### 开场介绍
+
+大家好,我是姜宁,今天咱们聚集了华东地区参与Apache相关项目开发的Committer。值得一提的是这里大部分Apache项目都还在孵化器中孵化,同时还有一些准备进入Apache孵化的项目。
+
+我在2006年9月作为 CXF 初始 committer与Apache软件基金会结缘,2011年1月正式成为 
Apache基金会成员。我在基金会作为导师(Mentor)参与了多个来自中国的Apache孵化器项目。2017年,我作为项目负责人推动ServiceComb进入Apache
 孵化器进行孵化,现在 ServiceComb已经很快就要从Apache孵化器毕业了。
+
+虽然参与了很多Apache开源项目,坦白地说我对Apache的项目孵化流程其实不是特别清楚。直到ServiceComb这个项目,我经历了寻找Mentor,捐赠协议签署,迁移项目,孵化器发版,以及毕业准备这些流程之后,才对Apache孵化器孵化流程有了比较深的认识。
+
+今天的Meetup之前,和大家交流中我发现大家最关心的问题就是如何从Apache孵化器毕业。 我们今天邀请到远道而来的Apache 
Member,Roman,Justin,Craig和国内Apache项目开发者一起交流的分享他们有关Apache孵化器孵化经验,以及开源相关的感悟。
+
+---
+### 活动期间问答交流
+
+---
+ 如何从Apache软件基金会孵化器毕业成为顶级项目
+
+[Justin]
+
+从Apache孵化器毕业,首要为孵化项目构建一个社区,项目毕业意味着很多事情,比如要保持开发者的多样性,项目贡献者不能仅仅来自一个公司。此外,还应该尝试小版本发布(make
 micro releases)。
+
+[Roman]
+
+发布版本时,除了项目本身,还有许多合规性工作(mechanical 
stuff)要做,例如开源协议,发版签名,发版投票等等。项目进入孵化器后,要尽快尝试发布第一个版本。许多孵化项目(podling)都想在发布版本时中搞定这样或那样的功能,我总是跟他们说,没关系,项目不一定能够跑起来,甚至不一定能成功编译,一定要先把合规性问题解决,然后再专注于功能开发。
+
+[Justin]
+
+没错,要尽早发版、多做发版。
+
+[姜宁]
+
+发布版本尽管痛苦,但是要尽早去做。ServiceComb在发布第一个版本时,团队也非常痛苦,但是经历过这个阶段,后面会变得越来越顺利。
+
+> 孵化器毕业要点解读
+
+- **构建社区**
+
+ASF一直坚信好的软件是由强大的社区构建出来的。诚然,代码是一个软件社区的重中之重,但Apache之道”Community over 
code”同样强调社区的重要性。它意味着我们的行事方式,如何看待彼此,如何进行决策,甚至如何编写代码。健康、互相尊重的社区非常重要,这不仅让社区的开发者有被尊重的感觉,也会带来切实的好处。一个健康、多样、包容的社区,可以促进项目不断成长,可持续发展。甚至,有助于用开源技术提供服务的公司获得商业上的成功。
+
+- **保持贡献者多样性**
+
+ASF非常强调多样性原则。 大部分开源软件项目都是创新型项目,多样性保证了开源项目的持续创新, 也保证了社区的健康发展。 开源项目鼓励所有个体或公司参与, 
让他们感觉能对项目有所掌控,或者会对项目产生一定影响。这样可以保证意见的多样性、用户的多样性、系统的的多样性。Apache项目通常是要求有三个以上不同公司的人参与开发,以保证项目不会因为其中某个公司的退出而终止。
+
+- **尽早、尽量多的进行版本发布**
+
+
+
+ 对于构建持续增长的社区,有何建议?
+
+[Justin]
+
+要让大家觉得自己是受欢迎的。当有人在邮件列表中提问时,我通常会分配PMC成员关注问题,并咨询提问者是否还需要其他帮助,或者有其他问题,我把这个作为日常工作。这样也有利于开发者从用户变成提交者甚至PMC成员。良好的文档可以让大家更容易使用你的项目。而文档的缺失则可能造成用户的流失,人们编译编译代码,就再也不使用这个项目了,因为项目上手太难了。
+
+[Roman]
+
+良好的文档确实非常重要。此外,我也有其他方面的建议。Apache软件基金会参与了一些项目,吸引了不少开贡献者。我们一直指导Google代码夏令营活动,夏令营由Google赞助,帮开发者更好的发展他们自己的项目。如果你可以让自己的社区参加类似的活动,对于社区建设无疑是有很大帮助的。因为大家来自中国的社区,我也建议一些中国的大公司,例如华为,也可以举办类似的学生项目,学生是一个项目最好的新鲜血液。
+
+[Justin]
+
+在会议中分享项目、建立技术博客也是不错的方式。
+
+[吴晟]
+
+Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化时只有15个committer,而现在,代码层面的提交者已经达到了70人。我们提倡大家提交小的改动,这样很容易提交代码来做贡献,所以我们每次发布版本都会吸引一些开发者。当我们没有太多精力投入到测试时,我们会吸引开发者来提供测试,他们可以提交集成测试结果,可以提交测试模型,只要保持正确的编程风格,PMC的成员就可以进行审查,并合并代码。
+
+[Justin]
+
+这里我想多提一点,很多项目过于注重质量。有些Apache项目收到一些代码不太完美的提交,就直接丢弃了这些提交,然后自己从头搞起。其实这并没有关系,如果你收到了不太完美的PR,可以请社区成员帮忙改进质量。另外,在JIRA或Github上浏览issue时,如果发现一些比较简单的issue,你可以加个”easy
 to fix”标签,告诉大家这个issue比较容易解决,这样也可以吸引人来贡献。
+
+[吴晟]
+
+没错,我们也会跟踪一些讨论,有些时候我们可能会考虑过于理想的方案。但是好的项目有时候并不完全是完美的代码决定的,还要考虑不同的场景。这样项目才能不断壮大。
+
+[姜宁]
+
+我也谈谈自己的感受,我非常赞同Justin所说的“Low the bar”。我在参与Apache 
Camel项目开发时,它已经非常成熟了,但是我们还采用先提交后Review的方式进开发。 
有很多人为Camel提交Patch,我们从来不说“No”。有些人提交的代码质量可能并不太好,我们还是会接受这些补丁,让贡献者觉得自己得到认可。这样,开发者就不会想“啊,我还不够优秀,还无法成为committer,我提交的补丁也不够好,那我还是不提交补丁了。”
 在我们合入代码时候,我们也会顺道帮助修复一下补丁上面的问题。 顺便说一句,Apache 
Camel现在有200多个组件,目前项目只有大概4,5个人在维护,很大程度上是得益与这种降低社区门槛的方式。
+
+> 构建社区的建议
+
+- **让大家觉得自己是受欢迎的。**
+- **编写良好的文档,降低初学者入门难度。**
+- **参与或组织类似Google代码夏令营的学生项目。**
+- **在技术会议中分享项目经验,建立技术博客传播技术。**
+- **提倡小的改动,乐于接受他人的贡献,乐于帮助改进质量,让开发者更容易参与社区贡献。**
+
+
+
+ 项目的提交者和PMC成员不够活跃,我应该怎么办?
+
+*[Griffin开发者刘力力]有些开发者成为提交者后就消失了,有时候PMC成员也不能非常及时的审查提交,有没有什么规则推动大家活跃起来?*
+
+[Justin]
+
+我觉得提交者或者PMC成员不活跃并不是问题,不是所有人都必须活跃。但是如果项目的导师不活跃就是问题了,因为导师要指导项目,告诉项目成员正确的做事方法。我们没办法为提交者和PMC成员制定“(及时反馈的)规则”,这样对他们要求太高了。我们应该降低门槛,让更多人参与进来。
+
+[Roman]
+
+通常,每个项目的PMC都有VP(Vice 

[incubator-servicecomb-website] branch master updated (3d162a1 -> 25154b8)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git.


from 3d162a1  Translate the release page
 new ed439b3  Add the article 'Talk to Apache experts'
 new cce0025  Add the headers for article 'Talk to Apache experts'
 new 3b6a0a8  Add splitter
 new fa12b83  Fix typos and add section 'Joining Apache developer community'
 new 25154b8  Polish the documents.

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 197 +
 .../apache-developers-gathering-shanghai.jpg   | Bin 0 -> 103875 bytes
 assets/images/servicecomb-wechat-qrcode.jpg| Bin 0 -> 52906 bytes
 3 files changed, 197 insertions(+)
 create mode 100644 _posts/cn/2018-11-05-talk-to-apache-experts.md
 create mode 100644 assets/images/apache-developers-gathering-shanghai.jpg
 create mode 100644 assets/images/servicecomb-wechat-qrcode.jpg



[incubator-servicecomb-website] 04/05: Fix typos and add section 'Joining Apache developer community'

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit fa12b838eabb864e10b07815457afcb26f6c22dc
Author: Zhen Ju 
AuthorDate: Wed Nov 7 10:40:50 2018 +0800

Fix typos and add section 'Joining Apache developer community'
---
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 39 ++
 1 file changed, 3 insertions(+), 36 deletions(-)

diff --git a/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
index 6b854a1..2b68e2e 100644
--- a/_posts/cn/2018-11-05-talk-to-apache-experts.md
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -187,44 +187,11 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 ---
 ### 活动尾声
 
-经过一番深入的沟通和交流,现场的开发者对Apache基金会、基金会的经营管理模式、Apache孵化器的运作模式都有了进一步的了解。在meetup活动的最后,三位Apache专家带领现场所有开发者进行了“Apache问答”小游戏。问答题目由Justin编写,公布在网站https://rawgit.com/justinmclean/ApacheQuiz/master/compiled/index.html
 
上,问题有不同的难度等级,涉及Apache基金会的管理模式、Apache开源协议、版本发布注意事项、三方软件集成等。三位专家与开发者一起答题,并对题目进行了风趣幽默的解读。最终,活动在一片欢笑声中结束,三位专家与开发者进行合影留念。
+经过一番深入的沟通和交流,现场的开发者对Apache基金会、基金会的精英管理模式、Apache孵化器的运作模式都有了进一步的了解。在meetup活动的最后,三位Apache专家带领现场所有开发者进行了“Apache问答”小游戏。问答题目由Justin编写,公布在网站https://rawgit.com/justinmclean/ApacheQuiz/master/compiled/index.html
 
上,问题有不同的难度等级,涉及Apache基金会的管理模式、Apache开源协议、版本发布注意事项、三方软件集成等。三位专家与开发者一起答题,并对题目进行了风趣幽默的解读。最终,活动在一片欢笑声中结束,三位专家与开发者进行合影留念。
 
 ![apache-developers-gathering]({{ site.url }}{{ site.baseurl 
}}/assets/images/apache-developers-gathering-shanghai.jpg)
 
 
 ---
-### Apache知多少
-
-本文从问答游戏中抽取了版本发布相关的三个问题,各位读者可以尝试回答,答案将在ServiceComb公众号发布,快来看看,你答对了没有吧!
-
-> **问题1**
->
-> Apache软件基金会为版本发布制定了相关策略,因为:
->
->  A. Apache热爱官僚主义
->  B. 这样可以降低法律保护的成本
->  C. 这样可以为发版相关的人员提供法律保护
->  D. 这样可以绕过软件协议的条款
-
-
-
-> **问题2**
->
-> 顶级项目为版本发布进行投票时,需要:
->
->  A. 投票必须有72小时窗口期
->  B. 只要超过3个"+"投票就可以发布版本
->  C. "+1"投票要超过3个,并且"+1"投票要多于"-1"投票
->  D. 只要有1个"-1"投票就意味着投票不通过
-
-
-
-> **问题3**
-> 对于发布的新版本,PMC(项目管理委员会)必须:
->
->  A. 公布官方发布源代码
->  B. 提供新版本的二进制文件
-
-关注ServiceComb公众号查看答案:
-
-![servicecomb-wechat-qrcode]({{ site.url }}{{ site.baseurl 
}}/assets/images/servicecomb-wechat-qrcode.jpg)
+### 加入Apache开发者社区
+Apache软件基金会作为全球最大的开源软件基金会,其独特的精英治理模式和社区文化得到了全球无数开发者的青睐。如果读者有意加入Apache社区,参与Apache开源项目贡献,可以参考《[如何成为commiter](http://servicecomb.apache.org/cn/developers/becomming-a-commiter)》,了解Apache基金会的管理模式,以及《[从开源小白到Apache
 
Commiter](http://servicecomb.apache.org/cn/docs/how-to-grow-up-to-be-an-apache-committer)》,体会开发者成长为commiter的心路历程。期待在Apache社区见到更多中国开发者的身影,我们,社区见!



[incubator-servicecomb-website] 02/05: Add the headers for article 'Talk to Apache experts'

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit cce00254921e60af084fb1dd6306dc4eef9c1106
Author: Zhen Ju 
AuthorDate: Tue Nov 6 17:20:25 2018 +0800

Add the headers for article 'Talk to Apache experts'
---
 _posts/cn/2018-11-05-talk-to-apache-experts.md | 31 +-
 1 file changed, 20 insertions(+), 11 deletions(-)

diff --git a/_posts/cn/2018-11-05-talk-to-apache-experts.md 
b/_posts/cn/2018-11-05-talk-to-apache-experts.md
index 9f6fc70..11c5e2b 100644
--- a/_posts/cn/2018-11-05-talk-to-apache-experts.md
+++ b/_posts/cn/2018-11-05-talk-to-apache-experts.md
@@ -1,3 +1,16 @@
+---
+title: "对话Apache大咖"
+lang: cn
+ref: talk-to-apache-experts
+permalink: /cn/docs/talk-to-apache-experts
+excerpt: "Apache专家现场解读Apache基金会及孵化器运作模式"
+last_modified_at: 2018-11-05T17:10:21+08:00
+author: Zhen Ju
+tags: [微服务, Meetup, Apache]
+redirect_from:
+  - /theme-setup/
+---
+
 ## 对话Apache大咖
 
 ### 活动简介
@@ -195,22 +208,18 @@ Skywalking是中国开发者发起的一个Apache孵化项目,刚加入孵化
 >
 > 顶级项目为版本发布进行投票时,需要:
 >
-> A. 投票必须有72小时窗口期
->
-> B. 只要超过3个"+"投票就可以发布版本
->
-> C. "+1"投票要超过3个,并且"+1"投票要多于"-1"投票
->
-> D. 只要有1个"-1"投票就意味着投票不通过
+>  A. 投票必须有72小时窗口期
+>  B. 只要超过3个"+"投票就可以发布版本
+>  C. "+1"投票要超过3个,并且"+1"投票要多于"-1"投票
+>  D. 只要有1个"-1"投票就意味着投票不通过
 
 
 
->问题3
+> **问题3**
 > 对于发布的新版本,PMC(项目管理委员会)必须:
 >
-> A. 公布官方发布源代码
->
-> B. 提供新版本的二进制文件
+>  A. 公布官方发布源代码
+>  B. 提供新版本的二进制文件
 
 关注ServiceComb公众号查看答案:
 



[GitHub] mstao opened a new issue #330: The saga-spring-demo project shows `omitted for duplicate` in IDEA.

2018-11-06 Thread GitBox
mstao opened a new issue #330: The saga-spring-demo project shows `omitted for 
duplicate` in IDEA.
URL: https://github.com/apache/incubator-servicecomb-saga/issues/330
 
 
   I use IDEA to open saga-spring-demo project, Maven Projects panel show red 
line in Dependencies category. Then I use maven command to show dependency tree:
   
   ```
   mvn dependency:tree -Dverbose > tree.log 
   ```
   The result:
   
![image](https://github.com/ZZULI-TECH/interview/blob/master/images/saga-demo-tree-txt.png?raw=true)
   
   IDEA show:
   
   
![image](https://github.com/ZZULI-TECH/interview/blob/master/images/saga-demo-tree-idea.png?raw=true)
   
   Is there a good way to solve this issue?


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


With regards,
Apache Git Services


[GitHub] weichao666 opened a new pull request #984: [SCB-1012] add NoRouteToHostException in retry's exception

2018-11-06 Thread GitBox
weichao666 opened a new pull request #984: [SCB-1012] add 
NoRouteToHostException in retry's exception
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/984
 
 
   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


With regards,
Apache Git Services


[GitHub] wujimin commented on a change in pull request #981: [SCB-1009]Supporting configure encrypted password for proxy settings

2018-11-06 Thread GitBox
wujimin commented on a change in pull request #981: [SCB-1009]Supporting 
configure encrypted password for proxy settings
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/981#discussion_r231361798
 
 

 ##
 File path: 
foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/encrypt/NoEncryption.java
 ##
 @@ -0,0 +1,30 @@
+/*
+ * 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.servicecomb.foundation.common.encrypt;
+
+public class NoEncryption implements Encryption {
 
 Review comment:
   getOrder better to bigger than 0
   that makes customer change default IMPL easier


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


With regards,
Apache Git Services


[GitHub] wujimin commented on a change in pull request #980: [SCB-1007] not support CustomGeneric>

2018-11-06 Thread GitBox
wujimin commented on a change in pull request #980: [SCB-1007] not support 
CustomGeneric>
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/980#discussion_r231361193
 
 

 ##
 File path: 
integration-tests/it-producer/src/main/java/org/apache/servicecomb/it/schema/GenericSchema.java
 ##
 @@ -0,0 +1,101 @@
+/*
+ * 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.servicecomb.it.schema;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.ws.Holder;
+
+import org.apache.servicecomb.provider.rest.common.RestSchema;
+import org.springframework.http.HttpStatus;
+import org.springframework.util.Assert;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@RestSchema(schemaId = "generic")
+@RequestMapping(path = "/v1/generic")
 
 Review comment:
   remove test cases from demo?


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


With regards,
Apache Git Services


[GitHub] wujimin commented on a change in pull request #980: [SCB-1007] not support CustomGeneric>

2018-11-06 Thread GitBox
wujimin commented on a change in pull request #980: [SCB-1007] not support 
CustomGeneric>
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/980#discussion_r231359878
 
 

 ##
 File path: 
integration-tests/it-common/src/main/java/org/apache/servicecomb/it/schema/User.java
 ##
 @@ -0,0 +1,76 @@
+/*
+ * 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.servicecomb.it.schema;
+
+import org.apache.servicecomb.foundation.common.utils.JsonUtils;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+
+public class User {
 
 Review comment:
   is it possible to use 
org.apache.servicecomb.foundation.test.scaffolding.model.User?


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


With regards,
Apache Git Services


[GitHub] yhs0092 opened a new pull request #983: [SCB-979] add reminder log on the selection of SwaggerGeneratorContext

2018-11-06 Thread GitBox
yhs0092 opened a new pull request #983: [SCB-979] add reminder log on the 
selection of SwaggerGeneratorContext
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/983
 
 
   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.
- [x] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   See details in [SCB-979](https://issues.apache.org/jira/browse/SCB-979)


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


With regards,
Apache Git Services


[GitHub] zhfeng commented on issue #320: Saga client Error: Connection reset by peer

2018-11-06 Thread GitBox
zhfeng commented on issue #320: Saga client Error: Connection reset by peer
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/320#issuecomment-436280063
 
 
   @minlywang are you OK to close this issue sine it looks like a network error.


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


With regards,
Apache Git Services


[GitHub] zhfeng closed issue #323: 请问alpha集群是怎么处理grpc双向流的

2018-11-06 Thread GitBox
zhfeng closed issue #323: 请问alpha集群是怎么处理grpc双向流的
URL: https://github.com/apache/incubator-servicecomb-saga/issues/323
 
 
   


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


With regards,
Apache Git Services


[GitHub] zhfeng closed issue #324: Can alpha communicate with omega cluster using service discovery and loadbalance?

2018-11-06 Thread GitBox
zhfeng closed issue #324: Can alpha communicate with omega cluster using 
service discovery and loadbalance?
URL: https://github.com/apache/incubator-servicecomb-saga/issues/324
 
 
   


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


With regards,
Apache Git Services


[GitHub] coveralls commented on issue #980: [SCB-1007] not support CustomGeneric>

2018-11-06 Thread GitBox
coveralls commented on issue #980: [SCB-1007] not support 
CustomGeneric>
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/980#issuecomment-436254560
 
 
   
   [![Coverage 
Status](https://coveralls.io/builds/19934227/badge)](https://coveralls.io/builds/19934227)
   
   Coverage increased (+0.1%) to 86.647% when pulling 
**ecd04e2f61b4663fc0945765b4772289625202a6 on heyile:generic_support** into 
**b6b5855910daa64be64accb69b90d5fbe868d348 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


With regards,
Apache Git Services


[GitHub] WillemJiang commented on issue #328: Can I use "alpha" like use "spring clould" module the same and registered to eureka ?

2018-11-06 Thread GitBox
WillemJiang commented on issue #328: Can I use "alpha" like use "spring clould" 
module the same and  registered to eureka ?
URL: 
https://github.com/apache/incubator-servicecomb-saga/issues/328#issuecomment-436243548
 
 
   Do you mean to use eureka to find the instance of alpha service?


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


With regards,
Apache Git Services


[incubator-servicecomb-website] branch master updated (ca1910b -> 3d162a1)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git.


from ca1910b  Reduce the pdf file size
 add 8f0a49f  Translate the becomming-a-committer
 add 3d162a1  Translate the release page

No new revisions were added by this update.

Summary of changes:
 _developers/cn/becomming-a-committer.md | 26 +-
 _release/cn/release.md  | 26 --
 2 files changed, 25 insertions(+), 27 deletions(-)



[incubator-servicecomb-website] 02/02: Publish the website

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 8025633217bba2547c3154e3a6f577241b0722c5
Author: Willem Jiang 
AuthorDate: Tue Nov 6 20:49:20 2018 +0800

Publish the website
---
 content/cn/developers/becomming-a-commiter.html | 26 -
 content/cn/release/index.html   | 26 -
 content/feed.xml|  2 +-
 3 files changed, 26 insertions(+), 28 deletions(-)

diff --git a/content/cn/developers/becomming-a-commiter.html 
b/content/cn/developers/becomming-a-commiter.html
index c92f58b..7b0f323 100644
--- a/content/cn/developers/becomming-a-commiter.html
+++ b/content/cn/developers/becomming-a-commiter.html
@@ -415,31 +415,31 @@
   
 
   
-ServiceComb follows the Apache way to build the community. Anyone 
can become a committer once they have contributed sufficiently to the project 
and earned the trust.
+ServiceComb 
是按照Apache的做事方式来构建社区的,任何人只要他为社区做出了足够的贡献争获取到足够的信任就可以成为代码提交者。
 
-Contribute and Earn The Trust
+参与社区贡献
 
 
-  Download the releases
-  mailto:d...@servicecomb.apache.org;>Join the mailing 
list
-  https://issues.apache.org/jira/projects/SCB/;>Report bugs 
and/or feature requests
+  下载发行版
+  mailto:d...@servicecomb.apache.org;>参加邮件列表讨论
+  https://issues.apache.org/jira/projects/SCB/;>提交Bug或者提交新的功能需求
 
 
-See the contributing guide on how to 
become a contributor.
+参见 贡献社区 获取更多成为贡献者的指导建议。
 
-ServiceComb is a meritocracy the same as Apache. Once you have shown 
sufficient sustained commitment to the project and earned the trust, the PMC 
may invite you to be a committer.
+ServiceComb采用了与Apache基金会相同的精英治理模式。 
一旦您对项目表现出足够的持续承诺并赢得了信任,PMC可能会邀请您成为提交者。
 
-There are multiple actions other than coding to build the trust in the 
ServiceComb community, code review, design discussion, user support, community 
outreach, documentation, project management etc.
+除了编码之外,还有多种贡献方式可以在ServiceComb社区中建立信任。例如代码审查,设计讨论,用户支持,社区拓展,文档,项目管理等。
 
 New Committer Process
 
-The ServiceComb community follows the Apache Community’s http://community.apache.org/newcommitter.html;>process on accepting a 
new committer.
+ServiceComb社区参照Apachehttp://community.apache.org/newcommitter.html;>发展新提交者流程来发展新的提交者。
 
 
-  Start the vote in @private.
-  If the vote passes, send an offer to become a committer with @private 
CC’ed.
-  Add the committer to the team page
-  Setup committer 
rights
+  在 @private 中进行投票.
+  如果投票通过,项目管理委员会讲向新发展的代码提交这发送邀请邮件,邮件同时抄送 @private。
+  将代码提交者信息刷新到开发团队
+  设置提交权限信息
 
 
 
diff --git a/content/cn/release/index.html b/content/cn/release/index.html
index 4e2adbd..710cc58 100644
--- a/content/cn/release/index.html
+++ b/content/cn/release/index.html
@@ -367,25 +367,25 @@
   
 
   
-Use the links below to download the ServiceComb toolkits releases 
from one of our mirrors. You must verify the integrity of the downloaded files 
using signatures downloaded from our main distribution directory.
+使用以下链接从我们的一个镜像下载ServiceComb工具包版本。 
您必须使用从我们的主分发目录下载的签名来验证下载文件的完整性。
 
-Only current recommended releases are available on the main distribution 
site and its mirrors.
+主分发站点及其镜像仅提供当前推荐的版本。
 
-Stable Release - Latest Version:
+稳定发布版 - 最新版本:
 
 
   
-https://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0/;
 target="_blank">ServiceComb Service-Center 1.0.0-m2 (released on 
2018-08-02)
+https://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-service-center/1.0.0/;
 target="_blank">ServiceComb Service-Center 1.0.0 (released on 
2018-08-02)
   
   
-https://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-java-chassis/1.0.0/;
 target="_blank">ServiceComb Java-Chassis 1.0.0-m2 (released on 
2018-08-02)
+https://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-java-chassis/1.0.0/;
 target="_blank">ServiceComb Java-Chassis 1.0.0 (released on 2018-08-02)
   
   
 https://apache.org/dyn/closer.cgi/incubator/servicecomb/incubator-servicecomb-saga/0.2.0/;
 target="_blank">ServiceComb Saga 0.2.0 (released on 2018-06-21)
   
 
 
-Earlier Releases :
+先前发行版本 :
 
 
   
@@ -405,16 +405,14 @@
   
 
 
-NOTE:
+注意:
 
-  Please check this page for 
compatible version.
+  请查看 兼容版本 获取版本兼容信息.
 
 
-Verifying the release
+验证发行版本
 
-It is essential that you verify the integrity of the downloaded files using 
the PGP or SHA signatures.
- The PGP signatures can  be verified using GPG or PGP.
- Please download the https://www.apache.org/dist/incubator/servicecomb/KEYS; 
target="_blank">KEYS as well as the asc signature files for relevant 
distribution. It is recommended to get these files from the main distribution 
https://www.apache.org/dist/incubator/servicecomb/; 
target="_blank">directory and not from the mirrors.

[incubator-servicecomb-website] branch asf-site updated (7a2d7a5 -> 8025633)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git.


from 7a2d7a5  Publish the website
 add 8f0a49f  Translate the becomming-a-committer
 add 3d162a1  Translate the release page
 new 2f14044  Merge branch 'master' into asf-site
 new 8025633  Publish the website

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _developers/cn/becomming-a-committer.md | 26 -
 _release/cn/release.md  | 26 -
 content/cn/developers/becomming-a-commiter.html | 26 -
 content/cn/release/index.html   | 26 -
 content/feed.xml|  2 +-
 5 files changed, 51 insertions(+), 55 deletions(-)



[GitHub] mstao opened a new issue #329: When I run alpha-server via executable file, it occured error.

2018-11-06 Thread GitBox
mstao opened a new issue #329: When I run alpha-server via executable file, it 
occured error.
URL: https://github.com/apache/incubator-servicecomb-saga/issues/329
 
 
   When I run alpha-server via executable file, use the command : 
   ```
   java -Dspring.profiles.active=mysql 
-D"spring.datasource.url=jdbc:mysql://127.0.0.1:3306/saga?useSSL=false" -jar 
alpha-server-0.3.0-SNAPSHOT.jar
   ```
   then the cmd show :
   
   
![image](https://github.com/ZZULI-TECH/interview/blob/master/images/alpha-server-run.png?raw=true)
   
   I just pull the newest code from master and run the command:
   
   ```
   mvn clean install -DskipTests
   ```
   


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


With regards,
Apache Git Services


[incubator-servicecomb-website] branch asf-site updated: Publish the website

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 7a2d7a5  Publish the website
7a2d7a5 is described below

commit 7a2d7a5d6120744d0f03c2e8469be1748e405277
Author: Willem Jiang 
AuthorDate: Tue Nov 6 16:24:46 2018 +0800

Publish the website
---
 content/assets/images/hc2018/1.jpeg| Bin 0 -> 96542 bytes
 content/assets/images/hc2018/2.jpeg| Bin 0 -> 66569 bytes
 content/assets/images/hc2018/3.jpeg| Bin 0 -> 47382 bytes
 content/assets/images/hc2018/4.jpeg| Bin 0 -> 76497 bytes
 content/assets/images/hc2018/5.jpeg| Bin 0 -> 50664 bytes
 content/assets/images/hc2018/6.jpeg| Bin 0 -> 59197 bytes
 content/assets/images/hc2018/7.jpeg| Bin 0 -> 107950 bytes
 .../assets/slides/20181012/1_The_Apache_Way.pdf| Bin 0 -> 6573795 bytes
 ...cheServiceComb(Incubating)Community_Roadmap.pdf | Bin 0 -> 8510739 bytes
 ...d_Those_Based_on_a_Traditional_Architecture.pdf | Bin 0 -> 12453400 bytes
 ...b\342\200\231s_Exploration_of_Service_Mesh.pdf" | Bin 0 -> 8892696 bytes
 .../20181012/5_My_Participation_in_ServiceComb.pdf | Bin 0 -> 2383244 bytes
 ...Experience_on_Fast_Microservice_Programming.pdf | Bin 0 -> 2804264 bytes
 .../assets/slides/20181012/EN/1_The_Apache_Way.pdf | Bin 0 -> 6573795 bytes
 ...cheServiceComb(Incubating)Community_Roadmap.pdf | Bin 0 -> 8339351 bytes
 ...d_Those_Based_on_a_Traditional_Architecture.pdf | Bin 0 -> 12330512 bytes
 ...b\342\200\231s_Exploration_of_Service_Mesh.pdf" | Bin 0 -> 8723055 bytes
 .../EN/5_My_Participation_in_ServiceComb.pdf   | Bin 0 -> 2335160 bytes
 ...Experience_on_Fast_Microservice_Programming.pdf | Bin 0 -> 2680240 bytes
 .../index.html | 861 +
 .../index.html | 853 
 21 files changed, 1714 insertions(+)

diff --git a/content/assets/images/hc2018/1.jpeg 
b/content/assets/images/hc2018/1.jpeg
new file mode 100644
index 000..881576d
Binary files /dev/null and b/content/assets/images/hc2018/1.jpeg differ
diff --git a/content/assets/images/hc2018/2.jpeg 
b/content/assets/images/hc2018/2.jpeg
new file mode 100644
index 000..f0ebe66
Binary files /dev/null and b/content/assets/images/hc2018/2.jpeg differ
diff --git a/content/assets/images/hc2018/3.jpeg 
b/content/assets/images/hc2018/3.jpeg
new file mode 100644
index 000..3cbdf4f
Binary files /dev/null and b/content/assets/images/hc2018/3.jpeg differ
diff --git a/content/assets/images/hc2018/4.jpeg 
b/content/assets/images/hc2018/4.jpeg
new file mode 100644
index 000..1bc9ebe
Binary files /dev/null and b/content/assets/images/hc2018/4.jpeg differ
diff --git a/content/assets/images/hc2018/5.jpeg 
b/content/assets/images/hc2018/5.jpeg
new file mode 100644
index 000..af56e6c
Binary files /dev/null and b/content/assets/images/hc2018/5.jpeg differ
diff --git a/content/assets/images/hc2018/6.jpeg 
b/content/assets/images/hc2018/6.jpeg
new file mode 100644
index 000..887e50f
Binary files /dev/null and b/content/assets/images/hc2018/6.jpeg differ
diff --git a/content/assets/images/hc2018/7.jpeg 
b/content/assets/images/hc2018/7.jpeg
new file mode 100644
index 000..ce8edeb
Binary files /dev/null and b/content/assets/images/hc2018/7.jpeg differ
diff --git a/content/assets/slides/20181012/1_The_Apache_Way.pdf 
b/content/assets/slides/20181012/1_The_Apache_Way.pdf
new file mode 100644
index 000..3de7832
Binary files /dev/null and 
b/content/assets/slides/20181012/1_The_Apache_Way.pdf differ
diff --git 
a/content/assets/slides/20181012/2_ApacheServiceComb(Incubating)Community_Roadmap.pdf
 
b/content/assets/slides/20181012/2_ApacheServiceComb(Incubating)Community_Roadmap.pdf
new file mode 100644
index 000..13cfb85
Binary files /dev/null and 
b/content/assets/slides/20181012/2_ApacheServiceComb(Incubating)Community_Roadmap.pdf
 differ
diff --git 
a/content/assets/slides/20181012/3_ServiceMesh-based_Microservices_and_Those_Based_on_a_Traditional_Architecture.pdf
 
b/content/assets/slides/20181012/3_ServiceMesh-based_Microservices_and_Those_Based_on_a_Traditional_Architecture.pdf
new file mode 100644
index 000..07e874d
Binary files /dev/null and 
b/content/assets/slides/20181012/3_ServiceMesh-based_Microservices_and_Those_Based_on_a_Traditional_Architecture.pdf
 differ
diff --git 
"a/content/assets/slides/20181012/4_ServiceComb\342\200\231s_Exploration_of_Service_Mesh.pdf"
 
"b/content/assets/slides/20181012/4_ServiceComb\342\200\231s_Exploration_of_Service_Mesh.pdf"
new file mode 100644
index 000..9b9b965
Binary files /dev/null and 
"b/content/assets/slides/20181012/4_ServiceComb\342\200\231s_Exploration_of_Service_Mesh.pdf"
 differ
diff --git 

[incubator-servicecomb-website] branch asf-site updated (1beae1f -> 2a7a539)

2018-11-06 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch asf-site
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git.


from 1beae1f  Publish the website
 add a3998b1  update  Apache_servicecomb HuaweiConnect post  (#146)
 add ca1910b  Reduce the pdf file size
 new fb15aec  Merge branch 'master' into asf-site
 new 2a7a539  Publish the website

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _pages/cn/home.md  |   2 +-
 _pages/home.md |   2 +-
 ...ache-ServiceComb-Meetup-2018-Shanghai-Report.md |  77 ++
 ...ache-ServiceComb-Meetup-2018-Shanghai-Report.md |  83 ++
 assets/images/hc2018/1.jpeg| Bin 0 -> 96542 bytes
 assets/images/hc2018/2.jpeg| Bin 0 -> 66569 bytes
 assets/images/hc2018/3.jpeg| Bin 0 -> 47382 bytes
 assets/images/hc2018/4.jpeg| Bin 0 -> 76497 bytes
 assets/images/hc2018/5.jpeg| Bin 0 -> 50664 bytes
 assets/images/hc2018/6.jpeg| Bin 0 -> 59197 bytes
 assets/images/hc2018/7.jpeg| Bin 0 -> 107950 bytes
 assets/slides/20181012/1_The_Apache_Way.pdf| Bin 0 -> 6573795 bytes
 ...cheServiceComb(Incubating)Community_Roadmap.pdf | Bin 0 -> 8510739 bytes
 ...d_Those_Based_on_a_Traditional_Architecture.pdf | Bin 0 -> 12453400 bytes
 ...b\342\200\231s_Exploration_of_Service_Mesh.pdf" | Bin 0 -> 8892696 bytes
 .../20181012/5_My_Participation_in_ServiceComb.pdf | Bin 0 -> 2383244 bytes
 ...Experience_on_Fast_Microservice_Programming.pdf | Bin 0 -> 2804264 bytes
 assets/slides/20181012/EN/1_The_Apache_Way.pdf |   1 +
 ...cheServiceComb(Incubating)Community_Roadmap.pdf | Bin 0 -> 8339351 bytes
 ...d_Those_Based_on_a_Traditional_Architecture.pdf | Bin 0 -> 12330512 bytes
 ...b\342\200\231s_Exploration_of_Service_Mesh.pdf" | Bin 0 -> 8723055 bytes
 .../EN/5_My_Participation_in_ServiceComb.pdf   | Bin 0 -> 2335160 bytes
 ...Experience_on_Fast_Microservice_Programming.pdf | Bin 0 -> 2680240 bytes
 .../index.html |  22 +-
 .../docs/apache-servicecomb-day-slides/index.html  |  24 +-
 .../apache-servicecomb-incubating-day/index.html   |  24 +-
 content/cn/docs/autoscale-on-company/index.html|  24 +-
 .../index.html |  24 +-
 content/cn/docs/communication-btw-sc-ms/index.html |  24 +-
 content/cn/docs/company-on-kubernetes/index.html   |  24 +-
 .../cn/docs/config_center_integration/index.html   |  24 +-
 content/cn/docs/consul-servicemesh.html|  24 +-
 content/cn/docs/crm-part-I/index.html  |  24 +-
 .../index.html |  24 +-
 content/cn/docs/distributed_saga_1/index.html  |  24 +-
 content/cn/docs/distributed_saga_2/index.html  |  24 +-
 content/cn/docs/distributed_saga_3/index.html  |  24 +-
 content/cn/docs/go-to-cloud/index.html |  24 +-
 .../index.html |  24 +-
 .../docs/how-to-reform-a-legacy-system/index.html  |  24 +-
 content/cn/docs/jira_beginner_guide/index.html |  24 +-
 content/cn/docs/join_the_community/index.html  |  24 +-
 content/cn/docs/linuxcon-workshop-demo/index.html  |  24 +-
 content/cn/docs/loadtest-saga-with-kubernetes.html |  24 +-
 .../cn/docs/maven_dependency_management/index.html |  24 +-
 content/cn/docs/open-design/index.html |  24 +-
 content/cn/docs/osi-microservices/index.html   |  25 +-
 .../index.html |  24 +-
 content/cn/docs/release-note-1-0-0.html|  24 +-
 content/cn/docs/saga_pack_design/index.html|  24 +-
 content/cn/docs/saga_with_cucumber/index.html  |  24 +-
 .../seckill-development-journey-part-I/index.html  |  24 +-
 .../seckill-development-journey-part-II/index.html |  24 +-
 .../index.html |  24 +-
 .../index.html |  24 +-
 .../cn/docs/tracing-with-servicecomb/index.html|  24 +-
 content/cn/index.html  |   2 +-
 content/cn/year-archive/index.html | 101 +++
 .../index.html |  22 +-
 .../index.html |  24 +-
 .../apache-servicecomb-incubating-day/index.html   |  24 +-
 content/docs/autoscale-on-company/index.html   |  24 +-
 content/docs/communication-btw-sc-ms/index.html|  24 +-
 content/docs/company-on-kubernetes/index.html  |  24 +-
 content/docs/distributed_saga_1/index.html |  24 +-
 content/docs/distributed_saga_2/index.html