by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 17:28
    coveralls commented #1920
  • 16:27
    Volcannozzz opened #1920
  • 08:45
    MockingJayWong commented #1919
  • 08:44
    MockingJayWong opened #1919
  • 07:09
    yhs0092 commented #1918
  • 06:52
    liukuancn opened #1918
  • 06:51
    liukuancn closed #1893
  • 03:30
    alec-z commented #677
  • 03:06
    alec-z synchronize #677
  • Aug 12 09:24
    GalileoFinchDudi commented #1286
  • Aug 12 03:22
    liubao68 commented #1859
  • Aug 12 03:22
    liubao68 commented #1859
  • Aug 12 03:19
    liubao68 closed #1859
  • Aug 12 03:19
    liubao68 commented #1859
  • Aug 12 03:18
    liubao68 closed #1871
  • Aug 12 03:18
    liubao68 commented #1871
  • Aug 12 03:18
    liubao68 closed #1874
  • Aug 12 03:18
    liubao68 commented #1874
  • Aug 12 03:18
    liubao68 closed #1902
  • Aug 12 03:18
    liubao68 commented #1902
rendongjing
@rendongjing
scb1.0版本
@WillemJiang
Richhardbranson
@Richhardbranson
在数据库模式下通过EventScanner是有对timeout的事件是有补偿的。 状态机模式下,如果发生SagaTimeoutEvent的时候,不会自动定时进行补偿么?
yaotj
@yaotj
有人在吗?ServiceComb中有对标Spring Cloud Loadbalance的组件吗?
@all
Lei Zhang
@coolbeevip
@Richhardbranson 状态机模式下补偿不会一直进行,在主干上增加了两个参数可以控制补偿策略,一个是补偿的重试次数,一个是补偿的重试间隔,你可以通过设置这两个参数控制你希望的尝试的总时间
smartscity
@lyl2008dsg
hi all , 请问 comb 有采用 akka 的计划或尝试吗
JK
@shijinkui
servicecomb 有i18n的示例或者文档么
JK
@shijinkui
@lyl2008dsg akka-http可以是个选择,跟netty并列
judy.zhang
@zhangjing100920
ServiceComb只提供了对Springboot的支持么?我们是vertx框架,有没有类似java-chassis的支持?
miao jack
@msnetc

我们基于java-chassis的包,在运行时突然出现cpu占用率接近100%,查原因是【registry-vert.x-eventloop-thread-0" Id=25 RUNNABLE
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1674)

-  locked java.util.concurrent.ConcurrentHashMap$ReservationNode@6de21198

】,大家有解决方案么?

@liubao68
@all
Dong, Ji-gong
@DongJigong
@msnetc maybe code problem
could you give more business code
miao jack
@msnetc
APPLICATION_ID: paas-prd
service_description:
name: authserver-api
environment: production
version: 3.1.3
properties:
allowCrossApp: true # enable cross app invocation
servicecomb:
service:
registry:
address: "http://ali-java-app001:30100,http://ali-java-app002:30100,http://ali-java-gw001:30100"
autodiscovery: true
rest:
address: 0.0.0.0:8883 @DongJigong 微服务配置文件
@SpringBootApplication
@EnableServiceComb
public class UserServiceApplication {
public static void main(String[] args) {
SpringApplication.run(UserServiceApplication.class, args);
}
} @DongJigong 启动类
Dong, Ji-gong
@DongJigong
@msnetc could you give more error log info
miao jack
@msnetc

registry-vert.x-eventloop-thread-0" Id=25 RUNNABLE
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1674)

-  locked java.util.concurrent.ConcurrentHashMap$ReservationNode@6de21198
at org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersions(MicroserviceManager.java:53)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersionRule(MicroserviceManager.java:79)
at org.apache.servicecomb.serviceregistry.consumer.AppManager.getOrCreateMicroserviceVersionRule(AppManager.java:59)
at org.apache.servicecomb.serviceregistry.cache.InstanceCacheManagerNew.getOrCreate(InstanceCacheManagerNew.java:32)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getDiscoveredIpPort(IpPortManager.java:117)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:103)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:96)
at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.findServiceInstances(ServiceRegistryClientImpl.java:647)
at org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.findServiceInstances(AbstractServiceRegistry.java:234)
at org.apache.servicecomb.serviceregistry.RegistryUtils.findServiceInstances(RegistryUtils.java:224)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.pullInstances(MicroserviceVersions.java:131)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.submitPull(MicroserviceVersions.java:123)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.lambda$getOrCreateMicroserviceVersions$0(MicroserviceManager.java:55)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager$$Lambda$144/1279095549.apply(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
-  locked java.util.concurrent.ConcurrentHashMap$ReservationNode@6de21198
at org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56)

@DongJigong 这是 线程里面的代码跟踪

