[jira] [Comment Edited] (SCB-1489) Micro-service instance wouldn't work after we shotdown our service center for updating while we had enable RSA authentication between services.

2019-10-16 Thread Ang Li (Jira)


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

Ang Li edited comment on SCB-1489 at 10/17/19 3:18 AM:
---

The root cause is the instanceId changed while the token unchanged.

I think the problem will be solved after restarting the instance because both 
the token and the instanceId will be updated.

Since the instanceId is generated and obtained by service-center, we should 
update the token every time register the instance.


was (Author: ang li):
The root cause is the instanceId changed while the token unchanged.

I think the problem will be solved after restarting the instance because both 
the token and the instanceId will be updated.

Maybe the problem can be easily solved just keeping the instanceId immutable 
while the instance running.

> Micro-service instance wouldn't work after we shotdown our service center for 
> updating while we had enable RSA authentication between services.
> ---
>
> Key: SCB-1489
> URL: https://issues.apache.org/jira/browse/SCB-1489
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: Liu HuaiZhou
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> We had add RSA authentication between services following [Documents 
> |[https://docs.servicecomb.io/java-chassis/en_US/security/rsa.html]]. The 
> micro-service instances interrupted when we shutdown service center and 
> update it for latest version.Following are snap logs for comsumer and 
> provider instances.
> consumer log:
>  [2019-04-27 05:58:10,995/UTC][main][INFO]InvocationException: 
> code=490;msg=CommonExceptionData [message=Cse Internal Bad Request] 
> com.huawei.paas.cse.demo.pojo.client.PojoClient.main(PojoClient.java:119)
>  [2019-04-27 05:58:12,995/UTC][main][INFO]create MicroserviceVersions, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.(MicroserviceVersions.java:84)
>  [2019-04-27 
> 05:58:13,001/UTC][registry-vert.x-eventloop-thread-0][WARN]failed to 
> findInstances:
> {"errorCode":"400012","errorMessage":"Micro-service does not 
> exist","detail":"Consumer does not exist."}
> org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:213)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]remove microservice, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.removeMicroservice(MicroserviceManager.java:76)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]create MicroserviceVersionRule, 
> appId=liushuang-noauth, microserviceName=pojolwx585706, versionRule=0.0.0+. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.createAndInitMicroserviceVersionRule(MicroserviceVersions.java:231)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]create MicroserviceVersions, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.(MicroserviceVersions.java:84)
>  [2019-04-27 
> 05:58:13,004/UTC][registry-vert.x-eventloop-thread-0][WARN]failed to 
> findInstances:
> {"errorCode":"400012","errorMessage":"Micro-service does not 
> exist","detail":"Consumer does not exist."}
> org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:213)
>  [2019-04-27 05:58:13,004/UTC][main][INFO]remove microservice, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.removeMicroservice(MicroserviceManager.java:76)
>  [2019-04-27 05:58:13,004/UTC][main][ERROR]invoke failed, 
> pojolwx585706.helloworldGreeter.SayHello 
> org.apache.servicecomb.core.provider.consumer.InvokerUtils.innerSyncInvoke(InvokerUtils.java:80)
>  org.apache.servicecomb.foundation.common.exceptions.ServiceCombException: 
> org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter 
> discovery return null.
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.doDiscovery(DiscoveryTree.java:169)
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:130)
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:123)
>  at 
> org.apache.servicecomb.loadbalance.LoadbalanceHandler.getOrCreateLoadBalancer(LoadbalanceHandler.java:360)
>  at 
> org.apache.servicecomb.loadbalance.LoadbalanceHandler.handle(LoadbalanceHandler.java:179)
>  at 

[jira] [Commented] (SCB-1489) Micro-service instance wouldn't work after we shotdown our service center for updating while we had enable RSA authentication between services.

2019-10-16 Thread Ang Li (Jira)


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

Ang Li commented on SCB-1489:
-

The root cause is the instanceId changed while the token unchanged.

I think the problem will be solved after restarting the instance because both 
the token and the instanceId will be updated.

Maybe the problem can be easily solved just keeping the instanceId immutable 
while the instance running.