image.png
这个线程占了99%的CPU
"registry-vert.x-eventloop-thread-0" Id=25 RUNNABLE
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1674)
-  locked java.util.concurrent.ConcurrentHashMap$ReservationNode@6de21198
at org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersions(MicroserviceManager.java:53)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersionRule(MicroserviceManager.java:79)
at org.apache.servicecomb.serviceregistry.consumer.AppManager.getOrCreateMicroserviceVersionRule(AppManager.java:59)
at org.apache.servicecomb.serviceregistry.cache.InstanceCacheManagerNew.getOrCreate(InstanceCacheManagerNew.java:32)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getDiscoveredIpPort(IpPortManager.java:117)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:103)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:96)
at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.findServiceInstances(ServiceRegistryClientImpl.java:647)
at org.apache.servicecomb.serviceregistry.registry.AbstractServiceRegistry.findServiceInstances(AbstractServiceRegistry.java:234)
at org.apache.servicecomb.serviceregistry.RegistryUtils.findServiceInstances(RegistryUtils.java:224)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.pullInstances(MicroserviceVersions.java:131)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.submitPull(MicroserviceVersions.java:123)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.lambda$getOrCreateMicroserviceVersions$0(MicroserviceManager.java:55)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager$$Lambda$144/1279095549.apply(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
-  locked java.util.concurrent.ConcurrentHashMap$ReservationNode@6de21198
at org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersions(MicroserviceManager.java:53)
at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.getOrCreateMicroserviceVersionRule(MicroserviceManager.java:79)
at org.apache.servicecomb.serviceregistry.consumer.AppManager.getOrCreateMicroserviceVersionRule(AppManager.java:59)
at org.apache.servicecomb.serviceregistry.cache.InstanceCacheManagerNew.getOrCreate(InstanceCacheManagerNew.java:32)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getDiscoveredIpPort(IpPortManager.java:117)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:103)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getAvailableAddress(IpPortManager.java:96)
at org.apache.servicecomb.serviceregistry.client.IpPortManager.getNextAvailableAddress(IpPortManager.java:88)
at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.retry(ServiceRegistryClientImpl.java:88)
at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$syncHandler$1(ServiceRegistryClientImpl.java:103)
at org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl$$Lambda$59/546704209.handle(Unknown Source)
at org.apache.servicecomb.serviceregistry.client.http.RestUtils.lambda$null$1(RestUtils.java:99)
at org.apache.servicecomb.serviceregistry.client.http.RestUtils$$Lambda$80/1319866274.handle(Unknown Source)
at io.vertx.core.http.impl.HttpClientRequestBase.handleException(HttpClientRequestBase.java:136)
-  locked io.vertx.core.http.impl.HttpClientReque
miao jack
@msnetc
@DongJigong 我提供的信息够么?
Dong, Ji-gong
@DongJigong
which version of servicecomb
@msnetc
miao jack
@msnetc
apache-servicecomb-service-center-1.3.0-linux-amd64 @DongJigong 这个版本,客户端 java-chassis 1.2
@DongJigong
@DongJigong 要不我servicecomb 回到1.2?
Dong, Ji-gong
@DongJigong
It seems there is a bug there
you could try another version
miao jack
@msnetc
@DongJigong 怎么解决问题? 我回退 servicecomb的版本号???
Dong, Ji-gong
@DongJigong
try a new version?
miao jack
@msnetc
@DongJigong 升级 servicecenter 版本号?
Dong, Ji-gong
@DongJigong
en
miao jack
@msnetc
@DongJigong 好的 我们试试
miao jack
@msnetc
@DongJigong 我们用别的方法解决了。就是把实例的进程都给kill掉,等微服务完全掉线之后,再注册上去。
Dong, Ji-gong
@DongJigong
@msnetc Thanks for your reply
AylaAsia-RyanFu
@fu-peng
有用过的大神没,请问和dubbo比较,哪个更好呢?
andrelive
@andrelive
请问一下,是不是ServiceComb整合了SpringBoot之后,就只能用java-chassis-spring-boot-starter-servlet 了?不能再用Standalone?
beiketianzhuang
@beiketianzhuang
各位大神,能帮忙看个问题吗,生产环境Uncaught TypeError: Cannot read property 'call' of undefined,这个错误只有在域名访问的时候会出现,用ip的方式没有问题
andrelive
@andrelive
ServiceComb 项目从2.0.2升级到2.1.0直接就启动失败了,也没有文档,有解决方案没?spring boot 整合 java chassis的,另外好像这个版本下依赖的hibernate-validator 版本有问题?
miao jack
@msnetc
为什么 按照官网的跨域配置: cors:
enabled: true
origin: "*"
allowCredentials: false
allowedMethod: PUT,DELETE,POST,GET
maxAge: 3600, 只能只支持contentType: 'application/x-www-form-urlencoded;charset=utf-8', 的请求,不支持 contentType: 'application/json;charset=utf-8', 格式的请求?
@liubao68 能看看么
415313691
@415313691
Consumer method handler.Auth:toString not exist in contract, microserviceName=authentication-server, schemaId=auth; new producer not running or not deployed. 使用edgeService 自定义的handler 之后,无法和鉴权微服务进行通信。
大佬给看一下
Invoker.createProxy创建关联时失败了,如何处理呢
415313691
@415313691
当我在edge中开起了 addHeader 公共请求头保留功能之后,我的请求就会出现"InvocationException: code=490;msg=CommonExceptionData [message=Unexpected consumer error, please check logs for details]" 这个错误。这是为什么?@liubao68 能帮忙解答一下吗
Violet996
@Violet996
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
HttpServletRequest request = servletRequestAttributes.getRequest();
HttpServletResponse response = servletRequestAttributes.getResponse();
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
HttpServletRequest request = servletRequestAttributes.getRequest();
HttpServletResponse response = servletRequestAttributes.getResponse();获取这两个对象的时候一直报空指针异常,怎么解决啊。
Jevgenija Pantiuchina
@jpantiuchina_twitter

Dear contributors,

As part of a research team from Università della Svizzera italiana (Switzerland) and University of Sannio (Italy), we have analyzed refactoring pull requests in apache/servicecomb-java-chassis repository and are looking for developers for a short 5-10 min survey (https://usi.eu.qualtrics.com/jfe/form/SV_cO6Ayah0D6q4eSF). Would you please spare your time by answering some questions about refactoring-related contributions? We would greatly appreciate your input — it would help us understand how developers can improve the quality of refactoring contributions, and benefit the development process. The responses will be anonymized and handled confidentially! Thank you a lot!

If you consider this message to be spam, I'm very sorry! There will be no follow-up to bug you.