> Micro-service instance wouldn't work after we shotdown our service center for 
> updating while we had enable RSA authentication between services.
> ---
>
> Key: SCB-1489
> URL: https://issues.apache.org/jira/browse/SCB-1489
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Java-Chassis
>Reporter: Liu HuaiZhou
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> We had add RSA authentication between services following [Documents 
> |[https://docs.servicecomb.io/java-chassis/en_US/security/rsa.html]]. The 
> micro-service instances interrupted when we shutdown service center and 
> update it for latest version.Following are snap logs for comsumer and 
> provider instances.
> consumer log:
>  [2019-04-27 05:58:10,995/UTC][main][INFO]InvocationException: 
> code=490;msg=CommonExceptionData [message=Cse Internal Bad Request] 
> com.huawei.paas.cse.demo.pojo.client.PojoClient.main(PojoClient.java:119)
>  [2019-04-27 05:58:12,995/UTC][main][INFO]create MicroserviceVersions, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.(MicroserviceVersions.java:84)
>  [2019-04-27 
> 05:58:13,001/UTC][registry-vert.x-eventloop-thread-0][WARN]failed to 
> findInstances:
> {"errorCode":"400012","errorMessage":"Micro-service does not 
> exist","detail":"Consumer does not exist."}
> org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:213)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]remove microservice, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.removeMicroservice(MicroserviceManager.java:76)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]create MicroserviceVersionRule, 
> appId=liushuang-noauth, microserviceName=pojolwx585706, versionRule=0.0.0+. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.createAndInitMicroserviceVersionRule(MicroserviceVersions.java:231)
>  [2019-04-27 05:58:13,001/UTC][main][INFO]create MicroserviceVersions, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.(MicroserviceVersions.java:84)
>  [2019-04-27 
> 05:58:13,004/UTC][registry-vert.x-eventloop-thread-0][WARN]failed to 
> findInstances:
> {"errorCode":"400012","errorMessage":"Micro-service does not 
> exist","detail":"Consumer does not exist."}
> org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$4(ServiceRegistryClientImpl.java:213)
>  [2019-04-27 05:58:13,004/UTC][main][INFO]remove microservice, 
> appId=liushuang-noauth, microserviceName=pojolwx585706. 
> org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.removeMicroservice(MicroserviceManager.java:76)
>  [2019-04-27 05:58:13,004/UTC][main][ERROR]invoke failed, 
> pojolwx585706.helloworldGreeter.SayHello 
> org.apache.servicecomb.core.provider.consumer.InvokerUtils.innerSyncInvoke(InvokerUtils.java:80)
>  org.apache.servicecomb.foundation.common.exceptions.ServiceCombException: 
> org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter 
> discovery return null.
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.doDiscovery(DiscoveryTree.java:169)
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:130)
>  at 
> org.apache.servicecomb.serviceregistry.discovery.DiscoveryTree.discovery(DiscoveryTree.java:123)
>  at 
> org.apache.servicecomb.loadbalance.LoadbalanceHandler.getOrCreateLoadBalancer(LoadbalanceHandler.java:360)
>  at 
> org.apache.servicecomb.loadbalance.LoadbalanceHandler.handle(LoadbalanceHandler.java:179)
>  at org.apache.servicecomb.core.Invocation.next(Invocation.java:151)
>  at 
> org.apache.servicecomb.core.provider.consumer.InvokerUtils.innerSyncInvoke(InvokerUtils.java:72)
>  at org.apache.servicecomb.provider.pojo.Invoker.syncInvoke(Invoker.java:161)
>  at org.apache.servicecomb.provider.pojo.Invoker.invoke(Invoker.java:157)
>  at com.sun.proxy.$Proxy28.SayHello(Unknown Source)
>  at 

[jira] [Created] (SCB-1529) Add Java language general client of Service-Center

2019-10-16 Thread zhouzhongyuan (Jira)
zhouzhongyuan created SCB-1529:
--

 Summary: Add Java language general client of Service-Center
 Key: SCB-1529
 URL: https://issues.apache.org/jira/browse/SCB-1529
 Project: Apache ServiceComb
  Issue Type: New Feature
  Components: Service-Center
Affects Versions: service-center-1.3.0
Reporter: zhouzhongyuan






--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (SCB-1528) Optimizing some code implementations

2019-10-16 Thread Ang Li (Jira)
Ang Li created SCB-1528:
---

 Summary: Optimizing some code implementations
 Key: SCB-1528
 URL: https://issues.apache.org/jira/browse/SCB-1528
 Project: Apache ServiceComb
  Issue Type: Improvement
  Components: Java-Chassis
Reporter: Ang Li
Assignee: Ang Li






--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (SCB-1527) Put the third party dependencies license and notice into kie binary release

2019-10-16 Thread Willem Jiang (Jira)
Willem Jiang created SCB-1527:
-

 Summary: Put the third party dependencies license and notice into 
kie binary release
 Key: SCB-1527
 URL: https://issues.apache.org/jira/browse/SCB-1527
 Project: Apache ServiceComb
  Issue Type: Improvement
  Components: Kie
Reporter: Willem Jiang


In 0.1.0 rc2 release we don't include the third party dependencies license and 
notice into binary release. 
Please take the release script of mesher and servicecenter as an example.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (SCB-1526) The contribution guide link is invalid in kie home page

2019-10-16 Thread little-cui (Jira)


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

little-cui updated SCB-1526:

Component/s: website

> The contribution guide link is invalid in kie home page
> ---
>
> Key: SCB-1526
> URL: https://issues.apache.org/jira/browse/SCB-1526
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Kie, website
>Reporter: little-cui
>Assignee: little-cui
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Assigned] (SCB-1526) The contribution guide link is invalid in kie home page

2019-10-16 Thread little-cui (Jira)


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

little-cui reassigned SCB-1526:
---

Assignee: little-cui

> The contribution guide link is invalid in kie home page
> ---
>
> Key: SCB-1526
> URL: https://issues.apache.org/jira/browse/SCB-1526
> Project: Apache ServiceComb
>  Issue Type: Bug
>  Components: Kie
>Reporter: little-cui
>Assignee: little-cui
>Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)